private Entity MakeMook() { float y = (float)((r.NextDouble()) * ScreenHelper.Viewport.Height); Sprite s = new Sprite(new Vector2(ScreenHelper.Viewport.Width, y), smallFish, AnimationType.None); Entity e = new Enemy(1, "Damage", s, 1, 200f); e.OnDeath += new Action1(SpawnBlood); e.OnDeath += new Action1(SpawnCoin); return e; }
private Entity MakeShark() { Sprite s = new Sprite(new Vector2(ScreenHelper.Viewport.Width, sharkLoc), medFish, AnimationType.None); sharkLoc += (float)medFish.Height / 2; Entity e = new Enemy(500, "Damage", s, 100, 400); e.OnDeath += new Action1(SpawnBlood); e.OnRemove += new Action(endGame); e.Group = "Sharks"; return e; }
private Entity MakeBoss() { float y = (float)(ScreenHelper.Viewport.Height / 2 - moby.Height / 2); Sprite s = new Sprite(new Vector2(ScreenHelper.Viewport.Width, y), moby, AnimationType.None); Entity e = new Enemy(70, "Damage", s, 5, 100f); e.Tag = "Boss"; e.OnDeath += new Action1(SpawnBossBlood); e.OnDeath += new Action1(SpawnCoin); e.OnDeath += BossDeath; e.OnRemove += SpawnSharks; return e; }