摘要: 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(); 阅读全文
posted @ 2013-11-18 21:44 北漂梧桐 阅读(168) 评论(0) 推荐(0) 编辑