Last active
August 29, 2015 14:10
-
-
Save endel/36debe4f7a97b405754e to your computer and use it in GitHub Desktop.
Game Engine JSON Structure.
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
{ | |
"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" } | |
} | |
} |
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
{ | |
"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