Changeset 3465 for 2012/27/EemilK/pong
- Timestamp:
- 2012-07-03 11:16:05 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/27/EemilK/pong/pong/pong/pong.cs
r3464 r3465 14 14 PhysicsObject maila1; 15 15 PhysicsObject maila2; 16 PhysicsObject vasenReuna; 17 PhysicsObject oikeaReuna; 16 18 IntMeter Pelaajan1Pisteet; 17 19 IntMeter Pelaajan2Pisteet; … … 35 37 pallo.Y = 0.0; 36 38 pallo.Restitution = 1.0; 39 pallo.KineticFriction = 0.0; 40 pallo.MomentOfInertia = Double.PositiveInfinity; 37 41 Add(pallo); 38 42 maila1 = luoMaila(Level.Left + 20.0, 0.0); 39 43 maila2 = luoMaila(Level.Right - 20.0, 0.0); 40 PhysicsObject vasenReuna = Level.CreateLeftBorder(); 44 vasenReuna = Level.CreateLeftBorder(); 45 vasenReuna.KineticFriction = 0.0; 41 46 vasenReuna.Restitution = 1.0; 42 47 vasenReuna.IsVisible = false; 43 PhysicsObject oikeaReuna = Level.CreateRightBorder(); 48 oikeaReuna = Level.CreateRightBorder(); 49 oikeaReuna.KineticFriction = 0.0; 44 50 oikeaReuna.Restitution = 1.0; 45 51 oikeaReuna.IsVisible = false; 46 52 PhysicsObject alaReuna = Level.CreateBottomBorder(); 53 alaReuna.KineticFriction = 0.0; 47 54 alaReuna.Restitution = 1.0; 48 55 alaReuna.IsVisible = false; 49 56 PhysicsObject ylaReuna = Level.CreateTopBorder(); 57 ylaReuna.KineticFriction = 0.0; 50 58 ylaReuna.Restitution = 1.0; 51 59 ylaReuna.IsVisible = false;
Note: See TracChangeset
for help on using the changeset viewer.