Changeset 4005 for 2013/23


Ignore:
Timestamp:
2013-06-07 09:30:13 (6 years ago)
Author:
sijoseha
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/23/LeoS/Tasohyppelypeli2.cs

    r3995 r4005  
    3636    Image hahmonkuva = LoadImage("iron"); 
    3737    Image olionkuva3 = LoadImage("Copcar"); 
     38    Image seina = LoadImage("wall"); 
    3839    IntMeter elamat; 
    3940    List<PushButton> potionit = new List<PushButton>(); 
     
    4344    { 
    4445        LuoKentta(); 
     46        MediaPlayer.Play("biaatch"); 
     47        MediaPlayer.IsRepeating = true; 
    4548        Gravity = new Vector(0, -2000); 
    4649        elamat = new IntMeter(10, 0, 10); 
     
    7982        Mouse.IsCursorVisible = true; 
    8083        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äinkomennot 
    82         Keyboard.Listen(Key.Right, ButtonState.Down, Kavele, null, (100.0));                                                //näppäinkomennot                                                //näppäinkomennot 
     84        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 
    8386        //Keyboard.Listen(Key.A, ButtonState.Down, hyokkaa, null, homo); 
    8487        Keyboard.Listen(Key.Z, ButtonState.Released, JuoPotion, null); 
     
    8689        Keyboard.Listen(Key.Q, ButtonState.Down, Jatka, null); 
    8790        Mouse.Listen(MouseButton.Left, ButtonState.Pressed, gayteleport, null); 
    88         Camera.Follow(homo); 
     91        Camera.ZoomToLevel(); 
    8992 
    9093    } 
     
    229232        PhysicsObject palikka = PhysicsObject.CreateStaticObject(40, 40); 
    230233        palikka.Position = paikka; 
    231         palikka.Color = Color.Gray; 
     234        palikka.Image = seina; 
    232235        Add(palikka); 
    233236    } 
Note: See TracChangeset for help on using the changeset viewer.