Changeset 8213


Ignore:
Timestamp:
2016-07-28 14:54:50 (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

    r8207 r8213  
    5454    void CreateLevel() 
    5555    { 
    56         Surface level = Surface.CreateBottom(Level, 500, 700, 200, 250); 
     56        Surface level = Surface.CreateBottom(Level, 500, 700, 200, 250); //500, 700, 200, 250 
    5757        Add(level); 
    5858        level.Left = Screen.Left; 
    59         GameObject goal = new GameObject(50.0, 250.0); 
    60         goal.Right = level.Right; 
     59        PhysicsObject flat = PhysicsObject.CreateStaticObject(10000.0, 50.0); 
     60        flat.Left = level.Right; 
     61        flat.Bottom = level.Bottom; 
     62        flat.Color = level.Color; 
     63        Add(flat); 
     64        PhysicsObject goal = new PhysicsObject(50.0, 250.0); 
     65        goal.Right = flat.Right; 
     66        goal.Bottom = flat.Top; 
    6167        Add(goal); 
     68 
    6269        Gravity = new Vector(0.0, -800.0); 
    6370    } 
Note: See TracChangeset for help on using the changeset viewer.