public void render(Graphics g) {
		// increment during a second to calculate FPS
		this.frames++;
		
		// set font
		g.setFont(Resources.normalFont);
		
		// if we are in game
		if (!Param.isTitleScreen() && !Param.isEndScreen()) {
			g.setColor(Resources.levelColor[world.getID()][0]);
			g.fillRect(0, 0, dimension.width, dimension.height);
			g.setColor(Color.BLACK);

			world.render(g, delta);
			player.render(g, delta);
		}
		
		// if we are on the title screen
		else if (Param.isTitleScreen()) {
			if (!splashScreenDuration.isComplete())
				Resources.splashScreen.draw(g, 120, 200, 123,  13, delta);
				
			else
				g.drawImage(Resources.titleScreen, 0, 0, null);
		}
		
		// if we are on the end screen
		else 
			g.drawImage(Resources.endScreen, 0, 0, null);
		
		// draw FPS
		g.setColor(Color.BLACK);
		g.drawString("FPS: "+this.fps, 565, 20);
		
		// indicate that the game is paused
		if (Param.isPause()) {
			g.setFont(Resources.font14);
			g.drawString("GAME PAUSED", 312 - g.getFontMetrics(g.getFont()).stringWidth("GAME PAUSED") / 2, 300);
			g.setFont(Resources.normalFont);
		}
	}