I made this code example that draws a texture on the user's screen:
package com.example.myapp;
import com.badlogic.gdx.*;
import com.badlogic.gdx.graphics.*;
import com.badlogic.gdx..graphics.g2d.*;
public class MyGdxGame implements ApplicationListener
{
TextureRegion image;
@Override
public void create(){
Texture texture = new Texture(Gdx.files.internal("stick.png"));
image = new TextureRegion(texture, 25, 0, 250, 250);
}
@Override
public void render(){
Gdx.gl.glClearColor(1,1,1,1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
batch.begin();
batch.draw(image, 0, 0, 100, 100);
batch.end();
}
public void dispose(){
batch.dispose();
}
public void resize(int width, int height){
}
public void pause(){
}
public void resume(){
}
}
How do I move it to the coordinates I give?