| @@ -0,0 +1,22 @@ | ||
| if (file_exists(working_directory + global.saveFile)) | ||
| { | ||
| ini_open(working_directory + global.saveFile); | ||
|
|
||
| global.mute = ini_read_real('Options','mute',false); | ||
| global.quality = ini_read_real('Options','quality', 2); | ||
|
|
||
| global.lastLevelVisited = ini_read_real('Worldmap','lastLevelVisited',0); | ||
|
|
||
| for (i = 0;i < 100; i++) | ||
| { | ||
| global.levelProps[i,1] = ini_read_real('Level'+string(i),'cleared',false); | ||
| global.levelProps[i,2] = ini_read_real('Level'+string(i),'foundSecret',false); | ||
| global.levelProps[i,3] = ini_read_real('Level'+string(i),'canBePlayed',false); | ||
| } | ||
|
|
||
| //global.levelProps[0,3] = true; //first level can be played! | ||
|
|
||
| show_debug_message("loaded."); | ||
|
|
||
| ini_close(); | ||
| } |
| @@ -0,0 +1,17 @@ | ||
| ini_open(working_directory + global.saveFile); | ||
|
|
||
| ini_write_real('Options','mute',global.mute); | ||
| ini_write_real('Options','quality',global.quality); | ||
|
|
||
| ini_write_real('Worldmap','lastLevelVisited',global.lastLevelVisited); | ||
|
|
||
| for (i = 0;i < 100; i++) | ||
| { | ||
| ini_write_real('Level'+string(i),'cleared',global.levelProps[i,1]); | ||
| ini_write_real('Level'+string(i),'foundSecret',global.levelProps[i,2]); | ||
| ini_write_real('Level'+string(i),'canBePlayed',global.levelProps[i,3]); | ||
| } | ||
|
|
||
| show_debug_message("saved."); | ||
|
|
||
| ini_close(); |
| @@ -0,0 +1,25 @@ | ||
| <!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--> | ||
| <sprite> | ||
| <type>0</type> | ||
| <xorig>8</xorig> | ||
| <yorigin>8</yorigin> | ||
| <colkind>1</colkind> | ||
| <coltolerance>0</coltolerance> | ||
| <sepmasks>0</sepmasks> | ||
| <bboxmode>1</bboxmode> | ||
| <bbox_left>0</bbox_left> | ||
| <bbox_right>15</bbox_right> | ||
| <bbox_top>0</bbox_top> | ||
| <bbox_bottom>15</bbox_bottom> | ||
| <HTile>0</HTile> | ||
| <VTile>0</VTile> | ||
| <TextureGroups> | ||
| <TextureGroup0>0</TextureGroup0> | ||
| </TextureGroups> | ||
| <For3D>0</For3D> | ||
| <width>16</width> | ||
| <height>16</height> | ||
| <frames> | ||
| <frame index="0">images\mskWorldMap_0.png</frame> | ||
| </frames> | ||
| </sprite> |