private void updateScale()
	{
		
		this.scale = 1.0;
		
		if(this.getWidth() != 0 && this.getHeight() != 0)
		{
			
			double scaleX = (double)this.getWidth() / (double)WORLD_WIDTH;
			double scaleY = (double)this.getHeight() / (double)WORLD_HEIGHT;
			
			double newScale = Math.min(scaleX, scaleY);
			
			if(newScale > 0)
			{
				this.scale = newScale;
			}
		}
		
		this.transform = new AffineTransform();
		this.transform.translate(this.getWidth() / 2, this.getHeight() / 2);
		this.transform.scale(scale, scale);
		this.transform.translate(-WORLD_WIDTH / 2, -WORLD_HEIGHT / 2);
	}