Exemplo n.º 1
0
 public Stage()
 {
     Width = 20;
     World = new World(Vector2.Zero);
     World.Gravity = new Vector2(0, 0.1f);
     Character = new Character(this);
 }
Exemplo n.º 2
0
 public CharacterKilledException(String message, Character character)
     : base(message)
 {
     Character = Character;
 }
Exemplo n.º 3
0
 public World()
 {
     Width = 20;
     Character = new Character(this);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Called before the character's collision handling.
 /// </summary>
 /// <param name="character">Character.</param>
 public virtual void Collide(Character character)
 {
 }
Exemplo n.º 5
0
 public override void Collide(Character character)
 {
     base.Collide(character);
     character.Kill("Spikey");
 }