public void draw(Graphics g)
	{	
		int minx = (int) (worldx / Texture.tilesize);
		int maxx = (int) ((worldx + Main.width) / Texture.tilesize) + 1;
		int miny = (int) (worldy / Texture.tilesize);
		int maxy = (int) ((worldy + Main.height) / Texture.tilesize) + 1;
		if(maxx > width) maxx = width;
		if(maxy > height) maxy = height;
		for(int x = minx; x < maxx; x++)
		{
			for (int y = miny; y < maxy; y++) 
			{
				tiles[x][y].draw(g, (int) -worldx, (int) -worldy);
			}
		}
		for(int i = 0; i < bullets.size(); i++)
		{
			bullets.get(i).draw(g, (int) -worldx, (int) -worldy);
		}
		for (int i = 0; i < enemies.size(); i++) 
		{
			enemies.get(i).draw(g, (int) -worldx, (int) -worldy);
		}
		player.draw(g);
	}