public void BulletCollisions(Mario mario, Bullet bullet, List <Bullet> listBullets, char[,] gameGround, List <Monster> listMonsters, MapGraound map) { if (bullet.X + 2 < map.Width - 1) { if (gameGround[bullet.X + 1, bullet.Y - 1] == 'X') { listBullets.Remove(bullet); if (ShotButton == true) { mario.MarioShoot(mario, listBullets); } } } }
public void MapInit() { _map = new MapGraound(77, 23); _gameGround = new char[_map.Width, _map.Height]; }