So I'm new to programming alongside the GPU and very new to LibGDX as well. I'm slowly making my way, but I'm having an issue figuring out how to modify where objects are drawn.
Right now, I have a single draw call in my level class:
// Update the camera.
// ------------------
_cameraRef.update();
_cameraRef.apply(Gdx.gl10);
_batchRef.setProjectionMatrix(_cameraRef.combined);
// Draw.
// -----
_batchRef.begin();
_player.draw(_batchRef);
_batchRef.end();
Very simple. The player is drawn at his x and y coordinates.
However, what I'm trying to do is to get him drawn at his x and y coordinates multiplied by a constant (depending on the resolution of the game, this can be 1, 2, or 4).
So instead of being drawn at (4, 8), he'll be drawn at (8, 16).
Basically, is there a way to tell the batch to draw every object at a position 2x or 4x from it's x and y coordinate?
I seem to think SpriteBatch::translate(x, y, z) is the answer, but I can't seem to get it to work the way I want.
Any help appreciated!