feat(assets): add normal maps and item/creature definitions
Add normal map references to block JSONs, add creature definitions for pig and player, and create item definitions. Move models and normal textures into the cubed asset namespace, replacing legacy item files.
@@ -13,11 +13,12 @@
|
||||
},
|
||||
"texture": {
|
||||
"type": "cuboid",
|
||||
"path": "cubed:textures/blocks/dirt"
|
||||
"path": "cubed:textures/blocks/dirt",
|
||||
"normal": "cubed:normals/blocks/dirt"
|
||||
},
|
||||
"sounds": {
|
||||
"break": "cubed:sounds/blocks/dirt/break.ogg",
|
||||
"place": "cubed:sounds/blocks/dirt/place.ogg",
|
||||
"walk": "cubed:sounds/blocks/dirt/walk.ogg"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,8 @@
|
||||
},
|
||||
"texture": {
|
||||
"type": "cuboid",
|
||||
"path": "cubed:textures/blocks/grass_block"
|
||||
"path": "cubed:textures/blocks/grass_block",
|
||||
"normal": "cubed:normals/blocks/grass_block"
|
||||
},
|
||||
"sounds": {
|
||||
"break": "cubed:sounds/blocks/grass_block/break.ogg",
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
},
|
||||
"texture": {
|
||||
"type": "cuboid",
|
||||
"path": "cubed:textures/blocks/log"
|
||||
"path": "cubed:textures/blocks/log",
|
||||
"normal": "cubed:normals/blocks/log"
|
||||
},
|
||||
"sounds": {
|
||||
"break": "cubed:sounds/blocks/log/break.ogg",
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
},
|
||||
"texture": {
|
||||
"type": "cuboid",
|
||||
"path": "cubed:textures/blocks/sand"
|
||||
"path": "cubed:textures/blocks/sand",
|
||||
"normal": "cubed:normals/blocks/sand"
|
||||
},
|
||||
"sounds": {
|
||||
"break": "cubed:sounds/blocks/sand/break.ogg",
|
||||
|
||||
@@ -13,11 +13,12 @@
|
||||
},
|
||||
"texture": {
|
||||
"type": "cuboid",
|
||||
"path": "cubed:textures/blocks/snowy_grass_block"
|
||||
"path": "cubed:textures/blocks/snowy_grass_block",
|
||||
"normal": "cubed:normals/blocks/snowy_grass_block"
|
||||
},
|
||||
"sounds": {
|
||||
"break": "cubed:sounds/blocks/snowy_grass_block/break.ogg",
|
||||
"place": "cubed:sounds/blocks/snowy_grass_block/place.ogg",
|
||||
"walk": "cubed:sounds/blocks/snowy_grass_block/walk.ogg"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,8 @@
|
||||
},
|
||||
"texture": {
|
||||
"type": "cuboid",
|
||||
"path": "cubed:textures/blocks/stone"
|
||||
"path": "cubed:textures/blocks/stone",
|
||||
"normal": "cubed:normals/blocks/stone"
|
||||
},
|
||||
"sounds": {
|
||||
"break": "cubed:sounds/blocks/stone/break.ogg",
|
||||
|
||||
6
assets/cubed/creatures/pig.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "pig",
|
||||
"model": "cubed:models/creatures/pig/pig.glb",
|
||||
"animation": "cubed:models/creatures/pig/animation.json",
|
||||
"collision": "cubed:models/creatures/pig/collision.json"
|
||||
}
|
||||
5
assets/cubed/creatures/player.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "player",
|
||||
"model": "cubed:models/creatures/player/player.glb",
|
||||
"collision": "cubed:models/creatures/player/collision.json"
|
||||
}
|
||||
7
assets/cubed/items/air.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "air",
|
||||
"type": "block",
|
||||
"block": "cubed:air",
|
||||
"texture": "cubed:textures/items/block/air.png",
|
||||
"description": ""
|
||||
}
|
||||
7
assets/cubed/items/dirt.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "dirt",
|
||||
"type": "block",
|
||||
"block": "cubed:dirt",
|
||||
"texture": "cubed:textures/items/block/dirt.png",
|
||||
"description": ""
|
||||
}
|
||||
7
assets/cubed/items/grass.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "grass",
|
||||
"type": "block",
|
||||
"block": "cubed:grass",
|
||||
"texture": "cubed:textures/items/block/grass.png",
|
||||
"description": ""
|
||||
}
|
||||
7
assets/cubed/items/grass_block.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "grass_block",
|
||||
"type": "block",
|
||||
"block": "cubed:grass_block",
|
||||
"texture": "cubed:textures/items/block/grass_block.png",
|
||||
"description": ""
|
||||
}
|
||||
7
assets/cubed/items/leaf.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "leaf",
|
||||
"type": "block",
|
||||
"block": "cubed:leaf",
|
||||
"texture": "cubed:textures/items/block/leaf.png",
|
||||
"description": ""
|
||||
}
|
||||
7
assets/cubed/items/log.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "log",
|
||||
"type": "block",
|
||||
"block": "cubed:log",
|
||||
"texture": "cubed:textures/items/block/log.png",
|
||||
"description": ""
|
||||
}
|
||||
7
assets/cubed/items/pig_spawn_egg.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "pig_spawn_egg",
|
||||
"type": "spawn_egg",
|
||||
"creature": "cubed:pig",
|
||||
"texture": "cubed:textures/items/spawn_egg/pig_spawn_egg.png",
|
||||
"description": ""
|
||||
}
|
||||
7
assets/cubed/items/sand.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "sand",
|
||||
"type": "block",
|
||||
"block": "cubed:sand",
|
||||
"texture": "cubed:textures/items/block/sand.png",
|
||||
"description": ""
|
||||
}
|
||||
7
assets/cubed/items/snowy_grass_block.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "snowy_grass_block",
|
||||
"type": "block",
|
||||
"block": "cubed:snowy_grass_block",
|
||||
"texture": "cubed:textures/items/block/snowy_grass_block.png",
|
||||
"description": ""
|
||||
}
|
||||
7
assets/cubed/items/stone.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "stone",
|
||||
"type": "block",
|
||||
"block": "cubed:stone",
|
||||
"texture": "cubed:textures/items/block/stone.png",
|
||||
"description": ""
|
||||
}
|
||||
7
assets/cubed/items/water.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "water",
|
||||
"type": "block",
|
||||
"block": "cubed:water",
|
||||
"texture": "cubed:textures/items/block/water.png",
|
||||
"description": ""
|
||||
}
|
||||
33
assets/cubed/models/creatures/pig/animation.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"walk": {
|
||||
"speed": 6.0,
|
||||
"amplitude": 25.0
|
||||
},
|
||||
"run": {
|
||||
"speed": 12.0,
|
||||
"amplitude": 40.0
|
||||
},
|
||||
"body_bob": 0.03,
|
||||
"head": {
|
||||
"node": "Head",
|
||||
"amplitude": 4.0
|
||||
},
|
||||
"legs": [
|
||||
{
|
||||
"node": "Foot_FL",
|
||||
"phase": 0.0
|
||||
},
|
||||
{
|
||||
"node": "Foot_FR",
|
||||
"phase": 3.14159
|
||||
},
|
||||
{
|
||||
"node": "Foot_HL",
|
||||
"phase": 3.14159
|
||||
},
|
||||
{
|
||||
"node": "Foot_HR",
|
||||
"phase": 0.0
|
||||
}
|
||||
]
|
||||
}
|
||||
16
assets/cubed/models/creatures/pig/collision.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"boxes": [
|
||||
{
|
||||
"center": [
|
||||
0,
|
||||
0.78,
|
||||
0
|
||||
],
|
||||
"half": [
|
||||
0.53,
|
||||
0.78,
|
||||
0.406
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
assets/cubed/models/creatures/pig/pig.glb
Normal file
16
assets/cubed/models/creatures/player/collision.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"boxes": [
|
||||
{
|
||||
"center": [
|
||||
0,
|
||||
0.9,
|
||||
0
|
||||
],
|
||||
"half": [
|
||||
0.3,
|
||||
0.9,
|
||||
0.3
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
assets/cubed/models/creatures/player/player.glb
Normal file
BIN
assets/cubed/normals/blocks/dirt/back_n.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
assets/cubed/normals/blocks/dirt/base_n.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
assets/cubed/normals/blocks/dirt/front_n.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
assets/cubed/normals/blocks/dirt/left_n.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
assets/cubed/normals/blocks/dirt/right_n.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
assets/cubed/normals/blocks/dirt/top_n.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
assets/cubed/normals/blocks/grass_block/back_n.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
assets/cubed/normals/blocks/grass_block/base_n.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
assets/cubed/normals/blocks/grass_block/front_n.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
assets/cubed/normals/blocks/grass_block/left_n.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
assets/cubed/normals/blocks/grass_block/right_n.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
assets/cubed/normals/blocks/grass_block/top_n.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/cubed/normals/blocks/log/back_n.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/cubed/normals/blocks/log/base_n.png
Normal file
|
After Width: | Height: | Size: 955 B |
BIN
assets/cubed/normals/blocks/log/front_n.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/cubed/normals/blocks/log/left_n.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/cubed/normals/blocks/log/right_n.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/cubed/normals/blocks/log/top_n.png
Normal file
|
After Width: | Height: | Size: 955 B |
BIN
assets/cubed/normals/blocks/sand/back_n.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/cubed/normals/blocks/sand/base_n.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/cubed/normals/blocks/sand/front_n.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/cubed/normals/blocks/sand/left_n.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/cubed/normals/blocks/sand/right_n.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/cubed/normals/blocks/sand/top_n.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/cubed/normals/blocks/snowy_grass_block/back_n.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
assets/cubed/normals/blocks/snowy_grass_block/base_n.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
assets/cubed/normals/blocks/snowy_grass_block/front_n.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
assets/cubed/normals/blocks/snowy_grass_block/left_n.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
assets/cubed/normals/blocks/snowy_grass_block/right_n.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
assets/cubed/normals/blocks/snowy_grass_block/top_n.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
assets/cubed/normals/blocks/stone/back_n.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
assets/cubed/normals/blocks/stone/base_n.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
assets/cubed/normals/blocks/stone/front_n.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
assets/cubed/normals/blocks/stone/left_n.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
assets/cubed/normals/blocks/stone/right_n.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
assets/cubed/normals/blocks/stone/top_n.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |