Ignore:
Timestamp:
2017-06-16 12:47:02 (2 years ago)
Author:
npo17_7
Message:

Kaikki 100% valmis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/MatiasK/SimpleGame/SimpleGame/SimpleGame/SimpleGame.cs

    r8778 r8796  
    4141        Level.Background.CreateStars(10000); 
    4242 
    43         Label tekstikentta = new Label(200.0, 20.0, "Beat the score 434"); 
     43        Label tekstikentta = new Label(205.0, 20.0, "Beat the score 1052"); 
    4444        Add(tekstikentta); 
    4545 
    4646        tekstikentta.X = Screen.Left + 130; 
    4747        tekstikentta.Y = Screen.Top - 150; 
     48         
    4849         
    4950 
     
    8586        MediaPlayer.IsRepeating = true; 
    8687 
    87         Grenade kranu = new Grenade(4.0); 
    88  
    89         kranu.Explosion.ShockwaveReachesObject += KranaattiOsui; 
    90  
    91         kranu.Explosion.AddShockwaveHandler("vihollinen", KranaattiOsui); 
     88 
     89 
     90         
    9291 
    9392 
     
    188187        Grenade kranu = new Grenade(4.0); 
    189188        pelaaja.Throw(kranu, Angle.FromDegrees(30), 10000); 
     189        kranu.Explosion.ShockwaveReachesObject += KranaattiOsui; 
     190         
     191        kranu.Explosion.AddShockwaveHandler("Vihu", KranaattiOsui); 
    190192    } 
    191193 
     
    201203        reunapalikka.Y = y; 
    202204        reunapalikka.Tag = "seina"; 
     205        reunapalikka.IgnoresExplosions = true; 
    203206        Add(reunapalikka); 
    204207    } 
Note: See TracChangeset for help on using the changeset viewer.