Changeset 4387 for 2013/27/TeemuM/Game/Game/Game/Enemies.cs
- Timestamp:
- 2013-07-03 11:45:44 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/27/TeemuM/Game/Game/Game/Enemies.cs
r4380 r4387 11 11 public class Zombie1 : PhysicsObject 12 12 { 13 14 IntMeter zombieHealth1; 15 13 16 private static Image[] Images = { Game.LoadImage("Zombie1"), Game.LoadImage("Zombie2"), Game.LoadImage("Zombie3"), Game.LoadImage("Zombie4") }; 14 15 public Zombie1(double widht, double height, double x, double y ) : base(widht, height)17 18 public Zombie1(double widht, double height, double x, double y, int healt) : base(widht, height) 16 19 { 17 20 this.X = x; … … 20 23 RandomTexture(); 21 24 CreateBrain(); 25 createZHealth(healt); 22 26 23 27 this.IsUpdated = true; 28 } 29 30 void createZHealth(int health) 31 { 32 zombieHealth1 = new IntMeter(health, 0, health + 10); 33 24 34 } 25 35 … … 28 38 this.Image = Images[RandomGen.NextInt(Images.Length)]; 29 39 } 40 30 41 31 42 private void CreateBrain()
Note: See TracChangeset
for help on using the changeset viewer.