Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            NSApplication.Init();

            using (var game = new MonoBomberGame())
            {
                game.Run();
            }
        }
Ejemplo n.º 3
0
 public Wall(Tile tile, MonoBomberGame game) : base(MonoBomberGame.wallTex, tile, Color.White, game)
 {
     this.health = Wall.BASE_HEALTH;
 }
Ejemplo n.º 4
0
 public Tile(int x, int y, Vector2 pos, MonoBomberGame game) : base(MonoBomberGame.tileTex, pos, Color.LightGray, game)
 {
     this.x = x;
     this.y = y;
 }
Ejemplo n.º 5
0
 public Explosion(Player owner, Tile tile, MonoBomberGame game) : base(MonoBomberGame.explodeTex, tile, owner.Color, game)
 {
     this.owner = owner;
     this.timer = LINGER_TIME;
 }
Ejemplo n.º 6
0
        // 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;
        }