The VG Resource

Full Version: [Utopia] Help with many little things
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everybody.

For some time, I have been riping the content of "Utopia, Creation of a Nation", a SNES game.
I know that there is already a section for this game, but it only contains a small number of assets.
I have about 500 distincts assets.

The problem is : between the moment I started and now, I changed the method used for ripping content.
Several times.

I know myself a bit and I know there is a high risk that all of this content just end up nowhere, that I'll just give up the whole thing.
I recently had a HDD problem and almost lost A LOT of things (these assets being the least interesting of them).
Even this post has been written little by little. Add to this that english is not my native language.

So, here it is. It's not yet "done" and it's why I need a bit of help.
First, it's not organized on a "spritesheet". It's invidual files. However, I guess that there exists some tool to do this automagically so it shouldn't be too much of a problem. I myself have a script (php) to gather them (which create a PNG which I pass through an other program, in C, I made to generate a compressed file in the form of a C source file containing an array and automated image extraction so I don't need to link SDL_image and libpng+zlib, only zlib blablabla).
Then, I need information about color in the SNES. I use zsnes, but it adds a 2 pixels black line at the bottom of the screen.
For full screen images, I patched them with 2 lines from snes9x BUT colors are a bit different. The compression script mentionned above contains a "magnet" algorithm (to palettize the image), but I don't know what is the REAL color I should have.
So I need informations about the SNES, how it handles colors and how should a "magnet" red green and blue channels.
Is white 255,255,255 ? In true color yes, but in SNES ?
And is black 0,0,0 ? Same as above.

And, when tiles are like "autotiles" (for example a lake) should I use special names ? Like "left_border", "bottom_corner", "middle" etc ? Right know I use only numbers.

Here is a zip containing most of this work (including copies etc. I am going to clean this up as soon as I'll have ripped everything).

https://drive.google.com/open?id=1uAbt6s...ZOZBs9yWuV

You have 2 "root" directories :
_creation
java

_creation was used to ... well "create" things for my program. What you want in it is: "resources - Copie". It contains units and buildings. Also tiles, but, "old fashion" ripped, so there is likely more errors in there. I also planned to extract only the "snow" planet back then.
It also contains some sound file, but I realized recently (today) that I ripped them WITH song filter and that I need to extract them again.

java : it's the tool I ended up with. It implements the "left and right" method described at the end of the post.
+ it uses MD5 hash to detect if a tile has already been ripped (faster than a pixel by pixel comparison). As is, it contains absolute path hardcoded so it's not usefull. But you have it (and I can edit it)
I made it myself, so I am absolutly sure I have the right to share it XD

And you have tiles extracted in  : grass, pink, red, rock, snow.
It's NOT over. There is still some little thing missing, I am pretty sure. And, as I said, I need a little help.


There is 5 different kind of planet in "utopia":
red
green (moss)
white (snow)
grey (rock)
pink

Once again I need help. Should I use only "colors" (pink etc.) ? Grass and snow are good names, but I couldn't find a name for "pink".
I am asking a question because, with the clone of Utopia I am making, I also made an editor (I didn't have a HDD for a week, but I had a usb key and a browser ... so, I started an editor in javascript XD).


There is two planets for each "theme
On each planet there is an alien race, so you have 10 alien races.
Each alien has at least one type of unit. But they can have more. 
It is (was) especially hard to rip alien units, as they tend to destroy everything and you can't control them.
I also "ripped" the construction time for each building, how many available worker you need, how much energy it consumes, how much units it produces etc.
And also some piece of algorithms, key values, some texts, box placement, gui speed (for the movement of the cursor and the opening of windows). I just don't know what you want.
once again, need help : do you know a method to extract easily texts from a rom (instead of doing it by hand).


However, here is some tip/trick if people want to do that themselves.
If you want to play and enjoy the game, you may as well stop reading now, as you have cheat and bug use below.

1) You can't build farther than 12 tile from a fluxpod (= you need to be "close" to a fluxpod to build, close=12 tile radius).
EXCEPT when you build fluxpods at the very top or the very bottom (first and last line of the map) of the map.
There you can build fluxpod (if you have enough money&colons, if the ground is buildable etc.).
And once the fluxpod is done building, you can use it as a regular fluxpod and build whatever you want.
2) Ennemies tend to don't be hostile just after they enter the map. Build on the border of the map, you'll be mostly safe.
3) Ennemies need a "buildable" tile to spawn. I am not talking about the "near fluxpod" thing, they need a free tile where you could build something. Make a wall around the map : no new ennemy will enter.
4) We are on a Super Nintendo, so there is little processing power.  For this reason, devs didn't implement a smart AI and use a trick instead: ennemy units go from a marker to the other.
Move the marker, you'll change where they go (their path is updated once they reach the previous destination, however).
This is not stupid at all, as you use yourself these marker to move your units. Without knowing it, when you was sending units to key points you was also giving the ennemy a location to attack.  

Combining all of this, you can start the game by building a flux pod at the top of the map and extend on the border from this. If you are fast enough, you'll be able to leave the center of the map before they attack. Once it's done, you can observe them and take as much pictures as you want.

If you want to rip tiles it's a bit easier.
Global information : a tile is 32 pixel width and at least 15 pixel height. It can be higher without problem (for example most building/mountain/tree are higher)
Tiles connect left and right, no "up and down". This mean that you have rows of tiles, not columns.
The bottom of a tile is typically a "stairs" of 2*1. This is sometime not the case and it leads to tiles "bugging over" the border of the viewport, or having a hole.

You need to use what I call the "left and right method".
First, disable layer "BG2". It's the border and the background.

Put the wanted tile at the leftmost of the area. Take a screenshot.
Put the wanted tile at the rightmost of the area. Take a screenshot.

Now you can extract the 2 half of the tile, 16 and 16 pixels. You can take a vertically big rectangle, as you have only black beneath and below the tile.

You can also try the "top and bottom method", but it will not work well in some case ( as tiles can be higher than 15 pixel they can overlap tiles above them).

