crystal-bit / space-shooter

Shoot 'em up game, developed for the Hacktoberfest 2019 event with the Crystal Bit community.
GNU General Public License v3.0
41 stars 34 forks source link

Implement enemy spawn #30

Closed davcri closed 5 years ago

davcri commented 5 years ago

Now that we have an enemy scene (see #25), we can implement a spawn system for the enemies.

We need a script that:

1.Creates a new instance of the Enemy1.tscn

  1. Has a constant variable called MAX_AMOUNT_OF_ENEMIES with value 5
  2. Stops spawning if there are more than MAX_AMOUNT_OF_ENEMIES

[Optional]:


Note: feel free to remove the GUI elements that you see in the right side of Level1 scene.

Screenshot_20191002_195721

Derek52 commented 5 years ago

Can I take this issue?

davcri commented 5 years ago

Sure @Derek52 :smiley:

Derek52 commented 5 years ago

Instead of a script, can I make an enemy spawning node? The node could be positioned wherever an enemy should spawn, and new enemies could spawn at the spawner's position.

davcri commented 5 years ago

Done in #33