PavelZinchenko / event_horizon

GNU General Public License v3.0
55 stars 21 forks source link

fix(gameplay): fixed enemies spawning too soon after calling enemies #43

Closed Arik closed 2 years ago

Arik commented 2 years ago

If there are no enemy ships, _nextShipCooldown increments. If you call an enemy ship during this time period, then _nextShipCooldown is nonzero for the next time there are no enemy ships. This means that the next ship will spawn sooner than intended.

juh9870 commented 2 years ago

Thanks for help!