Skip to content

Commit

Permalink
Update 1.2
Browse files Browse the repository at this point in the history
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
nkrapivin committed Sep 5, 2019
1 parent 970ef82 commit 0d7e87e
Show file tree
Hide file tree
Showing 76 changed files with 725 additions and 959 deletions.
67 changes: 18 additions & 49 deletions Pingo.yyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions extensions/file_ensure_ext/file_ensure.gml
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;

7 changes: 7 additions & 0 deletions extensions/file_ensure_ext/file_ensure.js
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;
}
7 changes: 7 additions & 0 deletions extensions/file_ensure_ext/file_ensure.js.gml
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);

173 changes: 173 additions & 0 deletions extensions/file_ensure_ext/file_ensure_ext.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions objects/oAnimatedBg/Step_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,5 @@ switch (room)
{
case rMenu: case rMenuOptions: bg = BGCOLOR1; break;
case rGame: if (global.CurrentWorld == 2) bg = BGCOLOR2; else bg = BGCOLOR1; break;
case rLevelSelect:
{
with (oLevelSelector)
{
if (curWorldSelected == 1) other.bg = BGCOLOR1;
else other.bg = BGCOLOR2;
}
}
default: break;
}
4 changes: 2 additions & 2 deletions objects/oBall/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ moving = false;
hsp = 0;
vsp = 0;
activated = true;
mx = mouse_x;
my = mouse_y;
mx = -1;
my = -1;
4 changes: 0 additions & 4 deletions objects/oBall/Mouse_53.gml

This file was deleted.

17 changes: 0 additions & 17 deletions objects/oBall/Mouse_56.gml

This file was deleted.

Loading

0 comments on commit 0d7e87e

Please sign in to comment.