public void draw(Graphics g) {
		game.screen.clear();
		double xScroll = game.player.getX() - game.screen.width / 2;
		double yScroll = game.player.getY() - game.screen.height / 2;
		game.level.render((int) xScroll, (int) yScroll, game.screen);

		for (int i = 0; i < game.pixels.length; i++) {
			game.pixels[i] = game.screen.pixels[i];
		}
		g.drawImage(game.image, 0, 0, game.getWidth(), game.getHeight(), null);

		game.screen.hud.draw(g);

		if (game.debug) {
			g.setColor(new Color(255, 255, 255, 75));
			int xPos = 10;
			g.fillRect(0, 0, 200, debug.length * 16);
			g.setColor(new Color(0, 0, 0));
			for (int i = 0; i < debug.length; i++) {
				if (debug[i] != null) g.drawString(debug[i], xPos, 18 + (14 * i));
			}
		}
	}