Updates to Level. More functionality, but also very unstable.

This commit is contained in:
2017-02-27 23:11:14 -05:00
parent 8566105158
commit 1824de6842
10 changed files with 756 additions and 429 deletions

52
hexworld/res/cube.obj Normal file
View File

@@ -0,0 +1,52 @@
# Blender v2.78 (sub 0) OBJ File: ''
# www.blender.org
o Cube
v 0.500050 -0.500050 -0.500050
v 0.500050 -0.500050 0.500050
v -0.500050 -0.500050 -0.500050
v -0.500050 -0.500050 0.500050
v 0.500050 0.500050 -0.500050
v 0.500050 0.500050 0.500050
v -0.500050 0.500050 -0.500050
v -0.500050 0.500050 0.500050
vt 1.0000 1.0000
vt 0.5000 0.5000
vt 1.0000 0.5000
vt 1.0000 1.0000
vt 0.5000 0.5000
vt 1.0000 0.5000
vt 1.0000 1.0000
vt 0.5000 0.5000
vt 1.0000 0.5000
vt 1.0000 1.0000
vt 0.5000 0.5000
vt 1.0000 0.5000
vt 0.0000 -0.0000
vt 0.5000 0.0000
vt 0.5000 1.0000
vt -0.0000 0.5000
vt 0.5000 0.5000
vt 0.5000 1.0000
vt 0.5000 1.0000
vt 0.5000 1.0000
vt -0.0000 0.5000
vt -0.0000 1.0000
vn 0.0000 -1.0000 0.0000
vn -1.0000 0.0000 0.0000
vn 0.0000 1.0000 0.0000
vn 1.0000 0.0000 0.0000
vn 0.0000 0.0000 -1.0000
vn 0.0000 0.0000 1.0000
s off
f 2/1/1 3/2/1 1/3/1
f 4/4/2 7/5/2 3/6/2
f 8/7/3 5/8/3 7/9/3
f 6/10/4 1/11/4 5/12/4
f 7/5/5 1/13/5 3/14/5
f 4/15/6 6/16/6 8/17/6
f 2/1/1 4/15/1 3/2/1
f 4/4/2 8/18/2 7/5/2
f 8/7/3 6/19/3 5/8/3
f 6/10/4 2/20/4 1/11/4
f 7/5/5 5/21/5 1/13/5
f 4/15/6 2/22/6 6/16/6

File diff suppressed because it is too large Load Diff

BIN
hexworld/res/door.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

View File

@@ -1,17 +1,52 @@
{
"models": [
"door.obj"
"door.obj",
"cube.obj"
],
"shaders": [
{
"name": "textured",
"files": [
"obj.fs.glsl",
"obj.vs.glsl",
]
}
],
"tiles": [
{ "mesh": "BaseLeft", "pos": { "x": -1, "y": 0, "z": 0 } },
{ "mesh": "BaseRight", "pos": { "x": 1, "y": 0, "z": 0 } },
{ "mesh": "Stairs", "pos": { "x": 0, "y": 0, "z": 0 } },
{ "mesh": "ColLeft", "pos": { "x": -1, "y": 0, "z": 1 } },
{ "mesh": "ColRight", "pos": { "x": 1, "y": 0, "z": 1 } },
{ "mesh": "ColLeft", "pos": { "x": -1, "y": 0, "z": 2 } },
{ "mesh": "ColRight", "pos": { "x": 1, "y": 0, "z": 2 } },
{ "mesh": "CapLeft", "pos": { "x": -1, "y": 0, "z": 3 } },
{ "mesh": "Lintel", "pos": { "x": 0, "y": 0, "z": 3 } },
{ "mesh": "CapRight", "pos": { "x": 1, "y": 0, "z": 3 } }
{ "mesh": "BaseLeft", "shader": "textured", "pos": { "x": -1, "y": 0, "z": 0 } },
{ "mesh": "BaseRight", "shader": "textured", "pos": { "x": 1, "y": 0, "z": 0 } },
{ "mesh": "Stairs", "shader": "textured", "pos": { "x": 0, "y": 0, "z": 0 } },
{ "mesh": "ColLeft", "shader": "textured", "pos": { "x": -1, "y": 0, "z": 1 } },
{ "mesh": "ColRight", "shader": "textured", "pos": { "x": 1, "y": 0, "z": 1 } },
{ "mesh": "ColLeft", "shader": "textured", "pos": { "x": -1, "y": 0, "z": 2 } },
{ "mesh": "ColRight", "shader": "textured", "pos": { "x": 1, "y": 0, "z": 2 } },
{ "mesh": "CapLeft", "shader": "textured", "pos": { "x": -1, "y": 0, "z": 3 } },
{ "mesh": "Lintel", "shader": "textured", "pos": { "x": 0, "y": 0, "z": 3 } },
{ "mesh": "CapRight", "shader": "textured", "pos": { "x": 1, "y": 0, "z": 3 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -2, "y": -2, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -2, "y": -1, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -2, "y": 0, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -2, "y": 1, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -2, "y": 2, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -1, "y": -2, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -1, "y": -1, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -1, "y": 0, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -1, "y": 1, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -1, "y": 2, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 0, "y": -2, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 0, "y": -1, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 0, "y": 0, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 0, "y": 1, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 0, "y": 2, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 1, "y": -2, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 1, "y": -1, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 1, "y": 0, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 1, "y": 1, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 1, "y": 2, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 2, "y": -2, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 2, "y": -1, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 2, "y": 0, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 2, "y": 1, "z": -1 } },
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 2, "y": 2, "z": -1 } },
]
}