mirror of https://github.com/espruino/BangleApps
sokoban: renamed level file
parent
a5ccaa1c34
commit
ebc95fda69
|
@ -61,9 +61,9 @@ function next_map_offsets(filename, start_offset) {
|
|||
|
||||
let config = s.readJSON("sokoban.json", true);
|
||||
if (config === undefined) {
|
||||
let initial_offsets = next_map_offsets("Microban.txt", 0);
|
||||
let initial_offsets = next_map_offsets("Microban.sok", 0);
|
||||
config = {
|
||||
levels_sets: ["Microban.txt"], // all known files containing levels
|
||||
levels_sets: ["Microban.sok"], // all known files containing levels
|
||||
levels_set: 0, // which set are we using ?
|
||||
current_maps: [0], // what is current map on each set ?
|
||||
offsets: [initial_offsets], // known offsets for each levels set (binary positions of maps in each file)
|
||||
|
@ -461,4 +461,4 @@ Bangle.setLocked(false);
|
|||
|
||||
current_map = config.current_map;
|
||||
offsets = config.offsets;
|
||||
load_current_map();
|
||||
load_current_map();
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"readme": "README.md",
|
||||
"storage": [
|
||||
{"name":"sokoban.app.js","url":"app.js"},
|
||||
{"name":"Microban.txt", "url":"Microban.txt"},
|
||||
{"name":"Microban.sok", "url":"Microban.sok"},
|
||||
{"name":"sokoban.img","url":"app-icon.js","evaluate":true}
|
||||
],
|
||||
"data": [{"name":"sokoban.json"}
|
||||
|
|
Loading…
Reference in New Issue