Changeset 8108


Ignore:
Timestamp:
2016-07-26 11:29:13 (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

    r8096 r8108  
    1111    public override void Begin() 
    1212    { 
    13         PhysicsObject leftTire = new PhysicsObject(100.0, 100.0, Shape.Circle); 
    14         PhysicsObject rightTire = new PhysicsObject(100.0, 100.0, Shape.Circle); 
    15         Add(leftTire); 
    16         Add(rightTire); 
    17         leftTire.X = -100.0; 
     13        Surface level = Surface.CreateBottom(Level, 30, 100, 40, 200); 
     14        Add(level); 
     15 
     16        Gravity = new Vector(0.0, -800.0); 
     17 
     18        PhysicsObject leftTire = new PhysicsObject(50.0, 50.0, Shape.Circle); 
     19        PhysicsObject rightTire = new PhysicsObject(50.0, 50.0, Shape.Circle); 
     20        leftTire.X = -65.0; 
    1821        leftTire.Y = 0.0; 
    19         rightTire.X = 100.0; 
     22        rightTire.X = 65.0; 
    2023        rightTire.Y = 0.0; 
     24        PhysicsStructure tires = new PhysicsStructure(leftTire, rightTire); 
     25        Add(tires); 
     26 
     27        tires.Push(new Vector(1000, 0)); 
    2128 
    2229        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    2330    } 
     31 
    2432} 
     33  
Note: See TracChangeset for help on using the changeset viewer.