Пример #1
0
		public static bool checkDeath( Player player ) {
			foreach( Explosion exp in BomberMan.explosions ) {
				if( Math.Abs( player.center.X - exp.middleMiddle.X ) < 19 && Math.Abs( player.center.Y - exp.middleMiddle.Y ) < 20 )
					return true;
				if( Math.Abs( player.center.X - exp.lefMiddle.X ) < 19 && Math.Abs( player.center.Y - exp.lefMiddle.Y ) < 20 )
					return true;
			}
			return false;
		}
Пример #2
0
		protected override void LoadContent() {
			font = Content.Load<SpriteFont>( @"Sprites\Arial" );
			player = new Player();
			playerSprite = Content.Load<Texture2D>( @"Sprites\bomberman_black" );
			bombsTexture = Content.Load<Texture2D>( @"Sprites\bomberman_bomb_sheet" );
		}