Changeset 9191 for 2017/30/HugoE


Ignore:
Timestamp:
2017-07-28 10:52:27 (2 years ago)
Author:
npo17_65
Message:
 
Location:
2017/30/HugoE/HanniAndHoo/HanniAndHoo
Files:
10 added
5 edited

Legend:

Unmodified
Added
Removed
  • 2017/30/HugoE/HanniAndHoo/HanniAndHoo/HanniAndHoo/HanniAndHoo.cs

    r9189 r9191  
    2929    { 
    3030        AlkuValikko(); 
    31         IsFullScreen = true; 
     31        //IsFullScreen = true; 
    3232         
    3333 
     
    7777 
    7878    void AlkuValikko() 
    79     { 
    80         Level.Background.Image = taustis2; 
     79    {        
    8180        MediaPlayer.Play("taustamusiikki"); 
    8281        MediaPlayer.IsRepeating = true; 
    8382        MultiSelectWindow alkuValikko = new MultiSelectWindow("Hanni vs. Hoo", 
    8483        "Aloita peli", "Lopeta");   
    85         Level.Background.Color = Color.Gray; 
     84        Level.Background.Color = Color.Black; 
    8685        Add(alkuValikko); 
    8786        alkuValikko.AddItemHandler(0, AloitaPeli); 
     
    9291    void LoppuValikko() 
    9392    { 
     93        MediaPlayer.Stop(); 
    9494        MultiSelectWindow loppuValikko = new MultiSelectWindow("Hanni vs. Hoo", 
    9595       "Pelaa uudestaan", "Lopeta"); 
    96         Level.Background.Color = Color.Gray; 
     96        Level.Background.Color = Color.Black; 
    9797        Add(loppuValikko); 
    9898        loppuValikko.AddItemHandler(0, AloitaPeli); 
     
    123123        if (!Kohde.Tag.Equals("pelaaja2")) return; 
    124124        PeliUkko pu = (PeliUkko)Kohde; 
    125         pu.Elamalaskuri.AddValue(-4); 
     125        pu.Elamalaskuri.AddValue(-5); 
    126126 
    127127    } 
     
    131131        if (!Kohde2.Tag.Equals("pelaaja")) return; 
    132132        PeliUkko pu = (PeliUkko)Kohde2; 
    133         pu.Elamalaskuri.AddValue(-4); 
     133        pu.Elamalaskuri.AddValue(-7); 
    134134 
    135135 
     
    149149    void LuoKentta() 
    150150    { 
     151 
    151152        MediaPlayer.Stop(); 
     153        MediaPlayer.Volume = 0.2; 
    152154        MediaPlayer.Play("TaistelumusaEhdokas2"); 
    153155        MediaPlayer.IsRepeating = true; 
     
    156158        Level.Height = Screen.Height; 
    157159        Level.Background.Image = taustis; 
    158         Level.Background.ScaleToLevelByHeight(); 
     160        //Level.Background.ScaleToLevelByHeight(); 
     161        Level.Background.ScaleToLevelByWidth(); 
    159162        Gravity = new Vector(0.0, -800.0);         
    160163        PhysicsObject AlaReuna = Level.CreateBottomBorder(0.0, true); 
     
    210213    { 
    211214        PhysicsObject Ammus = HanninAse.Shoot(); 
    212         HanninAse.FireRate = 2; 
     215        HanninAse.FireRate = 2.5; 
    213216        if (Ammus != null) 
    214217        { 
Note: See TracChangeset for help on using the changeset viewer.