S
Scyth3
I have a save and load method for certain rectangles I need for a game. Say the user wants to save a map. The outputted map would look like this:
50 250 50 50
50 350 50 50
50 400 50 50
50 500 50 50
150 300 50 50
200 450 50 50
200 500 50 50
250 150 50 50
300 100 50 50
400 50 50 50
450 150 50 50
550 100 50 50
X Y Width Height
Now, how would I read this, and turn it into a rectangle?
50 250 50 50
50 350 50 50
50 400 50 50
50 500 50 50
150 300 50 50
200 450 50 50
200 500 50 50
250 150 50 50
300 100 50 50
400 50 50 50
450 150 50 50
550 100 50 50
X Y Width Height
Now, how would I read this, and turn it into a rectangle?