Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An example level file
{
"GameObjectList": [
{
"Light": {
"Tag": "Light",
"ModelComponent": {
"Type": "CUBE",
"Color": "white",
"Unlit": true
},
"Transform": {
"Pos": [ -30, 45, 25 ],
"Rot": [ 0, 35, 35 ],
"Scale": [ 0.1, 0.1, 0.1 ]
},
"Playercontroller": { },
"Light": {
"Type" : "spot",
"Color": [ 0.4, 0.4, 0.4 ]
}
}
},
{
"MainCamera": {
"Tag": "Camera",
"Transform": {
"Pos": [ 25, 18, 30 ],
"Rot": [ -10, 35, 0 ],
"Scale": [ 1, 1, 1 ]
},
"CameraComponent": {
"near": 0.1,
"far": 100,
"angle": 45,
"BGColor": [ 0.53, 0.8, 0.98 ]
},
"EditorCameraController": { }
}
},
{
"SceneManager": {
"SceneManagerBehavior": {
"Dimensions": [ 6, 1, 10 ]
}
}
},
{
"Ground": {
"Tag": "Plane",
"Transform": {
"Pos": [ 0, 0, 0 ],
"Rot": [ 0, 0, 0 ],
"Scale": [ 60, 4, 50 ]
},
"ModelComponent": {
"Type": "Cube",
"Color": "white",
"Texture": "dirt.png",
"Unlit " : true
},
"PhysicsComponent": {
"Pos": [ 0, 0, 0 ],
"Mass": 50,
"RigidBody": "AABB",
"Restitution": 1.0,
"Static" : true
}
}
},
{
"LWall": {
"Tag": "Plane",
"Transform": {
"Pos": [ -30, 15, 0 ],
"Rot": [ 0, 0, 0 ],
"Scale": [ 0.1, 30, 30 ]
},
"ModelComponent": {
"Type": "Cube",
"Color": "white",
"Texture": "metal.png"
}
}
},
{
"RWall": {
"Tag": "Plane",
"Transform": {
"Pos": [ 30, 15, 0 ],
"Rot": [ 0, 0, 0 ],
"Scale": [ 0.1, 30, 30 ]
},
"ModelComponent": {
"Type": "Cube",
"Color": "white",
"Texture": "metal.png"
}
}
},
{
"Wall": {
"Tag": "Plane",
"Transform": {
"Pos": [ 0, 15, -15 ],
"Rot": [ 0, 90, 0 ],
"Scale": [ 0.1, 30, 60 ]
},
"ModelComponent": {
"Type": "Cube",
"Color": "white",
"Texture": "metal.png"
}
}
},
{
"Varaquilex": {
"Transform": {
"Pos": [ -25, 9, -5 ],
"Rot": [ 0, 75, 0 ],
"Scale": [ 8.88, 4.05, 1 ]
},
"ModelComponent": {
"Type": "quad",
"Color": "white",
"Texture": "BlizzV.png"
}
}
},
{
"Light": {
"Tag": "Light",
"ModelComponent": {
"Type": "CUBE",
"Color": "white",
"Unlit": true
},
"Transform": {
"Pos": [ -25, 10, -5 ],
"Rot": [ 0, 0, 0 ],
"Scale": [ 0.1, 0.1, 0.1 ]
},
"Light": {
"Type" : "point",
"Color": [ 0.8, 0.8, 0.8 ]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment