- Timestamp:
- 2010-07-07 11:31:34 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/27/Vekakart/Catch The Rainbow/Catch The Rainbow/Peli.cs
r1114 r1129 9 9 protected override void Begin() 10 10 { 11 LuoChandler(); 12 LuoKentta(); 13 AsetaOhjaimet(); 14 } 15 void LuoKentta() 16 { 17 Level.CreateBorders (); 18 Gravity = new Vector(0.0, -800.0); 19 11 20 } 12 21 13 22 void LuoChandler() 14 23 { 15 PhysicsObject Chandler = new PhysicsObject (40,20); 24 PhysicsObject Chandler = new PhysicsObject(20,60); 25 Chandler.Restitution = 0.0; 26 Chandler.X = -450; 27 Chandler.Y = -375; 16 28 Add (Chandler); 29 return; 30 } 31 32 void AsetaOhjaimet(PhysicsObject Chandler) 33 { 34 Keyboard.Listen(Key.D, ButtonState.Down, PelaajaLiikuEteenpain); 35 } 36 void PelaajaLiikuEteenpain() 37 { 17 38 } 18 39 }
Note: See TracChangeset
for help on using the changeset viewer.