Ignore:
Timestamp:
2012-07-04 12:52:07 (9 years ago)
Author:
anlakane
Message:
 
Location:
2012/27/JuhoK/Impossible/Impossible
Files:
4 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • 2012/27/JuhoK/Impossible/Impossible/Impossible

    • Property svn:ignore set to
      bin
      obj
  • 2012/27/JuhoK/Impossible/Impossible/Impossible/Impossible.cs

    r3530 r3533  
    99public class Impossible : PhysicsGame 
    1010{ 
    11     double moveSpeed = 250; 
     11    double moveSpeed = 1000; 
    1212    bool allowMove = false; 
    1313 
    14     PhysicsObject cube; 
     14    PlatformCharacter cube; 
    1515 
    1616    public override void Begin() 
     
    3838    { 
    3939        ClearAll(); 
    40         Level.CreateBorders(); 
    4140        Level.Background.Image = LoadImage("backround"); 
    4241        Keyboard.Listen(Key.Space, ButtonState.Down, jump, null); 
     42        Level.CreateBorders(); 
     43        Gravity = new Vector(0, -7500); 
    4344 
    44         Gravity = new Vector(0, -5000); 
    45  
    46         cube = new PhysicsObject(25, 25); 
     45        cube = new PlatformCharacter(25, 25); 
    4746        cube.Shape = Shape.Rectangle; 
    4847        cube.Position = new Vector(Level.Left + 25 / 2 + 4, Level.Bottom + 25 / 2 + 4); 
     48        cube.CanRotate = false; 
    4949        Add(cube); 
    5050        allowMove = true; 
    5151        Camera.Follow(cube); 
     52    } 
     53 
     54    void createLevelBorders() 
     55    { 
     56 
    5257    } 
    5358 
     
    5964    void jump() 
    6065    { 
    61         cube.Hit(new Vector(0, 1000)); 
     66        cube.Jump(1000); 
    6267    } 
    6368 
     
    6974    } 
    7075} 
     76  
  • 2012/27/JuhoK/Impossible/Impossible/ImpossibleContent

    • Property svn:ignore set to
      bin
      obj
Note: See TracChangeset for help on using the changeset viewer.