- Timestamp:
- 2015-06-29 12:33:59 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/JaakkoS/Pong/Pong/Pong/Pong.cs
r6492 r6506 15 15 Luokentta(); 16 16 AloitaPeli(); 17 AsetaOhjaimet(); 17 18 18 PhoneBackButton.Listen(ConfirmExit, "Lopeta peli");19 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");20 19 21 20 } … … 57 56 Add(maila); 58 57 } 58 void AsetaOhjaimet() 59 { 60 Keyboard.Listen(Key.A, ButtonState.Down, LiikutaMaila1Ylos, "Pelaaja 1: Liikuta mailaasi ylös"); 61 Keyboard.Listen(Key.A, ButtonState.Released, PysaytaMaila1, null); 62 63 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 64 } 65 void AsetaNopeus(PhysicsObject maila, Vector nopeus) 66 { 67 maila.Velocity = nopeus; 68 } 59 69 } 60 70
Note: See TracChangeset
for help on using the changeset viewer.