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
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.