Mark Asteroids and Bullets with a lifetime component so they despawn #14
Notifications
Due Date
No due date set.
Depends on
#13 Create a component & system to despawn entities after an elapsed time.
robert/another-asteroids
#15 Create a Bullet component
robert/another-asteroids
Reference: robert/another-asteroids#14
Reference in New Issue
Block a user
The asteroids and player's bullets should not continue indefinitely. Mark them with a component that will despawn them after they've been moving long enough.
Player bullets could live for a short time so they can't fly entirely across the screen.
Asteroids will need to completely exit the screen. Assign lifetime according to
WorldSize(screen bounds) resource and their generated velocity.