Changeset 8199 for 2016/30


Ignore:
Timestamp:
2016-07-28 12:31:23 (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

    r8197 r8199  
    2121 
    2222        Level.Width = Screen.Width * 25; 
    23  
    2423        SmoothTextures = true; 
    2524        IsFullScreen = false; 
    2625         
    27         AddPlayer(); 
     26        CreatePlayer(); 
     27        CreateLevel(); 
    2828        Keys(); 
    2929 
    3030        Camera.Follow(bikePhysicsObject); 
    31  
    32         Surface level = Surface.CreateBottom(Level, 400, 700, 200, 200); 
    33         Add(level); 
    34         Gravity = new Vector(0.0, -800.0); 
    3531 
    3632        Wind = new Vector(-25, 0); 
     
    4440    } 
    4541 
    46     void AddPlayer() 
     42    void CreateLevel() 
     43    { 
     44        Surface level = Surface.CreateBottom(Level, 400, 700, 200, 200); 
     45        Add(level); 
     46        level.Left = Screen.Left; 
     47        Gravity = new Vector(0.0, -800.0); 
     48    } 
     49    void CreatePlayer() 
    4750    { 
    4851         leftTire = new PhysicsObject(57.5, 57.5, Shape.Circle); 
Note: See TracChangeset for help on using the changeset viewer.