setSize(WINDOW_WIDTH, WINDOW_HEIGHT);
offscreen = createImage(getSize().width, getSize().height);
bufferGraphics = offscreen.getGraphics();
/* init the player */
p = new Player(360, 300);
/* init the other GUI elements */
npc = new NPC(690, 420);
/* init the map */
mainMap = new GameMap(this);