Changeset 8202 for 2016/30/AleksiN


Ignore:
Timestamp:
2016-07-28 13:24:37 (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

    r8201 r8202  
    99public class name : PhysicsGame 
    1010{ 
    11  
    1211    Image motorbike = LoadImage("motorbike"); 
    1312    Image tire = LoadImage("tire"); 
     
    1716    PhysicsStructure bike; 
    1817    public override void Begin() 
    19  
    2018    { 
    2119 
     
    2321        SmoothTextures = true; 
    2422        IsFullScreen = false; 
    25          
     23 
    2624        CreatePlayer(); 
    2725        CreateLevel(); 
     26        CreateSmoke(); 
    2827        Timer(); 
    2928        Keys(); 
     
    3130        Camera.Follow(bikePhysicsObject); 
    3231 
     32    } 
     33    void CreateSmoke() 
     34    { 
    3335        Wind = new Vector(-25, 0); 
    3436        Smoke smoke = new Smoke(); 
     
    3840        smokeTimer.Start(); 
    3941        Add(smoke); 
    40  
    4142    } 
    42  
    4343    void Timer() 
    4444    { 
     
    9393    void Movement(Vector movement) 
    9494    { 
    95         if(GetObjectAt(bikePhysicsObject.Position - new Vector(0, bike.Height / 2) * 0.9, 0.1) != null) 
     95        if (GetObjectAt(bikePhysicsObject.Position - new Vector(0, bike.Height / 2) * 0.9, 0.1) != null) 
    9696        { 
    9797            bike.Push(movement); 
     
    102102        bike.AngularVelocity = ammount; 
    103103    } 
    104  
    105104} 
Note: See TracChangeset for help on using the changeset viewer.