Add more menus and endless mode
This commit is contained in:
16
scripts/load_high_score/load_high_score.gml
Normal file
16
scripts/load_high_score/load_high_score.gml
Normal file
@@ -0,0 +1,16 @@
|
||||
function load_high_score() {
|
||||
if (file_exists("highscore.dat")) {
|
||||
var _file = file_text_open_read("highscore.dat");
|
||||
var _str = file_text_read_string(_file);
|
||||
file_text_close(_file);
|
||||
|
||||
try {
|
||||
var score_data = real(_str);
|
||||
global.high_score = score_data
|
||||
} catch (_) {
|
||||
global.high_score = 0;
|
||||
}
|
||||
} else {
|
||||
global.high_score = 0;
|
||||
}
|
||||
}
|
||||
13
scripts/load_high_score/load_high_score.yy
generated
Normal file
13
scripts/load_high_score/load_high_score.yy
generated
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$GMScript":"v1",
|
||||
"%Name":"load_high_score",
|
||||
"isCompatibility":false,
|
||||
"isDnD":false,
|
||||
"name":"load_high_score",
|
||||
"parent":{
|
||||
"name":"Scripts",
|
||||
"path":"folders/Scripts.yy",
|
||||
},
|
||||
"resourceType":"GMScript",
|
||||
"resourceVersion":"2.0",
|
||||
}
|
||||
Reference in New Issue
Block a user