Moving some assets around
9
assets/games/liminal/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2023 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/fonts/CMakeLists.txt")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/prefabs/CMakeLists.txt")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/scenes/CMakeLists.txt")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/textures/CMakeLists.txt")
|
11
assets/games/liminal/fonts/CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2023 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
tool_truetype(font_main
|
||||
REGULAR=${CMAKE_CURRENT_LIST_DIR}/Ysabeau-Medium.ttf
|
||||
BOLD=${CMAKE_CURRENT_LIST_DIR}/Ysabeau-SemiBold.ttf
|
||||
ITALICS=${CMAKE_CURRENT_LIST_DIR}/Ysabeau-MediumItalic.ttf
|
||||
BOLD_ITALICS=${CMAKE_CURRENT_LIST_DIR}/Ysabeau-SemiBoldItalic.ttf
|
||||
)
|
7
assets/games/liminal/prefabs/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2023 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
tool_prefab(${CMAKE_CURRENT_LIST_DIR}/EthPrefab.xml)
|
||||
tool_prefab(${CMAKE_CURRENT_LIST_DIR}/VNTextbox.xml)
|
@ -1,49 +1,43 @@
|
||||
<prefab name="EthPrefab" type="">
|
||||
<asset type="texture" name="texture_eth_faces_day" ref="faceTexture" />
|
||||
<asset type="texture" name="texture_eth_poses_day" ref="bodyTexture" />
|
||||
<asset type="texture" name="texture_eth_face_day_happy" ref="faceDayHappy" />
|
||||
<asset type="texture" name="texture_eth_face_day_anger" ref="faceDayAnger" />
|
||||
|
||||
<asset type="texture" name="texture_eth_pose_day_front" ref="poseDayFront" />
|
||||
<asset type="texture" name="texture_eth_pose_day_back" ref="poseDayBack" />
|
||||
|
||||
<item>
|
||||
<MeshRenderer />
|
||||
<QuadMeshHost />
|
||||
<SimpleBillboardedMaterial texture="faceTexture" ref="faceMaterial" />
|
||||
<TiledSprite tile="0" ref="faceSprite" sizeType="TILED_SPRITE_SIZE_TYPE_HEIGHT_RATIO" size="0.5" />
|
||||
<SimpleTexturedMaterial texture="faceDayHappy" ref="faceMaterial" />
|
||||
<TiledSprite ref="faceSprite" tile="0" size="0.5" sizeType="TILED_SPRITE_SIZE_TYPE_HEIGHT_RATIO" />
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<MeshRenderer />
|
||||
<QuadMeshHost />
|
||||
<SimpleBillboardedMaterial texture="bodyTexture" ref="bodyMaterial" />
|
||||
<TiledSprite tile="0" ref="bodySprite" sizeType="TILED_SPRITE_SIZE_TYPE_HEIGHT_RATIO" size="0.5" />
|
||||
<QuadMeshHost ref="bodyMesh" />
|
||||
<SimpleTexturedMaterial texture="poseDayFront" ref="bodyMaterial" />
|
||||
<TiledSprite ref="bodySprite" tile="0" size="0.5" sizeType="TILED_SPRITE_SIZE_TYPE_HEIGHT_RATIO" />
|
||||
</item>
|
||||
|
||||
<code type="properties">
|
||||
TilesetGrid gridFace;
|
||||
TilesetGrid gridBody;
|
||||
StateProperty<float_t> alpha;
|
||||
StateProperty<int32_t> faceTile;
|
||||
</code>
|
||||
|
||||
<code type="init">
|
||||
alpha = 0.0f;
|
||||
|
||||
this->gridFace = TilesetGrid(
|
||||
1, 9,
|
||||
faceTexture->texture.getWidth(), faceTexture->texture.getHeight(),
|
||||
0, 0,
|
||||
0, 0
|
||||
);
|
||||
gridFace = TilesetGrid(faceDayHappy->texture, 1, 1);
|
||||
faceSprite->tileset = &gridFace;
|
||||
|
||||
this->gridBody = TilesetGrid(
|
||||
1, 5,
|
||||
bodyTexture->texture.getWidth(), bodyTexture->texture.getHeight(),
|
||||
0, 0,
|
||||
0, 0
|
||||
);
|
||||
gridBody = TilesetGrid(poseDayBack->texture, 1, 1);
|
||||
bodySprite->tileset = &gridBody;
|
||||
|
||||
useEffect([&]{
|
||||
this->faceMaterial->color.a = alpha;
|
||||
this->bodyMaterial->color.a = alpha;
|
||||
}, alpha);
|
||||
faceMaterial->texture = (
|
||||
faceTile == 0 ? &faceDayHappy->texture :
|
||||
faceTile == 1 ? &faceDayAnger->texture :
|
||||
nullptr
|
||||
);
|
||||
}, faceTile)();
|
||||
</code>
|
||||
</prefab>
|
7
assets/games/liminal/scenes/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2023 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
tool_scene(${CMAKE_CURRENT_LIST_DIR}/SceneBase.xml)
|
||||
tool_vnscene(${CMAKE_CURRENT_LIST_DIR}/Scene1Prologue0.xml)
|
@ -4,20 +4,19 @@
|
||||
<string lang="en"><font style="italics">There is a bucket.</font></string>
|
||||
</text>
|
||||
|
||||
<set property="eth->color"
|
||||
<set property="eth->faceSprite->tile" to="1" type="int32_t" />
|
||||
<set property="eth->faceTile" to="1" type="int32_t" />
|
||||
|
||||
<text>
|
||||
<string lang="en">It sways above your head like the mouth of a god. You are on Angelwood's best stage, and they are cheering for you, calling you their Queen, their Prom Queen.</string>
|
||||
</text>
|
||||
|
||||
<set property="eth->faceSprite->tile" to="0" type="int32_t" />
|
||||
<!-- <set property="eth->faceSprite->tile" to="0" type="int32_t" /> -->
|
||||
|
||||
<text>
|
||||
<string lang="en">And you are dead soon.</string>
|
||||
</text>
|
||||
|
||||
<set property="eth->bodySprite->tile" to="3" type="int32_t" />
|
||||
<!-- <set property="eth->bodySprite->tile" to="3" type="int32_t" /> -->
|
||||
|
||||
<text>
|
||||
<string lang="en">It's Prom Day. The metal bucket is swaying. Over you. Drenching your white pristine dress in guts and gore red. They aren't cheering anymore. They're gasping. But not screaming: oh, no, not in respectable Angelwood.</string>
|
||||
|
@ -6,9 +6,8 @@
|
||||
<item ref="eth" prefab="prefabs/EthPrefab" />
|
||||
|
||||
<item lookAt="0, 0, 5, 0, 0, 0" >
|
||||
<!-- <item lookAt="5, 5, 5, 0, 0, 0" > -->
|
||||
<!-- <item lookAt="3, 3, 3, 0, 0, 0" > -->
|
||||
<Camera ref="camera" type="CAMERA_TYPE_ORTHONOGRAPHIC" />
|
||||
<!-- <Camera ref="camera" /> -->
|
||||
<CameraTexture ref="camTexture" />
|
||||
</item>
|
||||
|
||||
|
12
assets/games/liminal/textures/CMakeLists.txt
Normal file
@ -0,0 +1,12 @@
|
||||
# Copyright (c) 2023 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
set(LIMINIAL_CHARACTER_SCALE 1.0)
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/eth/CMakeLists.txt")
|
||||
|
||||
tool_texture(texture_border
|
||||
FILE=${CMAKE_CURRENT_LIST_DIR}/texture_test.png
|
||||
)
|
7
assets/games/liminal/textures/eth/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2023 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/faces/CMakeLists.txt")
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/poses/CMakeLists.txt")
|
50
assets/games/liminal/textures/eth/faces/CMakeLists.txt
Normal file
@ -0,0 +1,50 @@
|
||||
# Copyright (c) 2023 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
|
||||
tool_texture(texture_eth_face_day_anger
|
||||
FILE="${CMAKE_CURRENT_LIST_DIR}/anger.png"
|
||||
SCALE=${LIMINIAL_CHARACTER_SCALE}
|
||||
)
|
||||
|
||||
tool_texture(texture_eth_face_day_confused
|
||||
FILE="${CMAKE_CURRENT_LIST_DIR}/confused.png"
|
||||
SCALE=${LIMINIAL_CHARACTER_SCALE}
|
||||
)
|
||||
|
||||
tool_texture(texture_eth_face_day_eyeroll
|
||||
FILE="${CMAKE_CURRENT_LIST_DIR}/eyeroll.png"
|
||||
SCALE=${LIMINIAL_CHARACTER_SCALE}
|
||||
)
|
||||
|
||||
tool_texture(texture_eth_face_day_fear
|
||||
FILE="${CMAKE_CURRENT_LIST_DIR}/fear.png"
|
||||
SCALE=${LIMINIAL_CHARACTER_SCALE}
|
||||
)
|
||||
|
||||
tool_texture(texture_eth_face_day_happy
|
||||
FILE="${CMAKE_CURRENT_LIST_DIR}/happy.png"
|
||||
SCALE=${LIMINIAL_CHARACTER_SCALE}
|
||||
)
|
||||
|
||||
tool_texture(texture_eth_face_day_haughty
|
||||
FILE="${CMAKE_CURRENT_LIST_DIR}/haughty.png"
|
||||
SCALE=${LIMINIAL_CHARACTER_SCALE}
|
||||
)
|
||||
|
||||
tool_texture(texture_eth_face_day_neutral
|
||||
FILE="${CMAKE_CURRENT_LIST_DIR}/neutral.png"
|
||||
SCALE=${LIMINIAL_CHARACTER_SCALE}
|
||||
)
|
||||
|
||||
tool_texture(texture_eth_face_day_sad
|
||||
FILE="${CMAKE_CURRENT_LIST_DIR}/sad.png"
|
||||
SCALE=${LIMINIAL_CHARACTER_SCALE}
|
||||
)
|
||||
|
||||
tool_texture(texture_eth_face_day_surprised
|
||||
FILE="${CMAKE_CURRENT_LIST_DIR}/surprised.png"
|
||||
SCALE=${LIMINIAL_CHARACTER_SCALE}
|
||||
)
|
BIN
assets/games/liminal/textures/eth/faces/anger.png
Normal file
After Width: | Height: | Size: 3.4 MiB |
BIN
assets/games/liminal/textures/eth/faces/confused.png
Normal file
After Width: | Height: | Size: 3.0 MiB |
BIN
assets/games/liminal/textures/eth/faces/eyeroll.png
Normal file
After Width: | Height: | Size: 3.4 MiB |
BIN
assets/games/liminal/textures/eth/faces/fear.png
Normal file
After Width: | Height: | Size: 3.2 MiB |
BIN
assets/games/liminal/textures/eth/faces/happy.png
Normal file
After Width: | Height: | Size: 3.1 MiB |
BIN
assets/games/liminal/textures/eth/faces/haughty.png
Normal file
After Width: | Height: | Size: 3.5 MiB |
BIN
assets/games/liminal/textures/eth/faces/neutral.png
Normal file
After Width: | Height: | Size: 3.1 MiB |
BIN
assets/games/liminal/textures/eth/faces/sad.png
Normal file
After Width: | Height: | Size: 3.1 MiB |
BIN
assets/games/liminal/textures/eth/faces/surprised.png
Normal file
After Width: | Height: | Size: 3.3 MiB |
Before Width: | Height: | Size: 29 MiB |
Before Width: | Height: | Size: 30 MiB |
Before Width: | Height: | Size: 29 MiB |
Before Width: | Height: | Size: 31 MiB |
13
assets/games/liminal/textures/eth/poses/CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
||||
# Copyright (c) 2023 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
tool_texture(texture_eth_pose_day_front
|
||||
FILE="${CMAKE_CURRENT_LIST_DIR}/day_front.png"
|
||||
SCALE=${LIMINIAL_CHARACTER_SCALE}
|
||||
)
|
||||
tool_texture(texture_eth_pose_day_back
|
||||
FILE="${CMAKE_CURRENT_LIST_DIR}/day_back.png"
|
||||
SCALE=${LIMINIAL_CHARACTER_SCALE}
|
||||
)
|
BIN
assets/games/liminal/textures/eth/poses/day_back.png
Normal file
After Width: | Height: | Size: 12 MiB |
BIN
assets/games/liminal/textures/eth/poses/day_cross.png
Normal file
After Width: | Height: | Size: 12 MiB |
BIN
assets/games/liminal/textures/eth/poses/day_front.png
Normal file
After Width: | Height: | Size: 11 MiB |
BIN
assets/games/liminal/textures/eth/poses/day_hips.png
Normal file
After Width: | Height: | Size: 13 MiB |
BIN
assets/games/liminal/textures/eth/poses/day_neutral.png
Normal file
After Width: | Height: | Size: 12 MiB |
Before Width: | Height: | Size: 59 MiB |
Before Width: | Height: | Size: 61 MiB |
Before Width: | Height: | Size: 58 MiB |
Before Width: | Height: | Size: 57 MiB |
Before Width: | Height: | Size: 2.6 MiB |
@ -1,4 +0,0 @@
|
||||
<prefab name="FPSLabel" type="ui/debug">
|
||||
<!-- <UILabel ref="label" text="Hello World" /> -->
|
||||
<!-- <FPSLabelComponent label="label" /> -->
|
||||
</prefab>
|