Changeset 1395 for 2010/30/alsiseoi/WorldOfBallcraft/Peli.cs
- Timestamp:
- 2010-07-29 11:30:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/30/alsiseoi/WorldOfBallcraft/Peli.cs
r1385 r1395 3 3 using Jypeli.Widgets; 4 4 using Jypeli.Assets; 5 using Jypeli.Effects; 5 6 6 7 public class Peli : PhysicsGame … … 19 20 Vector NopeusVasemmalle = new Vector(-200, 0); 20 21 22 Image olionKuva = LoadImage("nuotio"); 23 21 24 protected override void Begin() 22 25 { 23 26 LuoKentta(); 24 27 AsetaOhjaimet(); 28 LuoEfekti(); 25 29 } 26 30 … … 40 44 Level.BackgroundColor = new Color (62, 102, 55); 41 45 42 Player1 = LuoPelaaja(300, 100, 40, Color.Blue);46 Player1 = LuoPelaaja(300, 100, 40, new Color (1, 14, 105)); 43 47 44 Player2 = LuoPelaaja(300, 200, 40, Color.Red);48 Player2 = LuoPelaaja(300, 200, 40, new Color (64, 0, 0)); 45 49 46 50 Camera.ZoomToLevel(); … … 73 77 Vihollinen.Brain = satunnaisAivot; 74 78 79 PhysicsObject nuotio = PhysicsObject.CreateStaticObject(70.0, 70.0); 80 nuotio.X = 300; 81 nuotio.Y = -200; 82 nuotio.Image = olionKuva; 83 Add(nuotio); 75 84 } 76 85 … … 124 133 } 125 134 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 } 126 151 } 127 152
Note: See TracChangeset
for help on using the changeset viewer.