Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.badlogic.gdx.graphics.g2d.SpriteBatch;
- import com.badlogic.gdx.graphics.g2d.TextureRegion;
- public class Ding extends GameObjekt {
- private TextureRegion dasDing;
- public Ding(TextureRegion region) {
- this.dasDing = region;
- }
- @Override
- public void load() {
- }
- @Override
- public void update(float delta) {
- }
- @Override
- public void render(SpriteBatch batch) {
- batch.draw(dasDing, getWidth() / 3, getHeight() / 2);
- }
- @Override
- public void dispose() {
- }
- }
Add Comment
Please, Sign In to add comment