protected Player(Vector2 pos, Color color, MonoBomberGame game) : base(MonoBomberGame.playerTex, pos, color, game) { // bombs this.bombCooldownLeft = 0; this.health = BASE_HEALTH; this.deaths = 0; }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { NSApplication.Init(); using (var game = new MonoBomberGame()) { game.Run(); } }
public Wall(Tile tile, MonoBomberGame game) : base(MonoBomberGame.wallTex, tile, Color.White, game) { this.health = Wall.BASE_HEALTH; }
public Tile(int x, int y, Vector2 pos, MonoBomberGame game) : base(MonoBomberGame.tileTex, pos, Color.LightGray, game) { this.x = x; this.y = y; }
public Explosion(Player owner, Tile tile, MonoBomberGame game) : base(MonoBomberGame.explodeTex, tile, owner.Color, game) { this.owner = owner; this.timer = LINGER_TIME; }
// amount of time bomb lingers after exploding public Bomb(Player owner, Tile tile, MonoBomberGame game) : base(MonoBomberGame.bombTex, tile, owner.Color, game) { this.owner = owner; this.timer = Player.BOMB_COOLDOWN_TIME; }