public void tick() {
		// Calculating FPS
		if (this.fps > 0) this.delta = 1000 / this.fps;
		
		if (!Param.isPause()) {
			if (!Param.isTitleScreen() && !Param.isEndScreen()) {
				// Update the offset location
				offX = (player.getX() - dimension.width / 2) + index;
				offY = (player.getY() - dimension.height / 2) + index;
				
				// Update the level (entities, tiles, ...)
				world.tick(player, this.delta);
				
				// Update the player
				player.tick(world, delta);
				
				// Player's death
				if (!player.isAlive()) {
					world.load(Resources.level[world.getID()]);
					player.respawn(world.getSpawnX(), world.getSpawnY()); 
				}
			
				// Shake the camera if true
			//	if (shake) 
			//		shakeCamera(3);
			}
		}
	}