Renamed objects/ to game_objects/ removed redundant entities, added Map loader and test map, made LoadingState use Map for entity asset loading.

This commit is contained in:
2019-09-25 10:09:05 -05:00
parent 42191729ae
commit ee844f256f
18 changed files with 246 additions and 82 deletions

70
maps/test_map.json Normal file
View File

@@ -0,0 +1,70 @@
{
"metadata": {
"name":"Testing Map",
"gamemode":"C&C",
"authors":["Cyberarm"],
"datetime":"2019-09-25 13:54:34 UTC",
"thumbnail":"",
"description":"A map for testing the map specification."
},
"terrain":{
"package":"base",
"model":"river_terrain",
"water_level":null
},
"skydome":{
"package":"base",
"model":"skydome",
"scale":0.08
},
"entities":[
{
"package":"base",
"model":"tree",
"position": {
"x":0,
"y":1,
"z":0
},
"orientation": {
"x": 0,
"y": 0,
"z": 0
},
"scale": 1.0,
"scripts": []
}
],
"spawnpoints": [
{
"team":0,
"position": {
"x": 0,
"y": 1,
"z": 0
},
"orientation": {
"x": 0,
"y": 0,
"z": 0
}
},
{
"team":1,
"position": {
"x": 0,
"y": 1,
"z": 0
},
"orientation": {
"x": 0,
"y": 0,
"z": 0
}
}
]
}