Note that you can easily find, with zsnes cheat, the "code" to freeze the day. If you do that as soon as you start the game, you'll be able to rip every tiles you want without being bothered with colony management.
(well, earth will try to sell you colons time to time but it's all).

Thanks for reading.
Sorry for the almost unreadable post.
Ok, no reply.
So, here is an image containing pretty much everything. Pretty much, because there isn't the font and there is maybe other things missing.

[Image: out10.png]

As is, I REALLY don't find this usefull, without "semantic", i.e. rectangles.
You can also notice that some image does not have the same size (like medals etc.). It's because I thought it was a 58*58 pixel in a frame and it appears to be at least 60*60 pixels in a frame (as the picture can overflow the frame a bit).

So, here is "the rectangles". It's javascript (I am trying to produce, from images, the resources for both editor and game).
x : x position of the rectangle (horizontally, from left to right).
y : y position of the rectangle (vertically, from up to bottom).
w : width of the rectangle
h : height of the rectangle
i : "index" of the tile. You don't have any use for this.

It seems that there is less than 256 landscape tiles. I need to use the same "index" in both the game and the editor.
At the end of all this variables, you have them regrouped by categories.

I didn't have time to test this code.
But the code doesn't matter for you : it's only a support for rectangles informations, names etc.
I may edit (or delete and re-post) this post once this will be better.

Code:
var air_explosion_1 = {x:233, y:2689, w:9, h:10, i:-1};
var air_explosion_2 = {x:158, y:2614, w:14, h:13, i:-1};
var air_explosion_3 = {x:226, y:2484, w:16, h:14, i:-1};
var arms_laboratory = {x:32, y:1871, w:32, h:24, i:-1};
var assault_craft_0 = {x:224, y:2513, w:16, h:12, i:-1};
var assault_craft_135 = {x:176, y:2562, w:16, h:8, i:-1};
var assault_craft_180 = {x:240, y:2513, w:16, h:12, i:-1};
var assault_craft_225 = {x:16, y:2550, w:16, h:10, i:-1};
var assault_craft_270 = {x:170, y:2572, w:15, h:14, i:-1};
var assault_craft_315 = {x:32, y:2550, w:16, h:10, i:-1};
var assault_craft_45 = {x:192, y:2562, w:16, h:8, i:-1};
var assault_craft_90 = {x:150, y:2588, w:15, h:12, i:-1};
var attack_epic_fail_1 = {x:180, y:1352, w:58, h:58, i:-1};
var attack_epic_fail_2 = {x:0, y:1410, w:58, h:58, i:-1};
var attack_epic_success_1 = {x:192, y:1290, w:60, h:60, i:-1};
var attack_epic_success_2 = {x:0, y:1350, w:60, h:60, i:-1};
var attack_fail_1 = {x:58, y:1410, w:58, h:58, i:-1};
var attack_fail_2 = {x:116, y:1410, w:58, h:58, i:-1};
var attack_success_1 = {x:174, y:1410, w:58, h:58, i:-1};
var attack_success_2 = {x:0, y:1468, w:58, h:58, i:-1};
var attack_success_3 = {x:58, y:1468, w:58, h:58, i:-1};
var attack_success_4 = {x:116, y:1468, w:58, h:58, i:-1};
var attack_success_5 = {x:174, y:1468, w:58, h:58, i:-1};
var bg_building = {x:0, y:0, w:256, h:224, i:-1};
var bg_council = {x:0, y:224, w:256, h:224, i:-1};
var bg_map_civil = {x:0, y:1071, w:256, h:49, i:-1};
var bg_map_common = {x:0, y:896, w:256, h:175, i:-1};
var bg_map_military = {x:0, y:1120, w:256, h:49, i:-1};
var bg_map_resources = {x:0, y:1169, w:256, h:49, i:-1};
var bg_terrain = {x:0, y:448, w:256, h:224, i:-1};
var bulldozer = {x:0, y:2012, w:32, h:21, i:-1};
var catal_ship2_0 = {x:90, y:2601, w:15, h:10, i:-1};
var catal_ship2_135 = {x:109, y:2657, w:12, h:10, i:-1};
var catal_ship2_180 = {x:105, y:2601, w:15, h:10, i:-1};
var catal_ship2_225 = {x:120, y:2601, w:15, h:10, i:-1};
var catal_ship2_270 = {x:214, y:2615, w:14, h:12, i:-1};
var catal_ship2_315 = {x:135, y:2601, w:15, h:10, i:-1};
var catal_ship2_45 = {x:121, y:2657, w:12, h:10, i:-1};
var catal_ship2_90 = {x:168, y:2630, w:14, h:9, i:-1};
var catal_ship_0 = {x:132, y:2645, w:13, h:10, i:-1};
var catal_ship_135 = {x:133, y:2658, w:12, h:9, i:-1};
var catal_ship_180 = {x:145, y:2645, w:13, h:10, i:-1};
var catal_ship_225 = {x:158, y:2645, w:13, h:10, i:-1};
var catal_ship_270 = {x:182, y:2631, w:14, h:8, i:-1};
var catal_ship_315 = {x:171, y:2645, w:13, h:10, i:-1};
var catal_ship_45 = {x:145, y:2658, w:12, h:9, i:-1};
var catal_ship_90 = {x:196, y:2631, w:14, h:8, i:-1};
var catal_tank2_0 = {x:140, y:2629, w:14, h:10, i:-1};
var catal_tank2_135 = {x:48, y:2550, w:16, h:10, i:-1};
var catal_tank2_180 = {x:154, y:2629, w:14, h:10, i:-1};
var catal_tank2_225 = {x:228, y:2615, w:14, h:12, i:-1};
var catal_tank2_270 = {x:188, y:2688, w:9, h:11, i:-1};
var catal_tank2_315 = {x:242, y:2615, w:14, h:12, i:-1};
var catal_tank2_45 = {x:64, y:2550, w:16, h:10, i:-1};
var catal_tank2_90 = {x:197, y:2688, w:9, h:11, i:-1};
var catal_tank_0 = {x:13, y:2655, w:12, h:12, i:-1};
var catal_tank_135 = {x:0, y:2627, w:14, h:12, i:-1};
var catal_tank_180 = {x:25, y:2655, w:12, h:12, i:-1};
var catal_tank_225 = {x:41, y:2642, w:13, h:13, i:-1};
var catal_tank_270 = {x:121, y:2702, w:8, h:12, i:-1};
var catal_tank_315 = {x:54, y:2642, w:13, h:13, i:-1};
var catal_tank_45 = {x:14, y:2627, w:14, h:12, i:-1};
var catal_tank_90 = {x:113, y:2700, w:8, h:14, i:-1};
var chemical_plant = {x:116, y:1612, w:32, h:30, i:-1};
var close = {x:34, y:2482, w:16, h:16, i:-1};
var command_center = {x:0, y:1311, w:64, h:39, i:-1};
var command_center_off_p_00 = {x:64, y:1944, w:32, h:23, i:-1};
var command_center_off_p_01 = {x:0, y:1761, w:32, h:28, i:-1};
var command_center_off_p_10 = {x:32, y:1761, w:32, h:28, i:-1};
var command_center_off_p_11 = {x:148, y:1612, w:32, h:30, i:-1};
var command_center_p_00 = {x:96, y:1944, w:32, h:23, i:-1};
var command_center_p_01 = {x:64, y:1761, w:32, h:28, i:-1};
var command_center_p_10 = {x:96, y:1761, w:32, h:28, i:-1};
var command_center_p_11 = {x:180, y:1612, w:32, h:30, i:-1};
var component = {x:50, y:2482, w:16, h:16, i:-1};
var compressed_fuel_tank = {x:32, y:1790, w:32, h:27, i:-1};
var cruiser_0 = {x:0, y:2498, w:16, h:14, i:-1};
var cruiser_135 = {x:240, y:2499, w:16, h:13, i:-1};
var cruiser_180 = {x:16, y:2498, w:16, h:14, i:-1};
var cruiser_225 = {x:0, y:2525, w:16, h:12, i:-1};
var cruiser_270 = {x:66, y:2482, w:16, h:16, i:-1};
var cruiser_315 = {x:16, y:2525, w:16, h:12, i:-1};
var cruiser_45 = {x:0, y:2512, w:16, h:13, i:-1};
var cruiser_90 = {x:146, y:2483, w:16, h:15, i:-1};
var cursor = {x:82, y:2482, w:16, h:16, i:-1};
var eldorian_ship2_0 = {x:112, y:2538, w:16, h:11, i:-1};
var eldorian_ship2_135 = {x:16, y:2512, w:16, h:13, i:-1};
var eldorian_ship2_180 = {x:128, y:2538, w:16, h:11, i:-1};
var eldorian_ship2_225 = {x:32, y:2512, w:16, h:13, i:-1};
var eldorian_ship2_270 = {x:67, y:2642, w:13, h:13, i:-1};
var eldorian_ship2_315 = {x:48, y:2512, w:16, h:13, i:-1};
var eldorian_ship2_45 = {x:64, y:2512, w:16, h:13, i:-1};
var eldorian_ship2_90 = {x:28, y:2639, w:13, h:16, i:-1};
var eldorian_ship_0 = {x:85, y:2656, w:12, h:11, i:-1};
var eldorian_ship_135 = {x:0, y:2618, w:15, h:9, i:-1};
var eldorian_ship_180 = {x:97, y:2656, w:12, h:11, i:-1};
var eldorian_ship_225 = {x:0, y:2600, w:15, h:11, i:-1};
var eldorian_ship_270 = {x:184, y:2645, w:13, h:10, i:-1};
var eldorian_ship_315 = {x:15, y:2600, w:15, h:11, i:-1};
var eldorian_ship_45 = {x:15, y:2618, w:15, h:9, i:-1};
var eldorian_ship_90 = {x:80, y:2643, w:13, h:12, i:-1};
var explorer_0 = {x:32, y:2525, w:16, h:12, i:-1};
var explorer_135 = {x:208, y:2562, w:16, h:8, i:-1};
var explorer_180 = {x:48, y:2525, w:16, h:12, i:-1};
var explorer_225 = {x:150, y:2601, w:15, h:10, i:-1};
var explorer_270 = {x:32, y:2498, w:16, h:14, i:-1};
var explorer_315 = {x:165, y:2601, w:15, h:10, i:-1};
var explorer_45 = {x:224, y:2562, w:16, h:8, i:-1};
var explorer_90 = {x:165, y:2588, w:15, h:12, i:-1};
var fighter_0 = {x:128, y:2673, w:11, h:10, i:-1};
var fighter_135 = {x:157, y:2658, w:12, h:9, i:-1};
var fighter_180 = {x:139, y:2673, w:11, h:10, i:-1};
var fighter_225 = {x:150, y:2673, w:11, h:10, i:-1};
var fighter_270 = {x:210, y:2631, w:14, h:8, i:-1};
var fighter_315 = {x:161, y:2673, w:11, h:10, i:-1};
var fighter_45 = {x:169, y:2658, w:12, h:9, i:-1};
var fighter_90 = {x:14, y:2648, w:14, h:7, i:-1};
var flux_pod = {x:212, y:1612, w:32, h:30, i:-1};
var flux_pod_1 = {x:0, y:1642, w:32, h:30, i:-1};
var flux_pod_2 = {x:32, y:1642, w:32, h:30, i:-1};
var flux_pod_3 = {x:64, y:1642, w:32, h:30, i:-1};
var fuel_tank = {x:64, y:1871, w:32, h:24, i:-1};
var fusion_cruiser_0 = {x:64, y:2525, w:16, h:12, i:-1};
var fusion_cruiser_135 = {x:80, y:2525, w:16, h:12, i:-1};
var fusion_cruiser_180 = {x:96, y:2525, w:16, h:12, i:-1};
var fusion_cruiser_225 = {x:144, y:2538, w:16, h:11, i:-1};
var fusion_cruiser_270 = {x:185, y:2572, w:15, h:14, i:-1};
var fusion_cruiser_315 = {x:160, y:2538, w:16, h:11, i:-1};
var fusion_cruiser_45 = {x:112, y:2525, w:16, h:12, i:-1};
var fusion_cruiser_90 = {x:48, y:2498, w:16, h:14, i:-1};
var game_over = {x:0, y:1526, w:58, h:58, i:-1};
var game_over_alone = {x:60, y:1350, w:60, h:60, i:-1};
var game_over_destroyed = {x:120, y:1350, w:60, h:60, i:-1};
var gray_hole_1 = {x:32, y:2211, w:32, h:15, i:137};
var gray_hole_2 = {x:64, y:2211, w:32, h:15, i:138};
var gray_hole_3 = {x:96, y:2211, w:32, h:15, i:139};
var gray_lake_1 = {x:128, y:2211, w:32, h:15, i:140};
var gray_lake_2 = {x:160, y:2211, w:32, h:15, i:141};
var gray_lake_3 = {x:192, y:2211, w:32, h:15, i:142};
var gray_lake_4 = {x:224, y:2211, w:32, h:15, i:143};
var gray_lake_5 = {x:0, y:2226, w:32, h:15, i:144};
var gray_lake_6 = {x:32, y:2226, w:32, h:15, i:145};
var gray_lake_7 = {x:64, y:2226, w:32, h:15, i:146};
var gray_lake_8 = {x:96, y:2226, w:32, h:15, i:147};
var gray_lake_9 = {x:128, y:2226, w:32, h:15, i:148};
var gray_land_1 = {x:160, y:2226, w:32, h:15, i:149};
var gray_land_2 = {x:192, y:2226, w:32, h:15, i:150};
var gray_land_3 = {x:224, y:2226, w:32, h:15, i:151};
var gray_land_4 = {x:0, y:2241, w:32, h:15, i:152};
var gray_land_5 = {x:32, y:2241, w:32, h:15, i:153};
var gray_lava_1 = {x:64, y:2241, w:32, h:15, i:154};
var gray_lava_2 = {x:96, y:2241, w:32, h:15, i:155};
var gray_lava_3 = {x:128, y:2241, w:32, h:15, i:156};
var gray_moss_1 = {x:160, y:2013, w:32, h:20, i:67};
var gray_moss_2 = {x:64, y:2111, w:32, h:17, i:98};
var gray_moss_3 = {x:192, y:2013, w:32, h:20, i:68};
var gray_moss_4 = {x:64, y:2146, w:32, h:16, i:113};
var gray_moss_5 = {x:96, y:2111, w:32, h:17, i:99};
var gray_moss_6 = {x:96, y:2146, w:32, h:16, i:114};
var gray_moss_7 = {x:0, y:2053, w:32, h:19, i:76};
var gray_mountain_1 = {x:96, y:1642, w:32, h:30, i:0};
var gray_mountain_10 = {x:192, y:1968, w:32, h:22, i:56};
var gray_mountain_11 = {x:64, y:1790, w:32, h:27, i:18};
var gray_mountain_12 = {x:128, y:1642, w:32, h:30, i:1};
var gray_mountain_13 = {x:224, y:1818, w:32, h:26, i:28};
var gray_mountain_2 = {x:96, y:1871, w:32, h:24, i:36};
var gray_mountain_3 = {x:96, y:1790, w:32, h:27, i:19};
var gray_mountain_4 = {x:128, y:1871, w:32, h:24, i:37};
var gray_mountain_5 = {x:224, y:1703, w:32, h:29, i:11};
var gray_mountain_6 = {x:224, y:1968, w:32, h:22, i:57};
var gray_mountain_7 = {x:128, y:1790, w:32, h:27, i:20};
var gray_mountain_8 = {x:0, y:1844, w:32, h:26, i:29};
var gray_mountain_9 = {x:224, y:2013, w:32, h:20, i:69};
var gray_river_1 = {x:128, y:2146, w:32, h:16, i:115};
var gray_river_2 = {x:160, y:2146, w:32, h:16, i:116};
var gray_river_3 = {x:192, y:2146, w:32, h:16, i:117};
var green_lake_1 = {x:160, y:2241, w:32, h:15, i:157};
var green_lake_2 = {x:192, y:2241, w:32, h:15, i:158};
var green_lake_3 = {x:224, y:2241, w:32, h:15, i:159};
var green_lake_4 = {x:0, y:2256, w:32, h:15, i:160};
var green_lake_5 = {x:32, y:2256, w:32, h:15, i:161};
var green_lake_6 = {x:64, y:2256, w:32, h:15, i:162};
var green_lake_7 = {x:96, y:2256, w:32, h:15, i:163};
var green_lake_8 = {x:128, y:2256, w:32, h:15, i:164};
var green_lake_9 = {x:160, y:2256, w:32, h:15, i:165};
var green_land_1 = {x:192, y:2256, w:32, h:15, i:166};
var green_land_2 = {x:224, y:2256, w:32, h:15, i:167};
var green_land_3 = {x:224, y:2146, w:32, h:16, i:118};
var green_land_4 = {x:0, y:2271, w:32, h:15, i:168};
var green_lava_1 = {x:32, y:2271, w:32, h:15, i:169};
var green_lava_10 = {x:64, y:2271, w:32, h:15, i:170};
var green_lava_2 = {x:0, y:2162, w:32, h:16, i:119};
var green_lava_3 = {x:96, y:2271, w:32, h:15, i:171};
var green_lava_4 = {x:128, y:2271, w:32, h:15, i:172};
var green_lava_5 = {x:160, y:2271, w:32, h:15, i:173};
var green_lava_6 = {x:32, y:2162, w:32, h:16, i:120};
var green_lava_7 = {x:64, y:2162, w:32, h:16, i:121};
var green_lava_8 = {x:96, y:2162, w:32, h:16, i:122};
var green_lava_9 = {x:192, y:2271, w:32, h:15, i:174};
var green_moss_1 = {x:128, y:2111, w:32, h:17, i:100};
var green_moss_2 = {x:128, y:2162, w:32, h:16, i:123};
var green_moss_3 = {x:160, y:2162, w:32, h:16, i:124};
var green_moss_4 = {x:0, y:2033, w:32, h:20, i:70};
var green_moss_5 = {x:160, y:2111, w:32, h:17, i:101};
var green_moss_6 = {x:192, y:2162, w:32, h:16, i:125};
var green_moss_7 = {x:32, y:2033, w:32, h:20, i:71};
var green_moss_8 = {x:192, y:2111, w:32, h:17, i:102};
var green_river_1 = {x:224, y:2162, w:32, h:16, i:126};
var green_river_2 = {x:0, y:2178, w:32, h:16, i:127};
var green_river_3 = {x:32, y:2178, w:32, h:16, i:128};
var green_river_4 = {x:64, y:2178, w:32, h:16, i:129};
var green_river_5 = {x:96, y:2178, w:32, h:16, i:130};
var green_river_6 = {x:128, y:2178, w:32, h:16, i:131};
var green_river_7 = {x:160, y:2178, w:32, h:16, i:132};
var green_rock_1 = {x:32, y:2053, w:32, h:19, i:77};
var green_rock_2 = {x:128, y:1944, w:32, h:23, i:50};
var green_rock_3 = {x:224, y:2111, w:32, h:17, i:103};
var green_source_1 = {x:0, y:2128, w:32, h:17, i:104};
var green_tree_1 = {x:160, y:1871, w:32, h:24, i:38};
var green_tree_10 = {x:32, y:2012, w:32, h:21, i:64};
var green_tree_11 = {x:96, y:1845, w:32, h:25, i:32};
var green_tree_12 = {x:0, y:1990, w:32, h:22, i:58};
var green_tree_2 = {x:64, y:2053, w:32, h:19, i:78};
var green_tree_3 = {x:160, y:1790, w:32, h:27, i:21};
var green_tree_4 = {x:160, y:1642, w:32, h:30, i:2};
var green_tree_5 = {x:192, y:1790, w:32, h:27, i:22};
var green_tree_6 = {x:160, y:1944, w:32, h:23, i:51};
var green_tree_7 = {x:192, y:1642, w:32, h:30, i:3};
var green_tree_8 = {x:128, y:1761, w:32, h:28, i:15};
var green_tree_9 = {x:128, y:1845, w:32, h:25, i:33};
var ground_explosion_1 = {x:181, y:2658, w:12, h:9, i:-1};
var ground_explosion_2 = {x:93, y:2643, w:13, h:12, i:-1};
var ground_explosion_3 = {x:162, y:2483, w:16, h:15, i:-1};
var hospital = {x:224, y:1642, w:32, h:30, i:-1};
var hover_tank_0 = {x:200, y:2572, w:15, h:14, i:-1};
var hover_tank_135 = {x:215, y:2572, w:15, h:14, i:-1};
var hover_tank_180 = {x:230, y:2572, w:15, h:14, i:-1};
var hover_tank_225 = {x:64, y:2498, w:16, h:14, i:-1};
var hover_tank_270 = {x:134, y:2686, w:9, h:13, i:-1};
var hover_tank_315 = {x:80, y:2498, w:16, h:14, i:-1};
var hover_tank_45 = {x:0, y:2586, w:15, h:14, i:-1};
var hover_tank_90 = {x:80, y:2683, w:9, h:16, i:-1};
var hydroponics = {x:192, y:1944, w:32, h:23, i:-1};
var kal_ship_0 = {x:197, y:2645, w:13, h:10, i:-1};
var kal_ship_135 = {x:193, y:2658, w:12, h:9, i:-1};
var kal_ship_180 = {x:210, y:2645, w:13, h:10, i:-1};
var kal_ship_225 = {x:223, y:2645, w:13, h:10, i:-1};
var kal_ship_270 = {x:224, y:2631, w:14, h:8, i:-1};
var kal_ship_315 = {x:236, y:2645, w:13, h:10, i:-1};
var kal_ship_45 = {x:205, y:2658, w:12, h:9, i:-1};
var kal_ship_90 = {x:238, y:2631, w:14, h:8, i:-1};
var kal_tank2_0 = {x:37, y:2655, w:12, h:12, i:-1};
var kal_tank2_135 = {x:28, y:2627, w:14, h:12, i:-1};
var kal_tank2_180 = {x:49, y:2655, w:12, h:12, i:-1};
var kal_tank2_225 = {x:30, y:2600, w:15, h:11, i:-1};
var kal_tank2_270 = {x:172, y:2614, w:14, h:13, i:-1};
var kal_tank2_315 = {x:45, y:2600, w:15, h:11, i:-1};
var kal_tank2_45 = {x:42, y:2627, w:14, h:12, i:-1};
var kal_tank2_90 = {x:90, y:2587, w:15, h:13, i:-1};
var kal_tank_0 = {x:80, y:2570, w:15, h:16, i:-1};
var kal_tank_135 = {x:95, y:2570, w:15, h:16, i:-1};
var kal_tank_180 = {x:110, y:2570, w:15, h:16, i:-1};
var kal_tank_225 = {x:125, y:2570, w:15, h:16, i:-1};
var kal_tank_270 = {x:102, y:2613, w:14, h:14, i:-1};
var kal_tank_315 = {x:140, y:2570, w:15, h:16, i:-1};
var kal_tank_45 = {x:155, y:2570, w:15, h:16, i:-1};
var kal_tank_90 = {x:116, y:2613, w:14, h:14, i:-1};
var laboratory = {x:0, y:1672, w:32, h:30, i:-1};
var land_mine = {x:224, y:2271, w:32, h:15, i:-1};
var laser_turret_0 = {x:0, y:2286, w:32, h:15, i:-1};
var laser_turret_135 = {x:32, y:2286, w:32, h:15, i:-1};
var laser_turret_180 = {x:64, y:2286, w:32, h:15, i:-1};
var laser_turret_225 = {x:96, y:2286, w:32, h:15, i:-1};
var laser_turret_270 = {x:128, y:2286, w:32, h:15, i:-1};
var laser_turret_315 = {x:160, y:2286, w:32, h:15, i:-1};
var laser_turret_45 = {x:192, y:2286, w:32, h:15, i:-1};
var laser_turret_90 = {x:192, y:2178, w:32, h:16, i:-1};
var laser_turret_fire_0 = {x:224, y:2286, w:32, h:15, i:-1};
var laser_turret_fire_135 = {x:224, y:2178, w:32, h:16, i:-1};
var laser_turret_fire_180 = {x:0, y:2301, w:32, h:15, i:-1};
var laser_turret_fire_225 = {x:32, y:2301, w:32, h:15, i:-1};
var laser_turret_fire_270 = {x:64, y:2301, w:32, h:15, i:-1};
var laser_turret_fire_315 = {x:96, y:2301, w:32, h:15, i:-1};
var laser_turret_fire_45 = {x:0, y:2194, w:32, h:16, i:-1};
var laser_turret_fire_90 = {x:96, y:2053, w:32, h:19, i:-1};
var launch_pad = {x:128, y:1319, w:64, h:31, i:-1};
var launch_pad_p_00 = {x:128, y:2301, w:32, h:15, i:-1};
var launch_pad_p_01 = {x:160, y:2301, w:32, h:15, i:-1};
var launch_pad_p_10 = {x:192, y:2301, w:32, h:15, i:-1};
var launch_pad_p_11 = {x:224, y:2301, w:32, h:15, i:-1};
var life_support = {x:72, y:1250, w:64, h:40, i:-1};
var life_support_p_00 = {x:192, y:1871, w:32, h:24, i:-1};
var life_support_p_01 = {x:160, y:1845, w:32, h:25, i:-1};
var life_support_p_10 = {x:32, y:1672, w:32, h:30, i:-1};
var life_support_p_11 = {x:224, y:1871, w:32, h:24, i:-1};
var living_quarters = {x:0, y:1732, w:32, h:29, i:-1};
var long_distance_radar = {x:32, y:1732, w:32, h:29, i:-1};
var long_distance_radar_1 = {x:224, y:1790, w:32, h:27, i:-1};
var long_distance_radar_2 = {x:64, y:1732, w:32, h:29, i:-1};
var long_distance_radar_3 = {x:96, y:1732, w:32, h:29, i:-1};
var long_distance_radar_4 = {x:128, y:1732, w:32, h:29, i:-1};
var lucratian_missile_0 = {x:144, y:2561, w:16, h:9, i:-1};
var lucratian_missile_135 = {x:80, y:2550, w:16, h:10, i:-1};
var lucratian_missile_180 = {x:160, y:2561, w:16, h:9, i:-1};
var lucratian_missile_225 = {x:96, y:2550, w:16, h:10, i:-1};
var lucratian_missile_270 = {x:216, y:2667, w:10, h:16, i:-1};
var lucratian_missile_315 = {x:112, y:2550, w:16, h:10, i:-1};
var lucratian_missile_45 = {x:128, y:2550, w:16, h:10, i:-1};
var lucratian_missile_90 = {x:226, y:2667, w:10, h:16, i:-1};
var lucratian_ship_0 = {x:96, y:2498, w:16, h:14, i:-1};
var lucratian_ship_135 = {x:15, y:2586, w:15, h:14, i:-1};
var lucratian_ship_180 = {x:112, y:2498, w:16, h:14, i:-1};
var lucratian_ship_225 = {x:56, y:2627, w:14, h:12, i:-1};
var lucratian_ship_270 = {x:144, y:2550, w:16, h:10, i:-1};
var lucratian_ship_315 = {x:70, y:2627, w:14, h:12, i:-1};
var lucratian_ship_45 = {x:30, y:2586, w:15, h:14, i:-1};
var lucratian_ship_90 = {x:176, y:2538, w:16, h:11, i:-1};
var lucratian_tank2_0 = {x:160, y:2550, w:16, h:10, i:-1};
var lucratian_tank2_135 = {x:80, y:2512, w:16, h:13, i:-1};
var lucratian_tank2_180 = {x:176, y:2550, w:16, h:10, i:-1};
var lucratian_tank2_225 = {x:128, y:2525, w:16, h:12, i:-1};
var lucratian_tank2_270 = {x:81, y:2699, w:8, h:15, i:-1};
var lucratian_tank2_315 = {x:144, y:2525, w:16, h:12, i:-1};
var lucratian_tank2_45 = {x:96, y:2512, w:16, h:13, i:-1};
var lucratian_tank2_90 = {x:89, y:2699, w:8, h:15, i:-1};
var lucratian_tank_0 = {x:105, y:2587, w:15, h:13, i:-1};
var lucratian_tank_135 = {x:192, y:2538, w:16, h:11, i:-1};
var lucratian_tank_180 = {x:120, y:2587, w:15, h:13, i:-1};
var lucratian_tank_225 = {x:186, y:2614, w:14, h:13, i:-1};
var lucratian_tank_270 = {x:143, y:2687, w:9, h:12, i:-1};
var lucratian_tank_315 = {x:200, y:2614, w:14, h:13, i:-1};
var lucratian_tank_45 = {x:208, y:2538, w:16, h:11, i:-1};
var lucratian_tank_90 = {x:206, y:2688, w:9, h:11, i:-1};
var map01 = {x:0, y:672, w:256, h:224, i:-1};
var map_zoom = {x:0, y:1218, w:72, h:72, i:-1};
var matter_teleport = {x:0, y:1895, w:32, h:24, i:-1};
var medal_60 = {x:58, y:1526, w:58, h:58, i:-1};
var medal_70 = {x:116, y:1526, w:58, h:58, i:-1};
var medal_80 = {x:174, y:1526, w:58, h:58, i:-1};
var medal_90 = {x:0, y:1584, w:58, h:58, i:-1};
var mine = {x:64, y:1672, w:32, h:30, i:-1};
var missile_0 = {x:192, y:2550, w:16, h:10, i:-1};
var missile_135 = {x:0, y:2485, w:17, h:13, i:-1};
var missile_180 = {x:208, y:2550, w:16, h:10, i:-1};
var missile_225 = {x:224, y:2550, w:16, h:10, i:-1};
var missile_270 = {x:89, y:2683, w:9, h:16, i:-1};
var missile_315 = {x:240, y:2550, w:16, h:10, i:-1};
var missile_45 = {x:17, y:2485, w:17, h:13, i:-1};
var missile_90 = {x:98, y:2683, w:9, h:16, i:-1};
var missile_launcher = {x:64, y:2033, w:32, h:20, i:-1};
var morgrow_hydroponics = {x:32, y:1895, w:32, h:24, i:-1};
var pasc_ship = {x:107, y:2683, w:9, h:16, i:-1};
var pasc_ship2_0 = {x:112, y:2512, w:16, h:13, i:-1};
var pasc_ship2_135 = {x:45, y:2586, w:15, h:14, i:-1};
var pasc_ship2_180 = {x:128, y:2512, w:16, h:13, i:-1};
var pasc_ship2_225 = {x:144, y:2512, w:16, h:13, i:-1};
var pasc_ship2_270 = {x:0, y:2560, w:16, h:10, i:-1};
var pasc_ship2_315 = {x:160, y:2512, w:16, h:13, i:-1};
var pasc_ship2_45 = {x:60, y:2586, w:15, h:14, i:-1};
var pasc_ship2_90 = {x:160, y:2525, w:16, h:12, i:-1};
var pasc_tank = {x:180, y:2601, w:15, h:10, i:-1};
var pink_acid_1 = {x:0, y:2316, w:32, h:15, i:175};
var pink_acid_2 = {x:224, y:1944, w:32, h:23, i:52};
var pink_acid_3 = {x:32, y:1990, w:32, h:22, i:59};
var pink_acid_4 = {x:128, y:2053, w:32, h:19, i:79};
var pink_crater_1 = {x:32, y:2316, w:32, h:15, i:176};
var pink_crater_2 = {x:64, y:2316, w:32, h:15, i:177};
var pink_crater_3 = {x:96, y:2316, w:32, h:15, i:178};
var pink_crater_4 = {x:128, y:2316, w:32, h:15, i:179};
var pink_flower_1 = {x:160, y:2316, w:32, h:15, i:180};
var pink_flower_2 = {x:192, y:2316, w:32, h:15, i:181};
var pink_goo_1 = {x:224, y:2316, w:32, h:15, i:182};
var pink_goo_10 = {x:160, y:2053, w:32, h:19, i:80};
var pink_goo_11 = {x:192, y:2053, w:32, h:19, i:81};
var pink_goo_2 = {x:224, y:2053, w:32, h:19, i:82};
var pink_goo_3 = {x:0, y:2072, w:32, h:19, i:83};
var pink_goo_4 = {x:32, y:2072, w:32, h:19, i:84};
var pink_goo_5 = {x:0, y:2331, w:32, h:15, i:183};
var pink_goo_6 = {x:64, y:2072, w:32, h:19, i:85};
var pink_goo_7 = {x:96, y:2072, w:32, h:19, i:86};
var pink_goo_8 = {x:128, y:2072, w:32, h:19, i:87};
var pink_goo_9 = {x:160, y:2072, w:32, h:19, i:88};
var pink_lake_1 = {x:32, y:2331, w:32, h:15, i:184};
var pink_lake_2 = {x:64, y:2331, w:32, h:15, i:185};
var pink_lake_3 = {x:96, y:2331, w:32, h:15, i:186};
var pink_lake_4 = {x:128, y:2331, w:32, h:15, i:187};
var pink_lake_5 = {x:160, y:2331, w:32, h:15, i:188};
var pink_lake_6 = {x:192, y:2331, w:32, h:15, i:189};
var pink_lake_7 = {x:224, y:2331, w:32, h:15, i:190};
var pink_land_1 = {x:0, y:2346, w:32, h:15, i:191};
var pink_land_2 = {x:32, y:2346, w:32, h:15, i:192};
var pink_land_3 = {x:64, y:2346, w:32, h:15, i:193};
var pink_land_4 = {x:96, y:2346, w:32, h:15, i:194};
var pink_moss_1 = {x:128, y:2346, w:32, h:15, i:195};
var pink_moss_2 = {x:192, y:2072, w:32, h:19, i:89};
var pink_moss_3 = {x:224, y:2072, w:32, h:19, i:90};
var pink_moss_4 = {x:160, y:2346, w:32, h:15, i:196};
var pink_moss_5 = {x:160, y:2092, w:32, h:18, i:93};
var pink_moss_6 = {x:192, y:2092, w:32, h:18, i:94};
var pink_mountain_1 = {x:64, y:1895, w:32, h:24, i:39};
var pink_mountain_10 = {x:96, y:1895, w:32, h:24, i:40};
var pink_mountain_11 = {x:96, y:1672, w:32, h:30, i:4};
var pink_mountain_12 = {x:128, y:1895, w:32, h:24, i:41};
var pink_mountain_13 = {x:160, y:1895, w:32, h:24, i:42};
var pink_mountain_15 = {x:192, y:1895, w:32, h:24, i:43};
var pink_mountain_2 = {x:224, y:2092, w:32, h:18, i:95};
var pink_mountain_3 = {x:0, y:2110, w:32, h:18, i:96};
var pink_mountain_4 = {x:224, y:1895, w:32, h:24, i:44};
var pink_mountain_5 = {x:128, y:1672, w:32, h:30, i:5};
var pink_mountain_6 = {x:0, y:1817, w:32, h:27, i:23};
var pink_mountain_7 = {x:160, y:1732, w:32, h:29, i:12};
var pink_mountain_8 = {x:32, y:2128, w:32, h:17, i:105};
var pink_mountain_9 = {x:160, y:1672, w:32, h:30, i:6};
var plasma_gun_0 = {x:192, y:2346, w:32, h:15, i:-1};
var plasma_gun_135 = {x:32, y:2194, w:32, h:16, i:-1};
var plasma_gun_180 = {x:224, y:2346, w:32, h:15, i:-1};
var plasma_gun_225 = {x:0, y:2361, w:32, h:15, i:-1};
var plasma_gun_270 = {x:32, y:2361, w:32, h:15, i:-1};
var plasma_gun_315 = {x:64, y:2361, w:32, h:15, i:-1};
var plasma_gun_45 = {x:64, y:2194, w:32, h:16, i:-1};
var plasma_gun_90 = {x:96, y:2194, w:32, h:16, i:-1};
var plasma_gun_fire_0 = {x:64, y:2128, w:32, h:17, i:-1};
var plasma_gun_fire_135 = {x:0, y:2091, w:32, h:19, i:-1};
var plasma_gun_fire_180 = {x:96, y:2361, w:32, h:15, i:-1};
var plasma_gun_fire_225 = {x:128, y:2361, w:32, h:15, i:-1};
var plasma_gun_fire_270 = {x:160, y:2361, w:32, h:15, i:-1};
var plasma_gun_fire_315 = {x:192, y:2361, w:32, h:15, i:-1};
var plasma_gun_fire_45 = {x:32, y:2091, w:32, h:19, i:-1};
var plasma_gun_fire_90 = {x:96, y:2033, w:32, h:20, i:-1};
var power_station = {x:64, y:1312, w:64, h:38, i:-1};
var power_station_p_00 = {x:64, y:1990, w:32, h:22, i:-1};
var power_station_p_01 = {x:192, y:1672, w:32, h:30, i:-1};
var power_station_p_10 = {x:224, y:1672, w:32, h:30, i:-1};
var power_station_p_11 = {x:0, y:1702, w:32, h:30, i:-1};
var qmark = {x:96, y:1990, w:32, h:22, i:-1};
var radar_1 = {x:64, y:2012, w:32, h:21, i:-1};
var radar_2 = {x:0, y:1967, w:32, h:23, i:-1};
var radar_3 = {x:32, y:1967, w:32, h:23, i:-1};
var radar_4 = {x:64, y:1967, w:32, h:23, i:-1};
var red_crater_1 = {x:224, y:2361, w:32, h:15, i:197};
var red_crater_2 = {x:0, y:2376, w:32, h:15, i:198};
var red_crater_3 = {x:32, y:2376, w:32, h:15, i:199};
var red_crater_4 = {x:64, y:2376, w:32, h:15, i:200};
var red_crater_5 = {x:96, y:2376, w:32, h:15, i:201};
var red_hole_1 = {x:128, y:2376, w:32, h:15, i:202};
var red_hole_10 = {x:160, y:2376, w:32, h:15, i:203};
var red_hole_11 = {x:192, y:2376, w:32, h:15, i:204};
var red_hole_2 = {x:224, y:2376, w:32, h:15, i:205};
var red_hole_3 = {x:0, y:2391, w:32, h:15, i:206};
var red_hole_4 = {x:32, y:2391, w:32, h:15, i:207};
var red_hole_5 = {x:64, y:2391, w:32, h:15, i:208};
var red_hole_6 = {x:96, y:2391, w:32, h:15, i:209};
var red_hole_7 = {x:128, y:2391, w:32, h:15, i:210};
var red_hole_8 = {x:160, y:2391, w:32, h:15, i:211};
var red_hole_9 = {x:192, y:2391, w:32, h:15, i:212};
var red_lake_1 = {x:224, y:2391, w:32, h:15, i:213};
var red_lake_10 = {x:0, y:2406, w:32, h:15, i:214};
var red_lake_11 = {x:32, y:2406, w:32, h:15, i:215};
var red_lake_2 = {x:64, y:2406, w:32, h:15, i:216};
var red_lake_3 = {x:96, y:2406, w:32, h:15, i:217};
var red_lake_4 = {x:128, y:2406, w:32, h:15, i:218};
var red_lake_5 = {x:160, y:2406, w:32, h:15, i:219};
var red_lake_6 = {x:192, y:2406, w:32, h:15, i:220};
var red_lake_7 = {x:224, y:2406, w:32, h:15, i:221};
var red_lake_8 = {x:0, y:2421, w:32, h:15, i:222};
var red_lake_9 = {x:32, y:2421, w:32, h:15, i:223};
var red_land_1 = {x:64, y:2421, w:32, h:15, i:224};
var red_land_2 = {x:96, y:2421, w:32, h:15, i:225};
var red_land_3 = {x:128, y:2421, w:32, h:15, i:226};
var red_land_4 = {x:160, y:2421, w:32, h:15, i:227};
var red_moss_1 = {x:96, y:2128, w:32, h:17, i:106};
var red_moss_2 = {x:128, y:2033, w:32, h:20, i:72};
var red_moss_3 = {x:192, y:2421, w:32, h:15, i:228};
var red_moss_4 = {x:224, y:2421, w:32, h:15, i:229};
var red_moss_5 = {x:128, y:2128, w:32, h:17, i:107};
var red_moss_6 = {x:0, y:2436, w:32, h:15, i:230};
var red_moss_7 = {x:160, y:2128, w:32, h:17, i:108};
var red_moss_8 = {x:96, y:2012, w:32, h:21, i:65};
var red_mountain_1 = {x:0, y:1919, w:32, h:24, i:45};
var red_mountain_10 = {x:192, y:1732, w:32, h:29, i:13};
var red_mountain_11 = {x:32, y:1844, w:32, h:26, i:30};
var red_mountain_12 = {x:96, y:1967, w:32, h:23, i:53};
var red_mountain_13 = {x:32, y:1919, w:32, h:24, i:46};
var red_mountain_14 = {x:32, y:1702, w:32, h:30, i:7};
var red_mountain_2 = {x:160, y:2033, w:32, h:20, i:73};
var red_mountain_3 = {x:32, y:1817, w:32, h:27, i:24};
var red_mountain_4 = {x:64, y:1702, w:32, h:30, i:8};
var red_mountain_5 = {x:128, y:1990, w:32, h:22, i:60};
var red_mountain_6 = {x:160, y:1990, w:32, h:22, i:61};
var red_mountain_7 = {x:160, y:1761, w:32, h:28, i:16};
var red_mountain_8 = {x:192, y:1845, w:32, h:25, i:34};
var red_mountain_9 = {x:64, y:1817, w:32, h:27, i:25};
var red_source_1 = {x:128, y:2194, w:32, h:16, i:133};
var scaffold = {x:64, y:1919, w:32, h:24, i:-1};
var security = {x:96, y:1919, w:32, h:24, i:-1};
var ship_yard = {x:192, y:1761, w:32, h:28, i:-1};
var solar_generator = {x:128, y:1919, w:32, h:24, i:-1};
var solar_panel = {x:224, y:2466, w:31, h:16, i:-1};
var soom_ship_0 = {x:152, y:2687, w:9, h:12, i:-1};
var soom_ship_135 = {x:217, y:2658, w:12, h:9, i:-1};
var soom_ship_180 = {x:161, y:2687, w:9, h:12, i:-1};
var soom_ship_225 = {x:172, y:2673, w:11, h:10, i:-1};
var soom_ship_270 = {x:0, y:2658, w:13, h:9, i:-1};
var soom_ship_315 = {x:183, y:2673, w:11, h:10, i:-1};
var soom_ship_45 = {x:229, y:2658, w:12, h:9, i:-1};
var soom_ship_90 = {x:0, y:2647, w:14, h:8, i:-1};
var soom_tank2_0 = {x:242, y:2690, w:9, h:9, i:-1};
var soom_tank2_135 = {x:36, y:2675, w:12, h:8, i:-1};
var soom_tank2_180 = {x:0, y:2705, w:9, h:9, i:-1};
var soom_tank2_225 = {x:241, y:2658, w:12, h:9, i:-1};
var soom_tank2_270 = {x:20, y:2690, w:10, h:9, i:-1};
var soom_tank2_315 = {x:0, y:2674, w:12, h:9, i:-1};
var soom_tank2_45 = {x:48, y:2675, w:12, h:8, i:-1};
var soom_tank2_90 = {x:70, y:2691, w:10, h:8, i:-1};
var soom_tank_0 = {x:9, y:2705, w:9, h:9, i:-1};
var soom_tank_135 = {x:60, y:2675, w:12, h:8, i:-1};
var soom_tank_180 = {x:18, y:2705, w:9, h:9, i:-1};
var soom_tank_225 = {x:12, y:2674, w:12, h:9, i:-1};
var soom_tank_270 = {x:30, y:2690, w:10, h:9, i:-1};
var soom_tank_315 = {x:24, y:2674, w:12, h:9, i:-1};
var soom_tank_45 = {x:72, y:2675, w:12, h:8, i:-1};
var soom_tank_90 = {x:40, y:2690, w:10, h:9, i:-1};
var space_moss_convertor = {x:224, y:1761, w:32, h:28, i:-1};
var sports_complex = {x:136, y:1250, w:64, h:40, i:-1};
var sports_complex_p_00 = {x:224, y:1845, w:32, h:25, i:-1};
var sports_complex_p_01 = {x:96, y:1817, w:32, h:27, i:-1};
var sports_complex_p_10 = {x:128, y:1817, w:32, h:27, i:-1};
var sports_complex_p_11 = {x:96, y:1702, w:32, h:30, i:-1};
var squiz_missile = {x:60, y:2611, w:14, h:16, i:-1};
var squiz_ship = {x:176, y:2525, w:16, h:12, i:-1};
var squiz_ship_f = {x:192, y:2525, w:16, h:12, i:-1};
var squiz_tank = {x:194, y:2673, w:11, h:10, i:-1};
var squiz_tank_f = {x:205, y:2673, w:11, h:10, i:-1};
var store = {x:128, y:1702, w:32, h:30, i:-1};
var tank_0 = {x:106, y:2644, w:13, h:11, i:-1};
var tank_135 = {x:112, y:2628, w:14, h:11, i:-1};
var tank_180 = {x:119, y:2644, w:13, h:11, i:-1};
var tank_225 = {x:180, y:2588, w:15, h:12, i:-1};
var tank_270 = {x:215, y:2688, w:9, h:11, i:-1};
var tank_315 = {x:195, y:2588, w:15, h:12, i:-1};
var tank_45 = {x:126, y:2628, w:14, h:11, i:-1};
var tank_90 = {x:224, y:2688, w:9, h:11, i:-1};
var tank_teleport = {x:160, y:2194, w:32, h:16, i:-1};
var tank_yard = {x:160, y:1919, w:32, h:24, i:-1};
var tilik_ship = {x:176, y:2512, w:16, h:13, i:-1};
var tilik_tank2_0 = {x:16, y:2560, w:16, h:10, i:-1};
var tilik_tank2_135 = {x:74, y:2611, w:14, h:16, i:-1};
var tilik_tank2_180 = {x:32, y:2560, w:16, h:10, i:-1};
var tilik_tank2_225 = {x:192, y:2512, w:16, h:13, i:-1};
var tilik_tank2_270 = {x:246, y:2670, w:10, h:13, i:-1};
var tilik_tank2_315 = {x:208, y:2512, w:16, h:13, i:-1};
var tilik_tank2_45 = {x:88, y:2611, w:14, h:16, i:-1};
var tilik_tank2_90 = {x:84, y:2669, w:11, h:14, i:-1};
var tilik_tank_0 = {x:30, y:2619, w:15, h:8, i:-1};
var tilik_tank_135 = {x:61, y:2655, w:12, h:12, i:-1};
var tilik_tank_180 = {x:45, y:2619, w:15, h:8, i:-1};
var tilik_tank_225 = {x:84, y:2627, w:14, h:12, i:-1};
var tilik_tank_270 = {x:236, y:2669, w:10, h:14, i:-1};
var tilik_tank_315 = {x:98, y:2627, w:14, h:12, i:-1};
var tilik_tank_45 = {x:73, y:2655, w:12, h:12, i:-1};
var tilik_tank_90 = {x:95, y:2669, w:11, h:14, i:-1};
var truck = {x:64, y:2091, w:32, h:19, i:-1};
var vanac_missile_0 = {x:48, y:2560, w:16, h:10, i:-1};
var vanac_missile_135 = {x:208, y:2525, w:16, h:12, i:-1};
var vanac_missile_180 = {x:64, y:2560, w:16, h:10, i:-1};
var vanac_missile_225 = {x:80, y:2560, w:16, h:10, i:-1};
var vanac_missile_270 = {x:116, y:2683, w:9, h:16, i:-1};
var vanac_missile_315 = {x:96, y:2560, w:16, h:10, i:-1};
var vanac_missile_45 = {x:224, y:2525, w:16, h:12, i:-1};
var vanac_missile_90 = {x:125, y:2683, w:9, h:16, i:-1};
var vanac_ship2 = {x:224, y:2538, w:16, h:11, i:-1};
var vanac_ship_0 = {x:240, y:2525, w:16, h:12, i:-1};
var vanac_ship_135 = {x:240, y:2562, w:16, h:8, i:-1};
var vanac_ship_180 = {x:0, y:2537, w:16, h:12, i:-1};
var vanac_ship_225 = {x:195, y:2601, w:15, h:10, i:-1};
var vanac_ship_270 = {x:128, y:2498, w:16, h:14, i:-1};
var vanac_ship_315 = {x:210, y:2601, w:15, h:10, i:-1};
var vanac_ship_45 = {x:0, y:2578, w:16, h:8, i:-1};
var vanac_ship_90 = {x:210, y:2588, w:15, h:12, i:-1};
var vanac_tank2_0 = {x:130, y:2613, w:14, h:14, i:-1};
var vanac_tank2_135 = {x:60, y:2600, w:15, h:11, i:-1};
var vanac_tank2_180 = {x:144, y:2613, w:14, h:14, i:-1};
var vanac_tank2_225 = {x:144, y:2498, w:16, h:14, i:-1};
var vanac_tank2_270 = {x:117, y:2670, w:11, h:13, i:-1};
var vanac_tank2_315 = {x:160, y:2498, w:16, h:14, i:-1};
var vanac_tank2_45 = {x:75, y:2600, w:15, h:11, i:-1};
var vanac_tank2_90 = {x:106, y:2669, w:11, h:14, i:-1};
var vanac_tank_0 = {x:170, y:2687, w:9, h:12, i:-1};
var vanac_tank_135 = {x:50, y:2690, w:10, h:9, i:-1};
var vanac_tank_180 = {x:179, y:2687, w:9, h:12, i:-1};
var vanac_tank_225 = {x:0, y:2688, w:10, h:11, i:-1};
var vanac_tank_270 = {x:129, y:2702, w:8, h:12, i:-1};
var vanac_tank_315 = {x:10, y:2688, w:10, h:11, i:-1};
var vanac_tank_45 = {x:60, y:2690, w:10, h:9, i:-1};
var vanac_tank_90 = {x:137, y:2705, w:8, h:9, i:-1};
var victory = {x:58, y:1584, w:58, h:58, i:-1};
var vroar_ship2_0 = {x:225, y:2588, w:15, h:12, i:-1};
var vroar_ship2_135 = {x:16, y:2578, w:16, h:8, i:-1};
var vroar_ship2_180 = {x:240, y:2588, w:15, h:12, i:-1};
var vroar_ship2_225 = {x:240, y:2538, w:16, h:11, i:-1};
var vroar_ship2_270 = {x:75, y:2586, w:15, h:14, i:-1};
var vroar_ship2_315 = {x:0, y:2549, w:16, h:11, i:-1};
var vroar_ship2_45 = {x:32, y:2578, w:16, h:8, i:-1};
var vroar_ship2_90 = {x:135, y:2587, w:15, h:13, i:-1};
var vroar_ship_0 = {x:16, y:2537, w:16, h:12, i:-1};
var vroar_ship_135 = {x:48, y:2578, w:16, h:8, i:-1};
var vroar_ship_180 = {x:32, y:2537, w:16, h:12, i:-1};
var vroar_ship_225 = {x:225, y:2601, w:15, h:10, i:-1};
var vroar_ship_270 = {x:176, y:2498, w:16, h:14, i:-1};
var vroar_ship_315 = {x:240, y:2601, w:15, h:10, i:-1};
var vroar_ship_45 = {x:64, y:2578, w:16, h:8, i:-1};
var vroar_ship_90 = {x:192, y:2498, w:16, h:14, i:-1};
var vroar_tank2_0 = {x:112, y:2560, w:16, h:10, i:-1};
var vroar_tank2_135 = {x:48, y:2537, w:16, h:12, i:-1};
var vroar_tank2_180 = {x:128, y:2560, w:16, h:10, i:-1};
var vroar_tank2_225 = {x:64, y:2537, w:16, h:12, i:-1};
var vroar_tank2_270 = {x:97, y:2699, w:8, h:15, i:-1};
var vroar_tank2_315 = {x:80, y:2537, w:16, h:12, i:-1};
var vroar_tank2_45 = {x:96, y:2537, w:16, h:12, i:-1};
var vroar_tank2_90 = {x:105, y:2699, w:8, h:15, i:-1};
var vroar_tank_0 = {x:63, y:2708, w:9, h:6, i:-1};
var vroar_tank_135 = {x:27, y:2706, w:9, h:8, i:-1};
var vroar_tank_180 = {x:72, y:2708, w:9, h:6, i:-1};
var vroar_tank_225 = {x:36, y:2706, w:9, h:8, i:-1};
var vroar_tank_270 = {x:145, y:2707, w:7, h:7, i:-1};
var vroar_tank_315 = {x:45, y:2706, w:9, h:8, i:-1};
var vroar_tank_45 = {x:54, y:2706, w:9, h:8, i:-1};
var vroar_tank_90 = {x:152, y:2707, w:7, h:7, i:-1};
var warship_0 = {x:98, y:2482, w:16, h:16, i:-1};
var warship_135 = {x:178, y:2483, w:16, h:15, i:-1};
var warship_180 = {x:114, y:2482, w:16, h:16, i:-1};
var warship_225 = {x:208, y:2498, w:16, h:14, i:-1};
var warship_270 = {x:194, y:2483, w:16, h:15, i:-1};
var warship_315 = {x:224, y:2498, w:16, h:14, i:-1};
var warship_45 = {x:210, y:2483, w:16, h:15, i:-1};
var warship_90 = {x:130, y:2482, w:16, h:16, i:-1};
var white_hole_1 = {x:32, y:2436, w:32, h:15, i:231};
var white_hole_10 = {x:64, y:2436, w:32, h:15, i:232};
var white_hole_11 = {x:96, y:2436, w:32, h:15, i:233};
var white_hole_12 = {x:128, y:2436, w:32, h:15, i:234};
var white_hole_2 = {x:160, y:2436, w:32, h:15, i:235};
var white_hole_3 = {x:192, y:2436, w:32, h:15, i:236};
var white_hole_4 = {x:224, y:2436, w:32, h:15, i:237};
var white_hole_5 = {x:0, y:2451, w:32, h:15, i:238};
var white_hole_6 = {x:32, y:2451, w:32, h:15, i:239};
var white_hole_7 = {x:64, y:2451, w:32, h:15, i:240};
var white_hole_8 = {x:96, y:2451, w:32, h:15, i:241};
var white_hole_9 = {x:128, y:2451, w:32, h:15, i:242};
var white_lake_1 = {x:160, y:2451, w:32, h:15, i:243};
var white_lake_2 = {x:192, y:2451, w:32, h:15, i:244};
var white_lake_3 = {x:224, y:2451, w:32, h:15, i:245};
var white_land_1 = {x:0, y:2467, w:32, h:15, i:246};
var white_land_2 = {x:32, y:2467, w:32, h:15, i:247};
var white_land_3 = {x:64, y:2467, w:32, h:15, i:248};
var white_land_4 = {x:96, y:2467, w:32, h:15, i:249};
var white_moss_1 = {x:192, y:2128, w:32, h:17, i:109};
var white_moss_2 = {x:128, y:2467, w:32, h:15, i:250};
var white_moss_3 = {x:224, y:2128, w:32, h:17, i:110};
var white_moss_4 = {x:160, y:2467, w:32, h:15, i:251};
var white_moss_5 = {x:192, y:2033, w:32, h:20, i:74};
var white_moss_6 = {x:192, y:2194, w:32, h:16, i:134};
var white_moss_7 = {x:0, y:2145, w:32, h:17, i:111};
var white_mountain_1 = {x:160, y:1702, w:32, h:30, i:9};
var white_mountain_10 = {x:64, y:1844, w:32, h:26, i:31};
var white_mountain_11 = {x:224, y:1732, w:32, h:29, i:14};
var white_mountain_12 = {x:160, y:1817, w:32, h:27, i:26};
var white_mountain_13 = {x:192, y:1919, w:32, h:24, i:47};
var white_mountain_14 = {x:128, y:1967, w:32, h:23, i:54};
var white_mountain_2 = {x:192, y:1817, w:32, h:27, i:27};
var white_mountain_3 = {x:0, y:1870, w:32, h:25, i:35};
var white_mountain_4 = {x:192, y:1702, w:32, h:30, i:10};
var white_mountain_5 = {x:0, y:1789, w:32, h:28, i:17};
var white_mountain_6 = {x:224, y:2033, w:32, h:20, i:75};
var white_mountain_7 = {x:160, y:1967, w:32, h:23, i:55};
var white_mountain_8 = {x:224, y:1919, w:32, h:24, i:48};
var white_mountain_9 = {x:192, y:1990, w:32, h:22, i:62};
var white_rock_1 = {x:224, y:2194, w:32, h:16, i:135};
var white_rock_2 = {x:32, y:2110, w:32, h:18, i:97};
var white_rock_3 = {x:96, y:2091, w:32, h:19, i:91};
var white_rock_4 = {x:128, y:2091, w:32, h:19, i:92};
var white_source_1 = {x:32, y:2145, w:32, h:17, i:112};
var white_tree_1 = {x:0, y:1943, w:32, h:24, i:49};
var white_tree_2 = {x:224, y:1990, w:32, h:22, i:63};
var white_tree_3 = {x:0, y:2210, w:32, h:16, i:136};
var white_tree_4 = {x:128, y:2012, w:32, h:21, i:66};
var workshop = {x:32, y:1943, w:32, h:24, i:-1};
var wreckage = {x:192, y:2467, w:32, h:15, i:-1};


var categories_of_gray = {
 hole: [gray_hole_1, gray_hole_2, gray_hole_3],
 lake: [gray_lake_1, gray_lake_2, gray_lake_3, gray_lake_4, gray_lake_5, gray_lake_6, gray_lake_7, gray_lake_8, gray_lake_9],
 land: [gray_land_1, gray_land_2, gray_land_3, gray_land_4, gray_land_5],
 lava: [gray_lava_1, gray_lava_2, gray_lava_3],
 moss: [gray_moss_1, gray_moss_2, gray_moss_3, gray_moss_4, gray_moss_5, gray_moss_6, gray_moss_7],
 mountain: [gray_mountain_1, gray_mountain_10, gray_mountain_11, gray_mountain_12, gray_mountain_13, gray_mountain_2, gray_mountain_3, gray_mountain_4, gray_mountain_5, gray_mountain_6, gray_mountain_7, gray_mountain_8, gray_mountain_9],
 river: [gray_river_1, gray_river_2, gray_river_3]};

var categories_of_green = {
 lake: [green_lake_1, green_lake_2, green_lake_3, green_lake_4, green_lake_5, green_lake_6, green_lake_7, green_lake_8, green_lake_9],
 land: [green_land_1, green_land_2, green_land_3, green_land_4],
 lava: [green_lava_1, green_lava_10, green_lava_2, green_lava_3, green_lava_4, green_lava_5, green_lava_6, green_lava_7, green_lava_8, green_lava_9],
 moss: [green_moss_1, green_moss_2, green_moss_3, green_moss_4, green_moss_5, green_moss_6, green_moss_7, green_moss_8],
 river: [green_river_1, green_river_2, green_river_3, green_river_4, green_river_5, green_river_6, green_river_7],
 rock: [green_rock_1, green_rock_2, green_rock_3],
 source: [green_source_1],
 tree: [green_tree_1, green_tree_10, green_tree_11, green_tree_12, green_tree_2, green_tree_3, green_tree_4, green_tree_5, green_tree_6, green_tree_7, green_tree_8, green_tree_9]};

var categories_of_pink = {
 acid: [pink_acid_1, pink_acid_2, pink_acid_3, pink_acid_4],
 crater: [pink_crater_1, pink_crater_2, pink_crater_3, pink_crater_4],
 flower: [pink_flower_1, pink_flower_2],
 goo: [pink_goo_1, pink_goo_10, pink_goo_11, pink_goo_2, pink_goo_3, pink_goo_4, pink_goo_5, pink_goo_6, pink_goo_7, pink_goo_8, pink_goo_9],
 lake: [pink_lake_1, pink_lake_2, pink_lake_3, pink_lake_4, pink_lake_5, pink_lake_6, pink_lake_7],
 land: [pink_land_1, pink_land_2, pink_land_3, pink_land_4],
 moss: [pink_moss_1, pink_moss_2, pink_moss_3, pink_moss_4, pink_moss_5, pink_moss_6],
 mountain: [pink_mountain_1, pink_mountain_10, pink_mountain_11, pink_mountain_12, pink_mountain_13, pink_mountain_15, pink_mountain_2, pink_mountain_3, pink_mountain_4, pink_mountain_5, pink_mountain_6, pink_mountain_7, pink_mountain_8, pink_mountain_9]};

var categories_of_red = {
 crater: [red_crater_1, red_crater_2, red_crater_3, red_crater_4, red_crater_5],
 hole: [red_hole_1, red_hole_10, red_hole_11, red_hole_2, red_hole_3, red_hole_4, red_hole_5, red_hole_6, red_hole_7, red_hole_8, red_hole_9],
 lake: [red_lake_1, red_lake_10, red_lake_11, red_lake_2, red_lake_3, red_lake_4, red_lake_5, red_lake_6, red_lake_7, red_lake_8, red_lake_9],
 land: [red_land_1, red_land_2, red_land_3, red_land_4],
 moss: [red_moss_1, red_moss_2, red_moss_3, red_moss_4, red_moss_5, red_moss_6, red_moss_7, red_moss_8],
 mountain: [red_mountain_1, red_mountain_10, red_mountain_11, red_mountain_12, red_mountain_13, red_mountain_14, red_mountain_2, red_mountain_3, red_mountain_4, red_mountain_5, red_mountain_6, red_mountain_7, red_mountain_8, red_mountain_9],
 source: [red_source_1]};

var categories_of_white = {
 hole: [white_hole_1, white_hole_10, white_hole_11, white_hole_12, white_hole_2, white_hole_3, white_hole_4, white_hole_5, white_hole_6, white_hole_7, white_hole_8, white_hole_9],
 lake: [white_lake_1, white_lake_2, white_lake_3],
 land: [white_land_1, white_land_2, white_land_3, white_land_4],
 moss: [white_moss_1, white_moss_2, white_moss_3, white_moss_4, white_moss_5, white_moss_6, white_moss_7],
 mountain: [white_mountain_1, white_mountain_10, white_mountain_11, white_mountain_12, white_mountain_13, white_mountain_14, white_mountain_2, white_mountain_3, white_mountain_4, white_mountain_5, white_mountain_6, white_mountain_7, white_mountain_8, white_mountain_9],
 rock: [white_rock_1, white_rock_2, white_rock_3, white_rock_4],
 source: [white_source_1],
 tree: [white_tree_1, white_tree_2, white_tree_3, white_tree_4]};

var categories = [gray, green, pink, red, white];