android - LibGdx Camera starts from mid screen -


i using libgdx game development. new this. have setup camera

public void create() {      camera = new orthographiccamera(game.screen_width, game.screen_height); } 

i drawing background have shown below.

public void render(spritebatch sb) {      sb.draw(background, 0, 0,1080,1920);     sb.draw(background,0,1920,1080,1920);     sb.draw(background,0,3840,1080,1920);  } 

with setup getting screen image starts width/2,height/2 instead of (0,0). please let me know code needs correction.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -