Skip to content

Instantly share code, notes, and snippets.

@mstefarov
Forked from anonymous/fafdsagfdas.cs
Created March 4, 2013 06:26
Show Gist options
  • Save mstefarov/5080366 to your computer and use it in GitHub Desktop.
Save mstefarov/5080366 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace ShipGame
{
class MiniBoss : EnemyShip
{
public const int MaxHealth = 240;
public MiniBoss(string textureName, Vector2 startingPosition, int health)
: base(textureName, startingPosition, health)
{
Health = 240;
}
public MiniBoss(string textureName, Vector2 startingPosition)
: base(textureName, startingPosition) { }
public override void Collide(Actor actor)
{
// Order is important
actor.TakeDamage(MaxHealth/12);
TakeDamage(MaxHealth/12);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment