Skip to content

Commit 077a0c8

Browse files
committed
Move/add test worlds
I can't move the default world into the new `worlds/` folder yet due to 1j01/skele2d#36
1 parent 9aaded8 commit 077a0c8

5 files changed

+4508
-2
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ <h1>Welcome to Tiamblia</h1>
8282
</style>
8383
<script>
8484
if(window.nw){
85-
document.write(`<script src="node_modules/nw-dev/lib/dev.js" data-ignore="world.json|animations/*.json|*.md">${"</"}script>`);
85+
document.write(`<script src="node_modules/nw-dev/lib/dev.js" data-ignore="world.json|worlds/*.json|animations/*.json|*.md">${"</"}script>`);
8686
}
8787
</script>
8888
<!-- TODO: load these as modules as well (keep everything versioned with npm) -->

src/dev-ui.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ load_from_json = (json)->
111111
return true
112112
store_file_handle = (file_handle) ->
113113
idb_keyval.set("tiamblia.file_handle", file_handle)
114-
# Maybe I should rename this file to be less generic
114+
# Maybe I should rename this file to be less generic... https://github.com/1j01/skele2d/issues/36
115115
if file_handle.name is "world.json"
116116
idb_keyval.set("tiamblia.default_world_file_handle", file_handle)
117117
return

0 commit comments

Comments
 (0)