I have a 2D game environment set up through LWJGL and Slick-Utils. I have a player that moves around and can shoot bullets.
Every time I create a new bullet, the system has to load the bullet’s spritesheet in.
I am using immediate-mode rendering (I know this isn’t a very efficient way to render things)
My question is:
Is there a way to create these bullets without having slick use the file IO system every single call?
Ideally, load the image in once, and use it for every Bullet object.
Edit: LOL I’m sorry…it’s late. I just created the animation object outside of the bullet class and used one global animation for all bullets…:’(