Changeset 2829 for 2012/23/OsamaA/MyTemp/Pong/Pong/Pong/Pong.cs
- Timestamp:
- 2012-06-07 11:29:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/23/OsamaA/MyTemp/Pong/Pong/Pong/Pong.cs
r2783 r2829 205 205 void Reset() 206 206 { 207 pelaajan1pisteet.Value = 0; 208 pelaajan2pisteet.Value = 0; 209 ball.Destroy(); 210 ball = new PhysicsObject(20.0, 20.0); 211 ball.Shape = Shape.Circle; 212 ball.Color = Color.White; 213 ball.X = -200; 214 ball.Y = -200; 215 ball.Restitution = 1.0; 216 ball.KineticFriction = 0.0; 217 ball.CanRotate = true; 218 Add(ball); 219 AddCollisionHandler(ball, KasittelePallonTormays); 220 PhysicsEnabled = true; 221 AloitaPeli(); 207 ClearAll; 208 Begin(); 209 //pelaajan1pisteet.Value = 0; 210 //pelaajan2pisteet.Value = 0; 211 //ball.Destroy(); 212 //ball = new PhysicsObject(20.0, 20.0); 213 //ball.Shape = Shape.Circle; 214 //ball.Color = Color.White; 215 //ball.X = -200; 216 //ball.Y = -200; 217 //ball.Restitution = 1.0; 218 //ball.KineticFriction = 0.0; 219 //ball.CanRotate = true; 220 //Add(ball); 221 //AddCollisionHandler(ball, KasittelePallonTormays); 222 //PhysicsEnabled = true; 223 //AloitaPeli(); 222 224 } 223 225 }
Note: See TracChangeset
for help on using the changeset viewer.