Here’s a running example
Controls: W,A and D moves the player; left-click on mouse (or Z) shoots, ESC closes properly.
When you move (and the tiles move around you) they seem to get darker. Looks like some weird bleeding while moving.
I’m using ra4king’s deltaTime loop, I use g.translate to have the player in the middle and place everything around him.
I’ve done everything I could think of, like rounding the doubles for player position and such, and everything else seems to be very smooth.
I use BufferedImages for all my sprites and tiles, and I’m loading them with ImageIO.
I also sometimes see that the tiles are not being rendered for just one frame or so. Any ideas? What part of the code would you like to see?
It’s a pretty standard tile-rendering loop…
Note: This is using just Java2D. Is this one of the weird things Slick2D might solve?