Changeset 1725 for 2011/23/tipan/Pong
- Timestamp:
- 2011-06-06 15:26:02 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/23/tipan/Pong/Pong/Pong/Peli.cs
r1715 r1725 9 9 public class Peli : PhysicsGame 10 10 { 11 Vector nopeusYlos = new Vector(0, 200);12 Vector nopeusAlas = new Vector(0, - 200);11 Vector nopeusYlos = new Vector(0, 400); 12 Vector nopeusAlas = new Vector(0, -400); 13 13 14 14 PhysicsObject pallo; … … 18 18 PhysicsObject vasenReuna; 19 19 PhysicsObject oikeaReuna; 20 PhysicsObject ylaReuna; 21 PhysicsObject alaReuna; 20 22 21 23 IntMeter P1score; … … 54 56 oikeaReuna.IsVisible = false; 55 57 56 PhysicsObjectylaReuna = Level.CreateTopBorder();57 ylaReuna.Restitution = 1.0;58 ylaReuna = Level.CreateTopBorder(); 59 ylaReuna.Restitution = 2.0; 58 60 ylaReuna.IsVisible = false; 59 61 60 PhysicsObjectalaReuna = Level.CreateBottomBorder();61 alaReuna.Restitution = 1.0;62 alaReuna = Level.CreateBottomBorder(); 63 alaReuna.Restitution = 2.0; 62 64 alaReuna.IsVisible = false; 63 65 … … 79 81 P2score.Value += 1; 80 82 } 83 if (kohde == ylaReuna) 84 { 81 85 86 } 87 if (kohde == alaReuna) 88 { 89 90 } 82 91 } 83 92
Note: See TracChangeset
for help on using the changeset viewer.