60616263646566
load("hero.png"); lastAnim = System.currentTimeMillis(); setHitBox(TILE_SIZE-10, TILE_SIZE); cameraBox = new CameraBox(); }
7576777879808182838485
framesPerSec = 0; gameState = MAIN_MENU; mainMenu = new MainMenu(SCREEN_W, SCREEN_H); fontManager = new FontManager(); currentLevel = 1; generate = new GeneratingScreen(SCREEN_W, SCREEN_H, currentLevel); //generate.setLevel(currentLevel);
6768697071727374757677
backBuffer = new BufferedImage(SCREEN_W, SCREEN_H, BufferedImage.TYPE_INT_RGB); g2d = backBuffer.createGraphics(); // Tools keyboard = new KeyInput(); addKeyListener(keyboard); framesPerSec = 0; gameState = MAIN_MENU;
1920212223242526272829
private Loader loader; private int rows, cols; private Random rand; public TileManager() { loader = new Loader(); rand = new Random(); // Load level 1 tileSheet Toolkit tk = Toolkit.getDefaultToolkit(); levelImg = tk.getImage(loader.getURL("level1_16.png"));