Changeset 8233


Ignore:
Timestamp:
2016-07-29 10:47:06 (7 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

    r8231 r8233  
    2121    { 
    2222 
    23         Level.Width = Screen.Width * 20; 
     23        Level.Width = Screen.Width * 25; 
    2424        SmoothTextures = true; 
    2525        IsFullScreen = false; 
     
    6464        Timer smokeTimer = new Timer(); 
    6565        smokeTimer.Interval = 0.1; 
    66         smokeTimer.Timeout += delegate { smoke.Position = bike.Objects[0].Position; }; 
     66        smokeTimer.Timeout += delegate { smoke.Position = bike.Objects[1].Position; }; 
    6767        smokeTimer.Start(); 
    6868        Add(smoke); 
     
    8383    void CreateLevel() 
    8484    { 
    85         Surface level = Surface.CreateBottom(Level, 500, 700, 160, 150); //500, 700, 160, 150 //10, 10, 10, 10 
     85        Surface level = Surface.CreateBottom(Level, 500, 700, 175, 175); //500, 700, 175, 175 //10, 10, 10, 10 
    8686        Add(level); 
    8787        level.Left = Screen.Left; 
    88         PhysicsObject flat = PhysicsObject.CreateStaticObject(15000.0, 50.0); 
     88        PhysicsObject flat = PhysicsObject.CreateStaticObject(20000.0, 50.0); 
    8989        flat.Left = level.Right; 
    9090        flat.Bottom = level.Bottom; 
    9191        flat.Color = level.Color; 
    9292        Add(flat); 
    93         PhysicsObject goal = new PhysicsObject(50.0, 500.0); 
     93        PhysicsObject goal = new PhysicsObject(50.0, 1000.0); 
    9494        goal.Color = Color.Brown; 
    9595        goal.Right = flat.Right; 
     
    120120        rightTire.Image = tire; 
    121121        bikePhysicsObject.Image = motorbike; 
    122         this.bike = new PhysicsStructure(leftTire, rightTire, bikePhysicsObject, hitBox); 
     122        this.bike = new PhysicsStructure(rightTire, leftTire, bikePhysicsObject, hitBox); 
    123123        bikePhysicsObject.IgnoresCollisionResponse = true; 
    124124        Add(this.bike); 
     
    133133    void Keys() 
    134134    { 
    135         Keyboard.Listen(Key.Down, ButtonState.Down, Movement, null, new Vector(-5000, 0)); 
    136         Keyboard.Listen(Key.Up, ButtonState.Down, Movement, null, new Vector(5000, 0)); 
     135        Keyboard.Listen(Key.Down, ButtonState.Down, Movement, null, new Vector(-6000, 0)); 
     136        Keyboard.Listen(Key.Up, ButtonState.Down, Movement, null, new Vector(6000, 0)); 
    137137        Keyboard.Listen(Key.Left, ButtonState.Down, ChangeAngle, null, 1.0); 
    138138        Keyboard.Listen(Key.Right, ButtonState.Down, ChangeAngle, null, -1.0); 
Note: See TracChangeset for help on using the changeset viewer.