摘要:
Remember that problem from Day 11 about screen coordinates and mouse clicks missing the aliens? Well, it was all my fault. Good thing I discovered it now and not when the game
got downloaded by a bunch of Android users not using 800x480 screens. I was naive and translated the touch coordinates to world coordinates like this:
float x = Gdx.input.getX() - 240f;
float y = 400 - Gdx.input.getY(); 阅读全文