- Timestamp:
- 2014-06-11 15:01:08 (9 years ago)
- Location:
- 2014/24/ArtturiN
- Files:
-
- 58 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/24/ArtturiN/Pong/Pong/Pong/Pong.cs
r4923 r4961 35 35 void LuoKentta() 36 36 { 37 pallo = new PhysicsObject (50.0, 50.0);37 pallo = new PhysicsObject (100.0, 100.0); 38 38 pallo.Shape = Shape.Circle; 39 39 pallo.Color = Color.Black; … … 80 80 { 81 81 82 Vector impulssi = new Vector( 500.0, 0.0);82 Vector impulssi = new Vector(1000.0, 0.0); 83 83 pallo.Hit(impulssi); 84 84 … … 87 87 PhysicsObject LuoMaila(double x, double y) 88 88 { 89 PhysicsObject maila = PhysicsObject.CreateStaticObject(10.0, 100.0);89 PhysicsObject maila = PhysicsObject.CreateStaticObject(10.0, 200.0); 90 90 maila.Shape = Shape.Rectangle; 91 91 maila.X = x; 92 92 maila.Y = y; 93 maila.Restitution = 1.0;93 maila.Restitution = 30.0; 94 94 maila.Color = Color.Black; 95 95 Add(maila);
Note: See TracChangeset
for help on using the changeset viewer.