- Timestamp:
- 2015-06-29 12:34:26 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/EemilI/Pong/Pong/Pong/Pong.cs
r6495 r6507 10 10 { 11 11 PhysicsObject pallo; 12 13 Vector nopeusYlos=new Vector(object,200); 14 Vector nopeusAlas = new Vector (0, -200); 15 16 PhysicsObject maila1; 17 PhysicsObject maila2; 12 18 13 19 public override void Begin() … … 66 72 { 67 73 Keyboard.Listen(Key.Up, ButtonState.Down, LiikutaMaila1Ylos, "pelaaja 1: Liikuta mailaa ylös"); 68 Keyboard.Listen(Key 74 Keyboard.Listen(Key.Up, ButtonState.Released, PysaytaMaila1 "null"); 69 75 70 76 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 71 77 } 78 79 void AsetaNopeus(PhysicsObject maila, Vector nopeus) 80 { 81 maila.Velocity = nopeus; 82 } 72 83 }
Note: See TracChangeset
for help on using the changeset viewer.