Changeset 8223 for 2016/30/AleksiN


Ignore:
Timestamp:
2016-07-29 09:44:32 (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

    r8213 r8223  
    1515    PhysicsObject rightTire; 
    1616    PhysicsStructure bike; 
     17    Timer timer; 
    1718    public override void Begin() 
    1819    { 
    1920 
    20         Level.Width = Screen.Width * 25; 
     21        Level.Width = Screen.Width * 1; 
    2122        SmoothTextures = true; 
    2223        IsFullScreen = false; 
     
    2829        Keys(); 
    2930 
     31    } 
     32    void Goal(PhysicsObject goal, PhysicsStructure bike) 
     33    { 
     34        timer.Stop(); 
    3035    } 
    3136    void CreateSmoke() 
     
    4146    void Timer() 
    4247    { 
    43         Timer timer = new Timer(); 
     48        timer = new Timer(); 
    4449        timer.Start(); 
    4550 
     
    6267        flat.Color = level.Color; 
    6368        Add(flat); 
    64         PhysicsObject goal = new PhysicsObject(50.0, 250.0); 
     69        PhysicsObject goal = new PhysicsObject(50.0, 500.0); 
     70        goal.Color = Color.Brown; 
    6571        goal.Right = flat.Right; 
    6672        goal.Bottom = flat.Top; 
     73        goal.Tag = "µ"; 
    6774        Add(goal); 
    6875 
    6976        Gravity = new Vector(0.0, -800.0); 
     77 
     78        AddCollisionHandler(goal, bike, Goal); 
    7079    } 
    7180    void CreatePlayer() 
Note: See TracChangeset for help on using the changeset viewer.