public GraphicsMain() {
		setMinimumSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));
		setMaximumSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));
		setPreferredSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));
		setIgnoreRepaint(true);
		
		frame = new JFrame(Main.NAME);
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setLayout(new BorderLayout());
		
		frame.add(this, BorderLayout.CENTER);
		frame.addKeyListener(Main.listener);
		frame.pack();
		
		frame.setResizable(false);
		frame.setLocationRelativeTo(null);
		frame.setVisible(true);
		
		if((Main.player.getX() - (WIDTH/ZOOM)/2) > 0) {
			viewX = (Main.player.getX() - (WIDTH/ZOOM)/2) ;
		}
		else {
			viewX = 0;
		}
		
		if((Main.player.getY() - (HEIGHT/ZOOM)/2) > 0) {
			viewY = (Main.player.getY() - (HEIGHT/ZOOM)/2) ;
		}
		else {
			viewY = 0;
		}
	}