Changeset 3922


Ignore:
Timestamp:
2013-01-26 11:13:43 (7 years ago)
Author:
anlakane
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2012/09-22/JariK/Jimmy The Survivor!/Jimmy The Survivor!/Jimmy The Survivor!/Jimmy_The_Survivor_.cs

    r3917 r3922  
    2323 
    2424        IsMouseVisible = true; 
    25         MultiSelectWindow alkuValikko = new MultiSelectWindow("Briefing:", 
    26            "General: Lt Jimmy! Your task is destroy the enemy forces. Go and try not to get killed! Click here to start", "Exit"); 
     25        MultiSelectWindow alkuValikko = new MultiSelectWindow 
     26     ("Jimmy The Survivor 0.5", "General: Lt Jimmy! Your task is destroy the enemy forces. Go and try not to get killed! Click here to start", "Exit"); 
    2727                    
    2828        alkuValikko.AddItemHandler(0, AloitaPeli);                 
     
    5050        Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "Ammu", Jimmyase); 
    5151        Mouse.ListenMovement(0.1, Tahtaa, "Tähtää aseella"); 
     52        Keyboard.Listen(Key.P, ButtonState.Pressed, Pause, "Pysäyttää pelin"); 
    5253         
    5354        //Reunat 
     
    6465        oikeareuna.Color = Color.LightBlue; 
    6566        Add(oikeareuna); 
    66         
    67         
     67      
    6868    } 
    6969    void VihollinenTormasi(PhysicsObject Jimmy, PhysicsObject Vihollinen) 
    7070    {       
    7171        elamaLaskuri.Value -= 1; 
    72          
    7372    } 
    7473    void AmmuAseella(PlasmaCannon ase) 
     
    107106    { 
    108107        ajastin = new Timer(); 
    109         ajastin.Interval = 0.2; 
     108        ajastin.Interval = 0.4; 
    110109        ajastin.Timeout += LisaaVihollinen; 
    111110        ajastin.Start(); 
     
    128127    } 
    129128 
    130      
    131129    IntMeter pisteLaskuri; 
    132130 
     
    143141        pisteNaytto.BindTo(pisteLaskuri); 
    144142        Add(pisteNaytto); 
    145          
    146          
    147        
    148  
     143     
    149144    } 
    150145    void PainettiinValikonNappia(int valinta) 
     
    184179        MessageDisplay.MessageTime = new TimeSpan(0, 0, 60); 
    185180    } 
    186  
    187  
     181     
    188182    void LiikutaJimmya(Vector vektori) 
    189183    { 
    190184        Jimmy.Push(vektori); 
    191185    } 
    192  
    193  
    194186} 
Note: See TracChangeset for help on using the changeset viewer.