public static void drawObjects(Graphics g){

		if (left)
			xs -= 1;
		else if (right)
			xs += 1;
		if (up)
			ys -= 1;
		else if (down)
			ys += 1;

		if (drag){
			checkMouse();
		}

		g.setColor(PlatformManager.floorColor);

		// draw dynamic objects
		for (Rectangle p : platforms)
			g.fillRect(p.x - xs, p.y - ys, p.width, p.height);
		for (Entity e : entities)
			g.drawImage(LivingEntityManager.enemySprites.get(e.getType()).get(e.aniFrame),
					e.getX() - xs, e.getY() - ys, null);
		g.drawImage(CharacterManager.boyStandFront, character.x - xs, character.y - ys, null);

		// draw static objects (spawns)
		g.fillRect(platformSpawn.x, platformSpawn.y, platformSpawn.width, platformSpawn.height);
		for (EntitySpawn es : EntitySpawn.spawns)
			g.drawImage(LivingEntityManager.enemySprites.get(es.getEntity().getType()).get(0),
					es.getX(), es.getY(), null);
		g.setColor(Color.WHITE);
		g.drawRect(hotbar.x, hotbar.y, hotbar.width, hotbar.height);
	}