Nairo05

GameObjekt.java

Jan 11th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import com.badlogic.gdx.Gdx;
  2. import com.badlogic.gdx.graphics.g2d.SpriteBatch;
  3.  
  4. public abstract class GameObjekt {
  5.  
  6. int width = Gdx.graphics.getWidth();
  7. int height = Gdx.graphics.getHeight();
  8.  
  9. public int getHeight() {
  10. return height;
  11. }
  12.  
  13. public int getWidth() {
  14. return width;
  15. }
  16.  
  17. public abstract void load();
  18. public abstract void update(float delta);
  19. public abstract void render(SpriteBatch batch);
  20. public abstract void dispose();
  21. }
Add Comment
Please, Sign In to add comment