Changeset 8843 for 2017/27/MikaelL/pong/pong/pong/pong.cs
- Timestamp:
- 2017-07-03 14:57:15 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/27/MikaelL/pong/pong/pong/pong.cs
r8830 r8843 31 31 pallo.X = -200.0; 32 32 pallo.Y = 0.0; 33 34 PhysicsObject maila = PhysicsObject.CreateStaticObject(20.0, 100.0); 35 maila.Shape = Shape.Rectangle; 36 maila.X = Level.Left + 20.0; 37 maila.Y = 0.0; 38 maila.Restitution = 1.0; 39 Add(maila); 33 40 Level.CreateBorders(1.0, false); 34 41 pallo.Restitution = 1.0; … … 38 45 39 46 } 47 void AloitaPeli () 48 { 49 Vector inpulssi = new Vector(500.0, 0.0); 50 pallo.Hit(inpulssi); 51 } 40 52 }
Note: See TracChangeset
for help on using the changeset viewer.