Changeset 2686 for 2012/JAO/roosa/pong/pong
- Timestamp:
- 2012-04-16 10:59:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/JAO/roosa/pong/pong/pong/pong.cs
r2676 r2686 11 11 public override void Begin() 12 12 { 13 // TODO: Kirjoita ohjelmakoodisi tähän 14 13 // TODO: alusta peli tässä 14 PhysicsObject pallo = new PhysicsObject(40.0, 40.0); 15 Add(pallo); 16 pallo.Shape = Shape.Circle; 17 pallo.X = -200.0; 18 pallo.Y = 0.0; 19 Vector impulssi = new Vector(500.0, 0.0); 20 pallo.Hit(impulssi); 21 Level.CreateBorders(1.0, false ); 22 pallo.Restitution = 1.0; 23 Level.BackgroundColor = Color.Black; 24 Camera.ZoomToLevel(); 25 15 26 PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 16 27 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");
Note: See TracChangeset
for help on using the changeset viewer.