Something went wrong. Try again.
Bring back the colours and save the world!
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--><object> <spriteName>sWall</spriteName> <solid>0</solid> <visible>-1</visible> <depth>-4</depth> <persistent>0</persistent> <parentName>_Terrain</parentName> <maskName><undefined></maskName> <events> <event eventtype="0" enumb="0"> <action> <libid>1</libid> <id>603</id> <kind>7</kind> <userelative>0</userelative> <isquestion>0</isquestion> <useapplyto>-1</useapplyto> <exetype>2</exetype> <functionname></functionname> <codestring></codestring> <whoName>self</whoName> <relative>0</relative> <isnot>0</isnot> <arguments> <argument> <kind>1</kind> <string>///Initializetype = T_DIRT;textureTiles[0, sprite_width / sprite_get_width(sprite_index) - 1] = -1;textureTiles[1, sprite_height / sprite_get_height(sprite_index) - 1] = -1;textureTiles[2, sprite_width / sprite_get_width(sprite_index) - 1] = -1;textureTiles[3, sprite_height / sprite_get_height(sprite_index) - 1] = -1;moved = false;prev[3] = 0;
</string> </argument> </arguments> </action> </event> <event eventtype="3" enumb="2"> <action> <libid>1</libid> <id>603</id> <kind>7</kind> <userelative>0</userelative> <isquestion>0</isquestion> <useapplyto>-1</useapplyto> <exetype>2</exetype> <functionname></functionname> <codestring></codestring> <whoName>self</whoName> <relative>0</relative> <isnot>0</isnot> <arguments> <argument> <kind>1</kind> <string>///Check for movementif(y != prev[3] || x != prev[2] || image_yscale != prev[0] || image_xscale != prev[1]) { moved = true;}</string> </argument> </arguments> </action> </event> <event eventtype="3" enumb="1"> <action> <libid>1</libid> <id>603</id> <kind>7</kind> <userelative>0</userelative> <isquestion>0</isquestion> <useapplyto>-1</useapplyto> <exetype>2</exetype> <functionname></functionname> <codestring></codestring> <whoName>self</whoName> <relative>0</relative> <isnot>0</isnot> <arguments> <argument> <kind>1</kind> <string>///Record positionprev[3] = y;prev[2] = x;prev[1] = image_xscale;prev[0] = image_yscale;</string> </argument> </arguments> </action> </event> <event eventtype="3" enumb="0"> <action> <libid>1</libid> <id>603</id> <kind>7</kind> <userelative>0</userelative> <isquestion>0</isquestion> <useapplyto>-1</useapplyto> <exetype>2</exetype> <functionname></functionname> <codestring></codestring> <whoName>self</whoName> <relative>0</relative> <isnot>0</isnot> <arguments> <argument> <kind>1</kind> <string>///Melt when near fireif(type == T_ICE) { if(Controller.colours[RED]) { var inst = instance_nearest(x, y, Torch); if(inst != noone) { if(distance_to_object(inst) < 48) { if(inst.lit) { image_alpha -= 0.02; if(image_alpha <= 0) { instance_destroy(); } } } } }}</string> </argument> </arguments> </action> </event> <event eventtype="7" enumb="4"> <action> <libid>1</libid> <id>603</id> <kind>7</kind> <userelative>0</userelative> <isquestion>0</isquestion> <useapplyto>-1</useapplyto> <exetype>2</exetype> <functionname></functionname> <codestring></codestring> <whoName>self</whoName> <relative>0</relative> <isnot>0</isnot> <arguments> <argument> <kind>1</kind> <string>///Choose textureTilesvar inst = noone;if(y > 0 && x >= 0 && x < room_width) { for(var i = 0; i < array_length_2d(textureTiles, 0); i++) { textureTiles[0, i] = -1; inst = collision_line(x + (i * sprite_get_width(sprite_index)), y - 1, x + ((i + 1) * sprite_get_width(sprite_index)) - 1, y - 1, _Terrain, false, true) if(inst == noone) { if(type == T_STONE || type == T_DIRT || type == T_SNOW) { textureTiles[0, i] = irandom_range(0, 4); } } else if(type == T_STONE && inst.object_index == Water) { textureTiles[0, i] = irandom_range(0, 4); } }}
if(x >= 0 && x + sprite_width < room_width) { for(var i = 0; i < array_length_2d(textureTiles, 1); i++) { textureTiles[1, i] = -1; inst = collision_line(x + sprite_width + 1, y + (i * sprite_get_height(sprite_index)), x + sprite_width + 1, y + ((i + 1) * sprite_get_height(sprite_index)) - 1, _Terrain, false, true) if(inst == noone) { if(type == T_STONE) { textureTiles[1, i] = irandom_range(0, 4); } } else if(type == T_STONE && inst.object_index == Water){ textureTiles[1, i] = irandom_range(0, 4); } }}
if(y + sprite_height < room_height && x >= 0 && x < room_width) { for(var i = 0; i < array_length_2d(textureTiles, 2); i++) { textureTiles[2, i] = -1; inst = collision_line(x + (i * sprite_get_width(sprite_index)), y + sprite_height + 1, x + ((i + 1) * sprite_get_width(sprite_index)) - 1, y + sprite_height + 1, _Terrain, false, true); if(inst == noone) { if(type == T_STONE) { textureTiles[2, i] = irandom_range(0, 4); } } else if(type == T_STONE && inst.object_index == Water) { textureTiles[2, i] = irandom_range(0, 4); } }}
if(x > 0 && x + sprite_width <= room_width) { for(var i = 0; i < array_length_2d(textureTiles, 3); i++) { textureTiles[3, i] = -1; inst = collision_line(x - 1, y + (i * sprite_get_height(sprite_index)), x - 1, y + ((i + 1) * sprite_get_height(sprite_index)) - 1, _Terrain, false, true); if(inst == noone) { if(type == T_STONE) { textureTiles[3, i] = irandom_range(0, 4); } } else if(type == T_STONE && inst.object_index == Water) { textureTiles[3, i] = irandom_range(0, 4); } }}
if(type == T_ICE) { image_alpha = 0.8;}</string> </argument> </arguments> </action> </event> <event eventtype="8" enumb="0"> <action> <libid>1</libid> <id>603</id> <kind>7</kind> <userelative>0</userelative> <isquestion>0</isquestion> <useapplyto>-1</useapplyto> <exetype>2</exetype> <functionname></functionname> <codestring></codestring> <whoName>self</whoName> <relative>0</relative> <isnot>0</isnot> <arguments> <argument> <kind>1</kind> <string>///Draw self and choose colourif(type == T_DIRT || type == T_WOOD) { if(Controller.colours[BROWN]) { image_blend = make_color_rgb(90, 60, 30); } else { image_blend = c_white; }} else if(type == T_SAND) { if(Controller.colours[YELLOW]) { image_blend = make_color_rgb(255, 255, 200);; } else { image_blend = c_white; }} else if(type == T_STONE) { if(Controller.colours[BLACK]) { image_blend = c_gray; }} else if(type == T_ICE) { if(Controller.colours[BLUE]) { image_blend = make_color_rgb(200, 200, 220); }}if(webgl_enabled == true || os_browser == browser_not_a_browser) { draw_self();} else { draw_set_color(image_blend); draw_rectangle(x, y, x + 16 * image_xscale - 1, y + 16 * image_yscale - 1, false);}</string> </argument> </arguments> </action> <action> <libid>1</libid> <id>603</id> <kind>7</kind> <userelative>0</userelative> <isquestion>0</isquestion> <useapplyto>-1</useapplyto> <exetype>2</exetype> <functionname></functionname> <codestring></codestring> <whoName>self</whoName> <relative>0</relative> <isnot>0</isnot> <arguments> <argument> <kind>1</kind> <string>///Draw grass and other texturesif(y > 0 && x >= 0 && x < room_width) { for(var i = 0; i < array_length_2d(textureTiles, 0); i++) { if(textureTiles[0, i] != -1) { if(type == T_DIRT) { if(Controller.colours[GREEN]) { draw_sprite(sGrass, textureTiles[0, i], x + i * sprite_get_width(sprite_index), y - sprite_get_height(sGrass)); } } else if(type == T_STONE) { draw_sprite_ext(sCaveTexture, textureTiles[0, i], x + i * sprite_get_width(sprite_index), y - sprite_get_height(sCaveTexture), 1, 1, 0, image_blend, 1); } else if(type == T_SNOW) { draw_sprite(sSnowTexture, textureTiles[0, i], x + i * sprite_get_width(sprite_index), y - sprite_get_height(sSnowTexture)); } } }}
if(x >= 0 && x + sprite_width < room_width) { for(var i = 0; i < array_length_2d(textureTiles, 1); i++) { if(textureTiles[1, i] != -1) { if(type == T_STONE) { draw_sprite_ext(sCaveTexture, textureTiles[1, i], x + sprite_width + sprite_get_height(sCaveTexture), y + i * sprite_get_width(sprite_index), 1, 1, 270, image_blend, 1); } } }}
if(y + sprite_height < room_height && x >= 0 && x < room_width) { for(var i = 0; i < array_length_2d(textureTiles, 2); i++) { if(textureTiles[2, i] != -1) { if(type == T_STONE) { draw_sprite_ext(sCaveTexture, textureTiles[2, i], x + (i + 1) * sprite_get_width(sprite_index), y + sprite_height + sprite_get_height(sCaveTexture), 1, 1, 180, image_blend, 1); } } }}
if(x > 0 && x + sprite_width <= room_width) { for(var i = 0; i < array_length_2d(textureTiles, 3); i++) { if(textureTiles[3, i] != -1) { if(type == T_STONE) { draw_sprite_ext(sCaveTexture, textureTiles[3, i], x - sprite_get_height(sCaveTexture), y + (i + 1) * sprite_get_width(sprite_index), 1, 1, 90, image_blend, 1); } } }}</string> </argument> </arguments> </action> </event> </events> <PhysicsObject>0</PhysicsObject> <PhysicsObjectSensor>0</PhysicsObjectSensor> <PhysicsObjectShape>0</PhysicsObjectShape> <PhysicsObjectDensity>0.5</PhysicsObjectDensity> <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution> <PhysicsObjectGroup>0</PhysicsObjectGroup> <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping> <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping> <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction> <PhysicsObjectAwake>-1</PhysicsObjectAwake> <PhysicsObjectKinematic>0</PhysicsObjectKinematic> <PhysicsShapePoints> <point>0,0</point> <point>8,8</point> </PhysicsShapePoints></object>