Guest User

Main.java

a guest
Jul 5th, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public class Main {
  2.  
  3. public Main() {
  4.  
  5. Draw.BeginSession();
  6.  
  7. Player p1 = new Player("Test", 100, 10, 10, 32, 32);
  8. Tile testtile = new Tile(TileType.Test, "TestTile", 20, 28, 32, 32);
  9. Camera c = new Camera(p1, p1.getX(), p1.getY());
  10.  
  11.  
  12.  
  13. while (!Display.isCloseRequested()) {
  14. GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
  15. Tile.handleTiles();
  16. Time.update();
  17. Player.handlePlayer();
  18. c.update();
  19. Display.update();
  20. Display.sync(60);
  21. }
  22.  
  23. Display.destroy();
  24.  
  25. }
  26. public static void main(String[] args) {
  27. new Main();
  28.  
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment