Changeset 8196 for 2016/30/AleksiN


Ignore:
Timestamp:
2016-07-28 12:12:10 (3 years ago)
Author:
almajono
Message:
 
Location:
2016/30/AleksiN/name
Files:
6 edited

Legend:

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

    r8193 r8196  
    2626         
    2727        AddPlayer(); 
    28         Points(); 
    2928        Keys(); 
    3029 
    3130        Camera.Follow(bikePhysicsObject); 
    3231 
    33         Surface level = Surface.CreateBottom(Level, 400, 700, 200, 250); 
     32        Surface level = Surface.CreateBottom(Level, 400, 700, 200, 200); 
    3433        Add(level); 
    3534        Gravity = new Vector(0.0, -800.0); 
     
    5958        rightTire.Image = tire; 
    6059        bikePhysicsObject.Image = motorbike; 
    61         this.bike = new PhysicsStructure(leftTire, rightTire, bikePhysicsObject); 
     60        this.bike = new PhysicsStructure(rightTire, leftTire, bikePhysicsObject); 
    6261        bikePhysicsObject.IgnoresCollisionResponse = true; 
    6362        Add(this.bike); 
    6463        Add(bikePhysicsObject); 
    6564        bike.KineticFriction = 1.0; 
    66         bike.Restitution = 1; 
     65        bike.Restitution = 0.2; 
    6766        bike.Y += 100; 
    6867    } 
     
    8685        bike.AngularVelocity = ammount; 
    8786    } 
    88     IntMeter pointCounter; 
    89     void Points() 
    90     { 
    91         pointCounter = new IntMeter(0); 
    92         Label pointLabel = new Label(); 
    93         pointLabel.X = Screen.Left + 100; 
    94         pointLabel.Y = Screen.Top - 100; 
    95         pointLabel.TextColor = Color.Black; 
    96         pointLabel.Color = Color.White; 
    97         pointLabel.BindTo(pointCounter); 
    98         Add(pointLabel); 
    99     } 
    10087 
    10188} 
Note: See TracChangeset for help on using the changeset viewer.