Ignore:
Timestamp:
2017-06-14 15:02:47 (2 years ago)
Author:
npo17_13
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/SebastianH/JumpingAdventure/JumpingAdventure/JumpingAdventure/JumpingAdventure.cs

    r8658 r8676  
    1010{ 
    1111    PhysicsObject spaceship; 
     12    PhysicsObject ufo; 
    1213    public override void Begin() 
    1314    { 
    14         spaceship = new PhysicsObject(30.0, 70.0, Shape.Star); 
    15         spaceship.X = 200.0; 
    16         spaceship.Y = 400.0; 
     15        Gravity = new Vector(0.0, -800.0); 
     16 
     17        spaceship = new PhysicsObject(30, 40, Shape.Star); 
     18        spaceship.X = 0.0; 
     19        spaceship.Y = 0.0; 
    1720        spaceship.Color = Color.Fuchsia; 
    18         spaceship.AngularVelocity = 10.0; 
    19         Add (spaceship); 
     21        spaceship.CanRotate = false; 
     22        Add(spaceship); 
    2023 
    21         spaceship.CanRotate = false; 
     24        ufo = new PhysicsObject(40, 20, Shape.Ellipse); 
     25        ufo.X = 300.0; 
     26        ufo.Y = -150.0; 
     27        ufo.Color = Color.Red; 
     28        Add(ufo); 
    2229 
    2330        Level.Background.CreateStars(100000); 
     
    2936        Keyboard.Listen(Key.Right, ButtonState.Down, LiikutaPelaajaa, null, new Vector(1000, 0)); 
    3037        Keyboard.Listen(Key.Right, ButtonState.Released, PysaytaPelaaja, null, new Vector(0, 0)); 
    31         Keyboard.Listen(Key.Up, ButtonState.Down, LiikutaPelaajaa, null, new Vector(0, 1000)); 
     38        Keyboard.Listen(Key.Up, ButtonState.Down, LiikutaPelaajaa, null, new Vector(0, 2000)); 
    3239        Keyboard.Listen(Key.Up, ButtonState.Released, PysaytaPelaaja, null, new Vector(0, 0)); 
    3340        Keyboard.Listen(Key.Down, ButtonState.Down, LiikutaPelaajaa, null, new Vector(0, -1000)); 
Note: See TracChangeset for help on using the changeset viewer.