- Timestamp:
- 2011-06-29 14:58:51 (12 years ago)
- Location:
- 2011/26/JimiL/Pelit/pelit22/world of Chuckland fix fix/world of Chuckland fix fix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/JimiL/Pelit/pelit22/world of Chuckland fix fix/world of Chuckland fix fix/Peli.cs
r2293 r2321 14 14 const int RUUDUN_KOKO = 40; 15 15 16 PlatformCharacter pelaaja1; 16 PlatformCharacter pelaaja1; 17 18 17 19 GameObject heppu; 18 Image paikallaanvasemmalle = LoadImage("h eppuleft");19 Image paikallaanoikelle = LoadImage("heppuright");20 21 Image[] kavelyvasemmalle = LoadImages("h eppuright1, heppuright2");22 20 Image paikallaanvasemmalle = LoadImage("hahmoleft"); 21 Image paikallaanoikelle; 22 23 Image[] kavelyvasemmalle = LoadImages("hahmoright1","hahmoright2"); 24 Image[] kavelyoikelle; 23 25 Image pelaajanKuva = LoadImage("hahmo"); 24 26 … … 34 36 Image heppukuva = LoadImage("heppu"); 35 37 Image ruohokuva = LoadImage("ruoho"); 38 Image koivukuva = LoadImage("koivu"); 36 39 37 40 … … 41 44 public override void Begin() 42 45 { 46 47 paikallaanoikelle = Image.Mirror(paikallaanvasemmalle); 48 kavelyoikelle = Image.Mirror(kavelyvasemmalle); 49 50 51 52 53 54 55 56 43 57 Gravity = new Vector(0, -1000); 58 59 60 44 61 45 62 luoKentta(); … … 65 82 kentta['H'] = lisaaheppu; 66 83 kentta['='] = lisaaruoho; 67 68 69 70 71 kentta.Insert(RUUDUN_KOKO, RUUDUN_KOKO); 84 kentta[')'] = lisaakoivu; 85 86 87 88 89 90 kentta.Insert(50, 50); 72 91 Level.CreateBorders(); 73 92 Level.Background.CreateGradient(Color.White, Color.SkyBlue); 93 } 94 PhysicsObject lisaakoivu() 95 { 96 PhysicsObject koivu = PhysicsObject.CreateStaticObject(50, 50); 97 koivu.Image = koivukuva; 98 koivu.Tag = "koivu"; 99 100 Add(koivu); 101 return koivu; 74 102 } 75 103 PhysicsObject lisaaruoho() … … 170 198 pelaaja1.Image = pelaajanKuva; 171 199 AddCollisionHandler(pelaaja1, osuTahteen); 200 201 pelaaja1.LeftIdleAnimation = new Animation(paikallaanvasemmalle); 202 pelaaja1.RightIdleAnimation = new Animation(paikallaanoikelle); 203 204 pelaaja1.LeftWalkingAnimation = new Animation(kavelyvasemmalle); 205 pelaaja1.RightWalkingAnimation = new Animation(kavelyoikelle); 172 206 return pelaaja1; 173 207 } -
2011/26/JimiL/Pelit/pelit22/world of Chuckland fix fix/world of Chuckland fix fix/kentta1.txt
r2293 r2321 7 7 8 8 9 ( ) 10 ( ) 11 /( )) ( ( ) 9 10 11 ( 12 % 12 13 ( )) ( ( ( ==#####==== 13 14 ( )) ( ( ( ==(==###########===
Note: See TracChangeset
for help on using the changeset viewer.