Changeset 871 for 2010/24/vehakala/Pong/Peli.cs
- Timestamp:
- 2010-06-15 15:01:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/24/vehakala/Pong/Peli.cs
r840 r871 63 63 Keyboard.Listen( Key.A, ButtonState.Pressed, LiikutaMailaaYlos, "Pelaaja 1: Liikuta mailaa ylös", maila1 ); 64 64 Keyboard.Listen( Key.A, ButtonState.Released, PysaytaMaila, null, maila1); 65 Keyboard.Listen( Key. Z, ButtonState.Pressed, LiikutaMailaaAlas, "Pelaaja 1: Liikuta mailaa alas", maila1 );66 Keyboard.Listen(Key. Z, ButtonState.Released, PysaytaMaila, null, maila1);65 Keyboard.Listen( Key.S, ButtonState.Pressed, LiikutaMailaaAlas, "Pelaaja 1: Liikuta mailaa alas", maila1 ); 66 Keyboard.Listen(Key.S, ButtonState.Released, PysaytaMaila, null, maila1); 67 67 68 68 Keyboard.Listen(Key.Up, ButtonState.Pressed, LiikutaMailaaYlos, "Pelaaja 2: Liikuta mailaa ylös", maila2); … … 79 79 void LiikutaMailaaYlos( PhysicsObject maila ) 80 80 { 81 Vector nopeus = new Vector(0, 200);81 Vector nopeus = new Vector(0, 500); 82 82 maila.Velocity = nopeus; 83 83 } … … 90 90 void LiikutaMailaaAlas(PhysicsObject maila) 91 91 { 92 Vector nopeus = new Vector(0, - 200);92 Vector nopeus = new Vector(0, -500); 93 93 maila.Velocity = nopeus; 94 94 } 95 95 96 96 97 97 98 }
Note: See TracChangeset
for help on using the changeset viewer.