// Update the level public void Update(GameTime gameTime, ref Vector2 position, int Width, int Height, GameObject player) { UpdateEnemies(player.position, gameTime); }
public bool HandleEnemyClash(GameObject player) { bool clash = false; foreach(Enemy enemy in enemies) { if(enemy.GetBounds().Intersects(player.GetBounds())) { player.Hit(1); clash = true; } } return (clash); }