Changeset 8683 for 2017/24


Ignore:
Timestamp:
2017-06-15 09:59:49 (2 years ago)
Author:
npo17_26
Message:
 
Location:
2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur/The_Dinosaur.cs

    r8671 r8683  
    3434 
    3535        PhysicsObject palikka = new PhysicsObject(700.0, 200.0); 
    36             Add(palikka); 
     36        palikka.MakeStatic(); 
     37        Add(palikka); 
    3738 
    38         Gravity = new Vector(0.0, -500.0); 
     39 
     40 
     41 
     42        Gravity = new Vector(0.0, -400.0); 
    3943 
    4044 
     
    4448 
    4549        Keyboard.Listen(Key.Up, ButtonState.Pressed, Hyppaa, "Hyppää"); 
    46         //Keyboard.Listen(Key.Right, ButtonState.Down); 
    47         //Keyboard.Listen(Key.Left, ButtonState.Down); 
    48          
     50        Keyboard.Listen(Key.Right, ButtonState.Down, KaveleeOikealle, "kävelee oikealle"); 
     51        Keyboard.Listen(Key.Left, ButtonState.Down, KaveleeVasemmalle, "kävelee vasemmalle"); 
     52 
    4953 
    5054 
     
    5559    void Hyppaa() 
    5660    { 
    57         dino.ForceJump(150.0); 
     61        dino.ForceJump(175.0); 
     62 
     63    } 
     64 
     65    void KaveleeOikealle() 
     66    { 
     67        dino.Walk(150.0); 
     68 
     69    } 
     70 
     71    void KaveleeVasemmalle() 
     72    { 
     73        dino.Walk(-150.0); 
    5874 
    5975    } 
Note: See TracChangeset for help on using the changeset viewer.