Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

feat: spawn enemies when they became near the player #17

Merged
merged 11 commits into from
Oct 25, 2023

Conversation

erickzanardo
Copy link
Member

@erickzanardo erickzanardo commented Oct 20, 2023

Description

Changes the game so the enemies are only spawned when the player gets to a certain proximity of them, and when the enemies gets far from the player, they are automatically removed.

This was necessary in order to keep the game perfomance, no matter how many enemies are in the level.

Note: Needs to wait #16 to land before merging this.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@erickzanardo erickzanardo marked this pull request as draft October 20, 2023 19:41
Base automatically changed from feat/adding-items-enemies to main October 24, 2023 10:18
@erickzanardo erickzanardo marked this pull request as ready for review October 24, 2023 12:08
@marcossevilla marcossevilla merged commit c03e222 into main Oct 25, 2023
3 checks passed
@marcossevilla marcossevilla deleted the feat/enemies-spawn-on-proximity branch October 25, 2023 11:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants