/// <summary> /// Creates a new player object /// </summary> /// <param name="game"></param> public Player(Game2 game) { this.game = game; timer = new TimeSpan(0); Position = new Vector2(2, 352); Bounds = new BoundingRectangle(Position.X, Position.Y, 32, 45); state = State.Idle; prev_state = State.Idle; powerUpTimer = new TimeSpan(0); bomb = new Bomb(game); keyboard = Keyboard.GetState(); }
public Spike(Game2 game) { this.game = game; timer = new TimeSpan(0); on = false; }
static void Main() { using (var game = new Game2()) game.Run(); }
public GameOver(Game2 game) { this.game = game; }
//Idea for next project: Invisible/Appearing Walls public Wall(Game2 game) { this.game = game; }
public Bomb(Game2 game) { this.game = game; }
public Maze(Game2 game) { this.game = game; }
public Winner(Game2 game) { this.game = game; }