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.
如何在我的 2D 横向滚动游戏中绘制背景图块?对于 OpenGL es,该循环是否合乎逻辑?我的图块 2400x480。我还想为我的游戏使用视差滚动。
batcher.beginBatch(Assets.background); for(int i=0;i<100;i++) batcher.drawSprite(0+2400*i, 240, 2400, 480, Assets.backgroundRegion); batcher.endBatch();