-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A LOT of cleanup and fixes. (file_ensure extension is useless, I forgot to remove it from project) Thanks to @YellowAfterlife for helping.
- Loading branch information
Showing
76 changed files
with
725 additions
and
959 deletions.
There are no files selected for viewing
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,14 @@ | ||
#define file_ensure | ||
/// @description (path, ?content) | ||
/// @param path | ||
/// @param ?content | ||
var s = argument[0]; | ||
if (!file_exists(s)) { | ||
var f = file_text_open_write(s); | ||
if (f >= 0) { | ||
if (argument_count > 1) file_text_write_string(f, argument[1]); | ||
file_text_close(f); | ||
} | ||
return true; | ||
} else return false; | ||
|
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,7 @@ | ||
/// | ||
function file_ensure_js(path, content) { | ||
if (localStorage.getItem(path) == null) { | ||
localStorage.setItem(path, content); | ||
return 1; | ||
} else return 0; | ||
} |
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,7 @@ | ||
#define file_ensure | ||
/// @description (path, ?content): | ||
/// @param path | ||
/// @param ?content | ||
var v = ""; if (argument_count > 1) v = argument[1]; | ||
return file_ensure_js(game_save_id + argument[0], v); | ||
|
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
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ moving = false; | |
hsp = 0; | ||
vsp = 0; | ||
activated = true; | ||
mx = mouse_x; | ||
my = mouse_y; | ||
mx = -1; | ||
my = -1; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.