Defining a test object
This commit is contained in:
parent
270ecf1f71
commit
f5c63a5c55
BIN
assets/ewpratten/env_testObject/env_testObject.xcf
Normal file
BIN
assets/ewpratten/env_testObject/env_testObject.xcf
Normal file
Binary file not shown.
31
game/dist/assets/env/env_testObject/env_testObject.json
vendored
Normal file
31
game/dist/assets/env/env_testObject/env_testObject.json
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"name": "env_testObject",
|
||||||
|
"bottom_texture": {
|
||||||
|
"file_path": "assets/env/env_testObject/env_testObjectBottom.png"
|
||||||
|
},
|
||||||
|
"top_texture": {
|
||||||
|
"file_path": "assets/env/env_testObject/env_testObjectTop.png"
|
||||||
|
},
|
||||||
|
"footprint": [
|
||||||
|
{
|
||||||
|
"position": [
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"radius": 256.0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"physics_colliders": [
|
||||||
|
{
|
||||||
|
"position": [
|
||||||
|
-118,
|
||||||
|
-60
|
||||||
|
],
|
||||||
|
"size": [
|
||||||
|
230,
|
||||||
|
127
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"temperature": 5.0
|
||||||
|
}
|
BIN
game/dist/assets/env/env_testObject/env_testObjectBottom.png
vendored
Normal file
BIN
game/dist/assets/env/env_testObject/env_testObjectBottom.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
game/dist/assets/env/env_testObject/env_testObjectTop.png
vendored
Normal file
BIN
game/dist/assets/env/env_testObject/env_testObjectTop.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
8
game/dist/map_gameMap.objects.json
vendored
Normal file
8
game/dist/map_gameMap.objects.json
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"type":"env",
|
||||||
|
"name":"env_testObject",
|
||||||
|
"position": [0,0],
|
||||||
|
"rotation_radians": 0.5
|
||||||
|
}
|
||||||
|
]
|
@ -6,7 +6,7 @@ pub struct PossiblyAnimatedTexture {
|
|||||||
/// Signal if the texture is animated or static
|
/// Signal if the texture is animated or static
|
||||||
pub animated: bool,
|
pub animated: bool,
|
||||||
/// Relative file path from `dist` to the texture
|
/// Relative file path from `dist` to the texture
|
||||||
pub rel_file_path: String,
|
pub file_path: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user