- Timestamp:
- 2012-07-04 12:52:07 (10 years ago)
- Location:
- 2012/27/JuhoK/Impossible
- Files:
-
- 4 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/27/JuhoK/Impossible/Impossible/Impossible
-
Property
svn:ignore
set to
bin
obj
-
Property
svn:ignore
set to
-
2012/27/JuhoK/Impossible/Impossible/Impossible/Impossible.cs
r3530 r3533 9 9 public class Impossible : PhysicsGame 10 10 { 11 double moveSpeed = 250;11 double moveSpeed = 1000; 12 12 bool allowMove = false; 13 13 14 P hysicsObjectcube;14 PlatformCharacter cube; 15 15 16 16 public override void Begin() … … 38 38 { 39 39 ClearAll(); 40 Level.CreateBorders();41 40 Level.Background.Image = LoadImage("backround"); 42 41 Keyboard.Listen(Key.Space, ButtonState.Down, jump, null); 42 Level.CreateBorders(); 43 Gravity = new Vector(0, -7500); 43 44 44 Gravity = new Vector(0, -5000); 45 46 cube = new PhysicsObject(25, 25); 45 cube = new PlatformCharacter(25, 25); 47 46 cube.Shape = Shape.Rectangle; 48 47 cube.Position = new Vector(Level.Left + 25 / 2 + 4, Level.Bottom + 25 / 2 + 4); 48 cube.CanRotate = false; 49 49 Add(cube); 50 50 allowMove = true; 51 51 Camera.Follow(cube); 52 } 53 54 void createLevelBorders() 55 { 56 52 57 } 53 58 … … 59 64 void jump() 60 65 { 61 cube. Hit(new Vector(0, 1000));66 cube.Jump(1000); 62 67 } 63 68 … … 69 74 } 70 75 } 76 -
2012/27/JuhoK/Impossible/Impossible/ImpossibleContent
-
Property
svn:ignore
set to
bin
obj
-
Property
svn:ignore
set to
Note: See TracChangeset
for help on using the changeset viewer.