Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的坐标系统有问题。我想要实现的是(0,0)的起点在屏幕的中间而不是在屏幕的底部。我遇到了一个问题,涉及到相机的坐标,我的地图看起来更小,我的精灵在屏幕上更大,并弄乱了碰撞。
这是我的代码:单击此处获取代码
利用:
cam = new OrthographicCamera(10*(w/h), 10);
不使用:
cam.setToOrtho(false, 10*(w/h), 10); cam.update();
然后。