コード例 #1
0
ファイル: Player.cs プロジェクト: cmihran/MonoGameBomberman
        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;
        }
コード例 #2
0
ファイル: Main.cs プロジェクト: cmihran/MonoGameBomberman
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            NSApplication.Init();

            using (var game = new MonoBomberGame())
            {
                game.Run();
            }
        }
コード例 #3
0
ファイル: Wall.cs プロジェクト: cmihran/MonoGameBomberman
 public Wall(Tile tile, MonoBomberGame game) : base(MonoBomberGame.wallTex, tile, Color.White, game)
 {
     this.health = Wall.BASE_HEALTH;
 }
コード例 #4
0
ファイル: Tile.cs プロジェクト: cmihran/MonoGameBomberman
 public Tile(int x, int y, Vector2 pos, MonoBomberGame game) : base(MonoBomberGame.tileTex, pos, Color.LightGray, game)
 {
     this.x = x;
     this.y = y;
 }
コード例 #5
0
 public Explosion(Player owner, Tile tile, MonoBomberGame game) : base(MonoBomberGame.explodeTex, tile, owner.Color, game)
 {
     this.owner = owner;
     this.timer = LINGER_TIME;
 }
コード例 #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;
        }