public void render() {
		BufferStrategy bs = getBufferStrategy();
		if (bs == null) {
			createBufferStrategy(3);
			return;
		}

		screen.clear();

		int xScroll = player.x + (player.getSprite().WIDTH - screen.width) / 2;
		int yScroll = player.y + (player.getSprite().HEIGHT - screen.height) / 2;
		level.render(xScroll, yScroll, screen);

		if (players.size() != 0)
			for (int i = 0; i < players.size(); i++) {
				PlayerData p = players.get(i);
				screen.renderPlayer(p.getX(), p.getY(), Player.sprite_forward);
			}
		player.render(screen);

		for (int i = 0; i < pixels.length; i++) {
			pixels[i] = screen.pixels[i];
		}

		Graphics g = bs.getDrawGraphics();

		g.setColor(Color.WHITE);
		g.fillRect(0, 0, getWidth(), getHeight());
		g.drawImage(image, 0, 0, getWidth(), getHeight(), null);

		g.dispose();
		bs.show();
	}