I was wondering if there were any better ways of removing game objects in my game programmatically by hand. Essentially, once the player collides with the enemy, I want to dispose of the entity entirely.
Is there any better way to do this except for moving the enemy off screen and allowing Javas’s garbage collector to flush it’s memory usage when I dispose of the current screen/move to a different level?