TheAdamSmith / precursor

0 stars 0 forks source link

Enemy spawn system #34

Closed ninja-rage closed 6 months ago

ninja-rage commented 6 months ago

added a script for instantiating and spawning enemies. Currently the spawning happens randomly, only thing necessary is to know the name of the loaded resource.

This works by saving the resource inside the enemyAnimatesSprite2D folder, loading it by name, and then adding it to an instantiated enemy.tscn child.

ninja-rage commented 6 months ago

Tested it, should be good to go. Merge conflicts were minimal and also added the group stuff. @mitchellkazin15 lmk if there's anything else to fix.