Changeset 8154 for 2016/30


Ignore:
Timestamp:
2016-07-27 13:34:42 (3 years ago)
Author:
almajono
Message:
 
Location:
2016/30/AleksiN/name/name/name
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 2016/30/AleksiN/name/name/name/name.cs

    r8149 r8154  
    4949        bike.Image = motorbike; 
    5050        tires = new PhysicsStructure(leftTire, rightTire, bike); 
     51        bike.IgnoresCollisionResponse = true; 
    5152        Add(tires); 
    5253        Add(bike); 
     
    5455    void Keys() 
    5556    { 
    56         Keyboard.Listen(Key.Down, ButtonState.Down, Movement, null, new Vector(-1000, 0)); 
    57         Keyboard.Listen(Key.Up, ButtonState.Down, Movement, null, new Vector(1000, 0)); 
    58         Keyboard.Listen(Key.Left, ButtonState.Down, ChangeAngle, null, 7.5); 
    59         Keyboard.Listen(Key.Right, ButtonState.Down, ChangeAngle, null, -7.5); 
     57        Keyboard.Listen(Key.Down, ButtonState.Down, Movement, null, new Vector(-2000, 0)); 
     58        Keyboard.Listen(Key.Up, ButtonState.Down, Movement, null, new Vector(2000, 0)); 
     59        Keyboard.Listen(Key.Left, ButtonState.Down, ChangeAngle, null, 2.5); 
     60        Keyboard.Listen(Key.Right, ButtonState.Down, ChangeAngle, null, -2.5); 
    6061        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    6162    } 
Note: See TracChangeset for help on using the changeset viewer.