Changeset 8121 for 2016/30/NikoK
- Timestamp:
- 2016-07-26 14:59:15 (7 years ago)
- Location:
- 2016/30/NikoK
- Files:
-
- 114 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
2016/30/NikoK/PongPjong/PongPjong/PongPjong/PongPjong.cs
r8091 r8121 15 15 PhysicsObject maila1; 16 16 PhysicsObject maila2; 17 18 PhysicsObject vasenReuna; 19 PhysicsObject oikeaReuna; 17 20 18 21 IntMeter pelaajan1Pisteet; … … 41 44 pallo.X = -200.0; 42 45 pallo.Y = 0.0; 43 46 pallo.Restitution = 1.0; 47 pallo.KineticFriction = 0.0; 48 pallo.MomentOfInertia = Double.PositiveInfinity; 44 49 AddCollisionHandler(pallo, KasittelePallonTormays); 45 50 … … 47 52 maila2 = LuoMaila(Level.Right - 20.0, 0.0); 48 53 49 PhysicsObjectvasenReuna = Level.CreateLeftBorder();54 vasenReuna = Level.CreateLeftBorder(); 50 55 vasenReuna.Restitution = 1.0; 51 56 vasenReuna.IsVisible = false; 57 58 oikeaReuna = Level.CreateRightBorder(); 59 oikeaReuna.Restitution = 1.0; 60 oikeaReuna.IsVisible = false; 61 62 PhysicsObject alaReuna = Level.CreateBottomBorder(); 63 alaReuna.Restitution = 1.0; 64 alaReuna.IsVisible = false; 65 66 PhysicsObject ylaReuna = Level.CreateTopBorder(); 67 ylaReuna.Restitution = 1.0; 68 ylaReuna.IsVisible = false; 69 52 70 pallo.Restitution = 1.0; 53 71 Level.Background.Color = Color.Orange; … … 63 81 { 64 82 PhysicsObject maila1 = PhysicsObject.CreateStaticObject(20.0, 100.0); 65 maila1.Shape = Shape. Rectangle;83 maila1.Shape = Shape.Circle; 66 84 maila1.X = x; 67 85 maila1.Y = y; … … 159 177 pelaajan2Pisteet.Value += 1; 160 178 } 179 } 180 161 181 162 182 }
Note: See TracChangeset
for help on using the changeset viewer.