Changeset 9009


Ignore:
Timestamp:
2017-07-07 12:02:39 (2 years ago)
Author:
onnpihla
Message:

Valmis peli

Location:
2017/27/OnniAapeliP/Super soccer
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 2017/27/OnniAapeliP/Super soccer/Super soccer/Super_soccer/Super_soccer.cs

    r8986 r9009  
    4545    public override void Begin() 
    4646    { 
     47        IsFullScreen = true; 
     48        IsMouseVisible = true; 
     49        Timer.SingleShot(0.1, Begin2); 
     50    } 
     51 
     52    void Begin2() 
     53    { 
    4754        ClearAll(); 
    4855        MultiSelectWindow alkuValikko = new MultiSelectWindow("", "Aloita peli", "Lopeta"); 
    49         alkuValikko.AddItemHandler(0, AloitaPeli); //ValitseMusa); 
     56        alkuValikko.AddItemHandler(0, ValitseMusa); 
    5057        alkuValikko.AddItemHandler(1, Exit); 
    5158        alkuValikko.Y = -100; 
     
    5562        Add(alkuValikko); 
    5663        Level.Background.Image = alkukuva; 
     64        //Level.Background.ScaleToLevelByWidth(); 
     65        Level.Background.Color = Color.Black; 
    5766        MediaPlayer.Play("musiikki2"); 
    5867        MediaPlayer.IsRepeating = true; 
     
    7281        Add(musaValikko); 
    7382        Level.Background.Image = alkukuva; 
     83        //Level.Background.ScaleToLevelByWidth(); 
     84        Level.Background.Color = Color.Black; 
    7485    } 
    7586 
     
    171182        Level.Background.Image = kenttakuva; 
    172183 
    173         IsFullScreen = false; 
    174         //IsFullScreen = true; 
    175         IsMouseVisible = true; 
    176184        Camera.Zoom(1.05); 
    177185    } 
Note: See TracChangeset for help on using the changeset viewer.