Skip to content

Instantly share code, notes, and snippets.

@endel
Last active August 29, 2015 14:10
Show Gist options
  • Save endel/36debe4f7a97b405754e to your computer and use it in GitHub Desktop.
Save endel/36debe4f7a97b405754e to your computer and use it in GitHub Desktop.
Game Engine JSON Structure.
{
"resources": {
"game" : [
{ "id": "players", "url": "assets/tp/players.json" },
{ "id": "level", "url": "assets/tilemaps/test.json", "type": "tilemap" }
],
},
"scenes": {
"scene-1": { "url": "assets/scene-1.json" }
}
}
{
"preload": ["game"],
"entities": [
{
"id": "level",
"properties": {
"x": 0,
"y": 0
},
"components": [{
"name": "Tilemap",
"properties": {
"tilemap": "level"
}
}],
"children": [{
"id": "player",
"properties": {
"x": 500,
"y": 200
},
"components": [
"CameraFollow",
"PlayerBehaviour"
]
}]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment