Changeset 3605 for 2012/27


Ignore:
Timestamp:
2012-07-05 15:01:43 (11 years ago)
Author:
eekrkolu
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2012/27/EemilK/Survive untill U die!/Survive untill U die!/Survive untill U die!/Survive_untill_U_die_.cs

    r3604 r3605  
    3232 
    3333        rajahdysPelaaja = new ExplosionSystem(LoadImage("atom bomb"), 100); 
    34  
     34        rajahdysPelaaja.MaxScale = 400; 
     35        rajahdysPelaaja.MinScale = 340; 
     36        Add(rajahdysPelaaja); 
    3537        int i = 0; 
    3638        while (i < 100) 
     
    6163        pallo.X = -240; 
    6264        pallo.Y = -200; 
    63         pallo.Destroyed += delegate { rajahdys.AddEffect(pallo.Position, 100); }; 
     65        pallo.Destroying += delegate { rajahdysPelaaja.AddEffect(pallo.Position, 1); }; 
    6466        AddCollisionHandler(pallo, "vihu", PelaajaOsuu); 
    6567 
     
    7981        Add(pallo2); 
    8082        pallo2.Add(pyssy2); 
    81         pallo2.Destroyed += delegate { rajahdys.AddEffect(pallo2.Position, 100); }; 
     83        pallo2.Destroyed += delegate { rajahdysPelaaja.AddEffect(pallo2.Position, 100); }; 
    8284        AddCollisionHandler(pallo2, "vihu", PelaajaOsuu); 
    8385        rajahdys = new ExplosionSystem(LoadImage("hitler"), 10); 
     
    9597        Level.CreateBorders(); 
    9698        Camera.ZoomToLevel(); 
     99        Keyboard.Listen(Key.Space, ButtonState.Pressed, delegate { pallo.Destroy(); }, ""); 
    97100        Keyboard.Listen(Key.D, ButtonState.Down, Liiku, "pelaaja1: oikealle", pallo, oikealle); 
    98101        Keyboard.Listen(Key.D, ButtonState.Released, Liiku, null, pallo, Vector.Zero); 
Note: See TracChangeset for help on using the changeset viewer.