-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from stoozey/dev
Dev
- Loading branch information
Showing
73 changed files
with
794 additions
and
583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"FolderOrderSettings": [ | ||
{"name":"Demo","order":1,"path":"folders/Demo.yy",}, | ||
], | ||
"ResourceOrderSettings": [ | ||
{"name":"obj_ssave_demo_player","order":2,"path":"objects/obj_ssave_demo_player/obj_ssave_demo_player.yy",}, | ||
{"name":"__scr_ssave_header","order":5,"path":"scripts/__scr_ssave_header/__scr_ssave_header.yy",}, | ||
{"name":"__scr_ssave_value","order":1,"path":"scripts/__scr_ssave_value/__scr_ssave_value.yy",}, | ||
{"name":"spr_ssave_demo_player_left","order":6,"path":"sprites/spr_ssave_demo_player_left/spr_ssave_demo_player_left.yy",}, | ||
{"name":"obj_ssave_demo","order":3,"path":"objects/obj_ssave_demo/obj_ssave_demo.yy",}, | ||
{"name":"spr_ssave_demo_player_up","order":8,"path":"sprites/spr_ssave_demo_player_up/spr_ssave_demo_player_up.yy",}, | ||
{"name":"spr_ssave_demo_player_down","order":5,"path":"sprites/spr_ssave_demo_player_down/spr_ssave_demo_player_down.yy",}, | ||
{"name":"__scr_ssave_init","order":3,"path":"scripts/__scr_ssave_init/__scr_ssave_init.yy",}, | ||
{"name":"scr_ssave_config","order":2,"path":"scripts/scr_ssave_config/scr_ssave_config.yy",}, | ||
{"name":"spr_ssave_demo_player_right","order":7,"path":"sprites/spr_ssave_demo_player_right/spr_ssave_demo_player_right.yy",}, | ||
{"name":"__scr_ssave_util","order":2,"path":"scripts/__scr_ssave_util/__scr_ssave_util.yy",}, | ||
{"name":"DEMO CREDITS","order":4,"path":"notes/DEMO CREDITS/DEMO CREDITS.yy",}, | ||
{"name":"__scr_ssave_manager","order":6,"path":"scripts/__scr_ssave_manager/__scr_ssave_manager.yy",}, | ||
{"name":"rm_ssave_demo","order":1,"path":"rooms/rm_ssave_demo/rm_ssave_demo.yy",}, | ||
{"name":"scr_ssave_manager","order":3,"path":"scripts/scr_ssave_manager/scr_ssave_manager.yy",}, | ||
], | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
player sprite: https://opengameart.org/content/tiny-characters-set |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
// See scr_ssave_demo for ConfigFile/SaveFile implementation | ||
Save = function() | ||
{ | ||
with (obj_ssave_demo_player) | ||
{ | ||
static config = ssave_get(ConfigFile); | ||
|
||
ssave_get(SaveFile, config.get("saveIndex")) | ||
.set("x", x) | ||
.set("y", y) | ||
.set("name", name) | ||
.set("playtime", playtime) | ||
.save(); | ||
} | ||
} | ||
|
||
show_message_async("Go to \"%localappdata%\\" + game_project_name + "\" to see the files that have been saved!"); | ||
|
||
instance_create_depth(0, 0, 0, ((SSAVE_USE_MANAGER) ? obj_ssave_demo_manager : obj_ssave_demo_no_manager)) | ||
instance_create_depth(0, 0, 0, obj_ssave_demo_player); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
var _saveIndex = ssave_get(ConfigFile).get("saveIndex"); | ||
|
||
draw_text(4, 4, "Press numbers 0-9 to select save file index"); | ||
draw_text(4, 20, "Current save index: " + string(_saveIndex)); | ||
draw_text(4, 36, "Go to %localappdata%/SSave to view your save files."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ssave_save_all(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var i = 0; | ||
repeat (10) | ||
{ | ||
if (keyboard_check_pressed(ord(i))) | ||
{ | ||
Save(); | ||
|
||
ssave_get(ConfigFile) | ||
.set("saveIndex", i); | ||
|
||
with (obj_ssave_demo_player) | ||
Load(); | ||
|
||
break; | ||
} | ||
|
||
i++; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
objects/obj_ssave_demo_no_manager/obj_ssave_demo_no_manager.yy
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Load = function() | ||
{ | ||
static config = ssave_get(ConfigFile); | ||
var _save = ssave_get(SaveFile, config.get("saveIndex")); | ||
x = _save.get("x"); | ||
y = _save.get("y"); | ||
playtime = _save.get("playtime"); | ||
|
||
var _name = _save.get("name"); | ||
while (_name == "") | ||
_name = get_string("Enter name for this save file:", "Geoffrey"); | ||
|
||
name = _name; | ||
} | ||
|
||
name = ""; | ||
playtime = 0; | ||
|
||
Load(); |
Oops, something went wrong.