TheBeocro
  • Member for 7 years, 5 months
  • Last seen more than 5 years ago
Aligning Camera to Rectangle
2 votes

I managed to figure it out. The answer was actually extremely simple, and I was overthinking it. I just changed x=-((leftX+Math.abs(leftX-rightX)/2)-Main.WINDOW_WIDTH/2/scale); y=-((topY+Math.abs(...

View answer
2D Lighting Glitch
Accepted answer
2 votes

I know this is old, but I finally discovered the solution. In my game, I am using g.translate(x,y); but I was using a float for the x and y values. So I did this: g.translate(Math.round(transX),Math....

View answer
How can I optimize performance when updating tiles?
Accepted answer
0 votes

The solution was provided by William'MindWorX'Mariager: Only update the tiles in the camera view if the camera view has moved a certain amount, and leave everything else alone. At least, that's how I ...

View answer