Changeset 4005 for 2013/23/LeoS
- Timestamp:
- 2013-06-07 09:30:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/23/LeoS/Tasohyppelypeli2.cs
r3995 r4005 36 36 Image hahmonkuva = LoadImage("iron"); 37 37 Image olionkuva3 = LoadImage("Copcar"); 38 Image seina = LoadImage("wall"); 38 39 IntMeter elamat; 39 40 List<PushButton> potionit = new List<PushButton>(); … … 43 44 { 44 45 LuoKentta(); 46 MediaPlayer.Play("biaatch"); 47 MediaPlayer.IsRepeating = true; 45 48 Gravity = new Vector(0, -2000); 46 49 elamat = new IntMeter(10, 0, 10); … … 79 82 Mouse.IsCursorVisible = true; 80 83 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "A.C.A.B"); //näppäinkomennot 81 Keyboard.Listen(Key. Left, ButtonState.Down, Kavele, null, (-100.0)); //näppäinkomennot82 Keyboard.Listen(Key. Right, ButtonState.Down, Kavele, null, (100.0)); //näppäinkomennot //näppäinkomennot84 Keyboard.Listen(Key.A, ButtonState.Down, Kavele, null, (-100.0)); //näppäinkomennot 85 Keyboard.Listen(Key.D, ButtonState.Down, Kavele, null, (100.0)); //näppäinkomennot //näppäinkomennot 83 86 //Keyboard.Listen(Key.A, ButtonState.Down, hyokkaa, null, homo); 84 87 Keyboard.Listen(Key.Z, ButtonState.Released, JuoPotion, null); … … 86 89 Keyboard.Listen(Key.Q, ButtonState.Down, Jatka, null); 87 90 Mouse.Listen(MouseButton.Left, ButtonState.Pressed, gayteleport, null); 88 Camera. Follow(homo);91 Camera.ZoomToLevel(); 89 92 90 93 } … … 229 232 PhysicsObject palikka = PhysicsObject.CreateStaticObject(40, 40); 230 233 palikka.Position = paikka; 231 palikka. Color = Color.Gray;234 palikka.Image = seina; 232 235 Add(palikka); 233 236 }
Note: See TracChangeset
for help on using the changeset viewer.