Ignore:
Timestamp:
2010-07-29 11:30:46 (13 years ago)
Author:
alsiseoi
Message:

Nuotion pohja valmis.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2010/30/alsiseoi/WorldOfBallcraft/Peli.cs

    r1385 r1395  
    33using Jypeli.Widgets; 
    44using Jypeli.Assets; 
     5using Jypeli.Effects; 
    56 
    67public class Peli : PhysicsGame 
     
    1920    Vector NopeusVasemmalle = new Vector(-200, 0); 
    2021 
     22    Image olionKuva = LoadImage("nuotio"); 
     23 
    2124    protected override void Begin() 
    2225    { 
    2326        LuoKentta(); 
    2427        AsetaOhjaimet(); 
     28        LuoEfekti(); 
    2529    } 
    2630 
     
    4044        Level.BackgroundColor = new Color (62, 102, 55); 
    4145 
    42         Player1 = LuoPelaaja(300, 100, 40, Color.Blue); 
     46        Player1 = LuoPelaaja(300, 100, 40, new Color (1, 14, 105)); 
    4347 
    44         Player2 = LuoPelaaja(300, 200, 40, Color.Red); 
     48        Player2 = LuoPelaaja(300, 200, 40, new Color (64, 0, 0)); 
    4549         
    4650        Camera.ZoomToLevel(); 
     
    7377        Vihollinen.Brain = satunnaisAivot; 
    7478 
     79        PhysicsObject nuotio = PhysicsObject.CreateStaticObject(70.0, 70.0); 
     80        nuotio.X = 300; 
     81        nuotio.Y = -200; 
     82        nuotio.Image = olionKuva; 
     83        Add(nuotio); 
    7584    } 
    7685 
     
    124133    } 
    125134 
     135    void LuoEfekti() 
     136    { 
     137        int pMaxMaara = 200; 
     138        ExplosionSystem rajahdys = new ExplosionSystem(LoadImage("testi"), pMaxMaara); 
     139        Add(rajahdys); 
     140        double x = 0; 
     141        double y = 0; 
     142        int pMaara = 10; 
     143        rajahdys.AddEffect(x, y, pMaara); 
     144 
     145        Flames liekki = new Flames("tulitest", 25, Angle 90); 
     146        liekki.Position = new Vector(300, -200); 
     147        Add(liekki); 
     148 
     149 
     150    } 
    126151} 
    127152 
Note: See TracChangeset for help on using the changeset viewer.