-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
940c18d
commit 2d7026f
Showing
78 changed files
with
6,367 additions
and
2,461 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions
46
docs/demos/examples/importers/tiled-loaded/assets/terrain-data.json
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,46 @@ | ||
{ | ||
"compressionlevel": 0, | ||
"editorsettings": { | ||
"export": { | ||
"format": "json", | ||
"target": "level.json" | ||
} | ||
}, | ||
"height": 11, | ||
"infinite": false, | ||
"layers": [{ | ||
"data": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 19, 19, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 36, 36, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 69, 70, 70, 62, 2, 2, 2, 2, 61, 71, 0, 0, 0, 0, 69, 20, 0, 0, 0, 0, 0, 0, 35, 36, 36, 8, 7, 37, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 20, 0, 0, 0, 0, 0, 0, 0], | ||
"height": 11, | ||
"id": 1, | ||
"name": "Tile Layer 1", | ||
"opacity": 1, | ||
"type": "tilelayer", | ||
"visible": true, | ||
"width": 19, | ||
"x": 0, | ||
"y": 0 | ||
}], | ||
"nextlayerid": 2, | ||
"nextobjectid": 1, | ||
"orientation": "orthogonal", | ||
"renderorder": "right-down", | ||
"tiledversion": "1.3.2", | ||
"tileheight": 32, | ||
"tilesets": [{ | ||
"columns": 17, | ||
"firstgid": 1, | ||
"image": "..\/Graphics\/Palm Tree Island\/Sprites\/Terrain\/Terrain (32x32).png", | ||
"imageheight": 160, | ||
"imagewidth": 544, | ||
"margin": 0, | ||
"name": "Palm Island", | ||
"spacing": 0, | ||
"tilecount": 85, | ||
"tileheight": 32, | ||
"tilewidth": 32 | ||
}], | ||
"tilewidth": 32, | ||
"type": "map", | ||
"version": 1.2, | ||
"width": 19 | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
<!DOCTYPE html><html><head title="tiled-loaded"><meta charset="UTF-8" /><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/build/pure-min.css" /></head><body><div id="indigo-container"></div><script type="text/javascript" src="scripts/main.js"></script><script type="text/javascript">IndigoGame.launch('indigo-container')</script><p>Hit 'f' for fullscreen.</p></body></html> |
28 changes: 28 additions & 0 deletions
28
docs/demos/examples/importers/tiled-loaded/scripts/indigo-support.js
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,28 @@ | ||
|
||
window.onload = function () { | ||
if (typeof history.pushState === "function") { | ||
history.pushState("jibberish", null, null); | ||
window.onpopstate = function () { | ||
history.pushState('newjibberish', null, null); | ||
// Handle the back (or forward) buttons here | ||
// Will NOT handle refresh, use onbeforeunload for this. | ||
}; | ||
} | ||
else { | ||
var ignoreHashChange = true; | ||
window.onhashchange = function () { | ||
if (!ignoreHashChange) { | ||
ignoreHashChange = true; | ||
window.location.hash = Math.random(); | ||
// Detect and redirect change here | ||
// Works in older FF and IE9 | ||
// * it does mess with your hash symbol (anchor?) pound sign | ||
// delimiter on the end of the URL | ||
} | ||
else { | ||
ignoreHashChange = false; | ||
} | ||
}; | ||
} | ||
} | ||
|
3,153 changes: 3,153 additions & 0 deletions
3,153
docs/demos/examples/importers/tiled-loaded/scripts/main.js
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
docs/demos/examples/importers/tiled-loaded/scripts/main.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
docs/demos/examples/primitives/graphic/assets/terrain-data.json
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,46 @@ | ||
{ | ||
"compressionlevel": 0, | ||
"editorsettings": { | ||
"export": { | ||
"format": "json", | ||
"target": "level.json" | ||
} | ||
}, | ||
"height": 11, | ||
"infinite": false, | ||
"layers": [{ | ||
"data": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 19, 19, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 36, 36, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 69, 70, 70, 62, 2, 2, 2, 2, 61, 71, 0, 0, 0, 0, 69, 20, 0, 0, 0, 0, 0, 0, 35, 36, 36, 8, 7, 37, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 20, 0, 0, 0, 0, 0, 0, 0], | ||
"height": 11, | ||
"id": 1, | ||
"name": "Tile Layer 1", | ||
"opacity": 1, | ||
"type": "tilelayer", | ||
"visible": true, | ||
"width": 19, | ||
"x": 0, | ||
"y": 0 | ||
}], | ||
"nextlayerid": 2, | ||
"nextobjectid": 1, | ||
"orientation": "orthogonal", | ||
"renderorder": "right-down", | ||
"tiledversion": "1.3.2", | ||
"tileheight": 32, | ||
"tilesets": [{ | ||
"columns": 17, | ||
"firstgid": 1, | ||
"image": "..\/Graphics\/Palm Tree Island\/Sprites\/Terrain\/Terrain (32x32).png", | ||
"imageheight": 160, | ||
"imagewidth": 544, | ||
"margin": 0, | ||
"name": "Palm Island", | ||
"spacing": 0, | ||
"tilecount": 85, | ||
"tileheight": 32, | ||
"tilewidth": 32 | ||
}], | ||
"tilewidth": 32, | ||
"type": "map", | ||
"version": 1.2, | ||
"width": 19 | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.