egordorichev / LastTry

:deciduous_tree: LastTry is open-source game written in Java, using LibGDX library and inspired by Terraria :deciduous_tree:
MIT License
119 stars 17 forks source link

Enemy spawn feature - Part 1 #56

Closed logotie closed 7 years ago

logotie commented 7 years ago

Working based on this requirement: https://github.com/egordorichev/LastTry/issues/53

Enemy spawn feature is working in a basic form, still improvements need to be made such as:

  1. Handling when the player has just loaded the game and is falling from the sky. Currently the active zone is being calculated correctly, causing more monsters than needed to spawn.

  2. Splitting the spawn system class: I am currently in the process of doing this, which you can see in 'EnemySpawn' & 'SpawnRate'

  3. Code Style fixes and updated comments.

Currently working: When the player has destroyed enemies that are generated after first landing. The enemies seem to be generating according to the rules specified in the code however more testing must be done.