Scene change support
This commit is contained in:
@ -4,4 +4,5 @@
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
tool_prefab(${CMAKE_CURRENT_LIST_DIR}/EthPrefab.xml)
|
||||
tool_prefab(${CMAKE_CURRENT_LIST_DIR}/VNTextbox.xml)
|
||||
tool_prefab(${CMAKE_CURRENT_LIST_DIR}/VNTextbox.xml)
|
||||
tool_prefab(${CMAKE_CURRENT_LIST_DIR}/VNTextboxMonologue.xml)
|
@ -3,7 +3,6 @@
|
||||
<asset type="texture" name="texture_border" />
|
||||
|
||||
<UIBorder
|
||||
ref="border"
|
||||
borderSize="16, 16"
|
||||
alignment="50, 0, 0, 0"
|
||||
alignUnitLeft="UI_COMPONENT_ALIGN_UNIT_PERCENT"
|
||||
|
28
assets/games/liminal/prefabs/VNTextboxMonologue.xml
Normal file
28
assets/games/liminal/prefabs/VNTextboxMonologue.xml
Normal file
@ -0,0 +1,28 @@
|
||||
<prefab name="VNTextboxMonologue" type="">
|
||||
<asset type="truetype" name="font_main" />
|
||||
|
||||
<UIEmpty
|
||||
ref="container"
|
||||
alignment="20, 20, 20, 20"
|
||||
alignUnitTop="UI_COMPONENT_ALIGN_UNIT_PERCENT"
|
||||
alignUnitBottom="UI_COMPONENT_ALIGN_UNIT_PERCENT"
|
||||
alignUnitLeft="UI_COMPONENT_ALIGN_UNIT_PERCENT"
|
||||
alignUnitRight="UI_COMPONENT_ALIGN_UNIT_PERCENT"
|
||||
alignX="UI_COMPONENT_ALIGN_STRETCH"
|
||||
alignY="UI_COMPONENT_ALIGN_STRETCH"
|
||||
/>
|
||||
|
||||
<child>
|
||||
<UIRichTextLabel
|
||||
alignment="0, 0, 65, 192"
|
||||
alignUnitLeft="UI_COMPONENT_ALIGN_UNIT_PERCENT"
|
||||
alignUnitRight="UI_COMPONENT_ALIGN_UNIT_PERCENT"
|
||||
alignX="UI_COMPONENT_ALIGN_MIDDLE"
|
||||
alignY="UI_COMPONENT_ALIGN_MIDDLE"
|
||||
ref="uiLabel"
|
||||
>
|
||||
</UIRichTextLabel>
|
||||
</child>
|
||||
|
||||
<VNTextboxScroller ref="textboxScroller" label="uiLabel" visibleLines="6" />
|
||||
</prefab>
|
@ -3,5 +3,7 @@
|
||||
# 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)
|
||||
tool_scene(${CMAKE_CURRENT_LIST_DIR}/SceneStandard.xml)
|
||||
tool_scene(${CMAKE_CURRENT_LIST_DIR}/SceneMonologue.xml)
|
||||
tool_vnscene(${CMAKE_CURRENT_LIST_DIR}/Scene1Prologue0.xml)
|
||||
tool_vnscene(${CMAKE_CURRENT_LIST_DIR}/Scene1Prologue1.xml)
|
@ -1,48 +1,37 @@
|
||||
<vnscene name="Scene1Prologue" extend="scenes/SceneBase">
|
||||
|
||||
<asset type="texture" name="texture_eth_face_day_anger" ref="faceDayAnger" />
|
||||
<asset type="texture" name="texture_eth_face_day_confused" ref="faceDayConfused" />
|
||||
<asset type="texture" name="texture_eth_pose_day_back" ref="poseDayBack" />
|
||||
<asset type="texture" name="texture_eth_pose_day_cross" ref="poseDayCross" />
|
||||
|
||||
<vnscene name="Scene1Prologue0" extend="scenes/SceneMonologue">
|
||||
<events>
|
||||
<set property="eth->faceMaterial->texture" to="&faceDayConfused->texture" type="Texture*" />
|
||||
<set property="eth->bodyMaterial->texture" to="&poseDayBack->texture" type="Texture*" />
|
||||
|
||||
<text>
|
||||
<string lang="en"><font style="italics">Confused to Angry</font></string>
|
||||
<string lang="en"><font style="italics">There is a bucket.</font></string>
|
||||
</text>
|
||||
|
||||
<set property="eth->faceMaterial->texture" to="&faceDayAnger->texture" type="Texture*" />
|
||||
|
||||
<text>
|
||||
<string lang="en">Angry to Cross</string>
|
||||
</text>
|
||||
|
||||
<set property="eth->bodyMaterial->texture" to="&poseDayCross->texture" type="Texture*" />
|
||||
|
||||
<text>
|
||||
<string lang="en">And you are dead soon.</string>
|
||||
<!-- <text>
|
||||
<string lang="en"><font style="italics">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.</font></string>
|
||||
</text>
|
||||
|
||||
<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>
|
||||
<string lang="en"><font style="italics">And you are dead soon.</font></string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">God. You didn't think a pig's intestines could feel so cold.</string>
|
||||
<string lang="en"><font style="italics">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.</font></string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">You are dead when the bucket falls - crushes your skull - caves you open - drenches you and drenches you, drowns you, fells you and kills, kills, kills you.</string>
|
||||
<string lang="en"><font style="italics">God. You didn't think a pig's intestines could feel so cold.</font></string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">And the last thing you see ---</string>
|
||||
<string lang="en"><font style="italics">You are dead when the bucket falls - crushes your skull - caves you open - drenches you and drenches you, drowns you, fells you and kills, kills, kills you.</font></string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">Is their eyes.</string>
|
||||
<string lang="en"><font style="italics">And the last thing you see -</font></string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en"><font style="italics">Is their eyes.</font></string>
|
||||
</text> -->
|
||||
|
||||
<scene-change scene="vnscenes/Scene1Prologue1" />
|
||||
</events>
|
||||
</vnscene>
|
@ -1,90 +1,9 @@
|
||||
<vnscene name="Scene1Prologue" extend="scenes/SceneBase">
|
||||
<vnscene name="Scene1Prologue1" extend="scenes/SceneStandard">
|
||||
<events>
|
||||
<text>
|
||||
<string lang="en">I wake.</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">I gasp. I close my eyes - I’m fine, I’m fine. I'm still here. Breathing.</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">That bucket was a dream. My death was a dream. I’m not dead.</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">(Am I?)</string>
|
||||
</text>
|
||||
|
||||
|
||||
<text>
|
||||
<string lang="en">(...)</string>
|
||||
<string lang="en"><font style="italics">whoa</font></string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">(Aren't I?)</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">Of course I’m not.</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">I exhale. My feet fall to the edges of my bed. Slowly, I raise myself to stand.</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">My fingers tremble by the edges of my leg: I curl my hand in. My nails catch on my skin. They’re sharp, pastel pink. Done for Prom Day today.</string>
|
||||
</text>
|
||||
|
||||
|
||||
<text>
|
||||
<string lang="en">The dream didn’t happen. How could it have? Prom Day hasn’t happened yet. </string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">I'm fine.</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">(Didn’t it happen?)</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">(It felt so…)</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">(Real.)</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">I tidy the bedsheets. Pull the corners over the bed’s edges, fluff up the pillows, pat away the sweat and the residue of a scream: my parents want it pretty.</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">It wasn’t real. I only had a visceral dream, sunken into my brain as an anchor to a sea, as a stone angel’s crumbling visage, as a bird’s descent off Devil Cradle’s cliffs. That wasn’t real.</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">No, of course not. </string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">My calendar says May 29th. I’ve got to prepare for Prom.</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">After all, if there is anything I will be, it is Prom Queen.</string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">I’ve been chasing this moment since the beginning of time. Today is the finale. </string>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<string lang="en">And I am nothing if not ready. </string>
|
||||
</text>
|
||||
|
||||
<scene-change scene="vnscenes/Scene1Prologue1" />
|
||||
</events>
|
||||
</vnscene>
|
20
assets/games/liminal/scenes/SceneMonologue.xml
Normal file
20
assets/games/liminal/scenes/SceneMonologue.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<scene name="SceneMonologue">
|
||||
<item position="0, 0, -10">
|
||||
<MeshRenderer />
|
||||
<QuadMeshHost xy0="-500000, -500000" xy1="500000, 500000" />
|
||||
<SimpleTexturedMaterial color="COLOR_BLACK" />
|
||||
</item>
|
||||
|
||||
<item lookAt="0, 0.65, 1.8, 0, .65, 0">
|
||||
<Camera ref="camera" fov="0.610865" />
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<UICanvas ref="canvas" camera="camera" />
|
||||
<item ref="textbox" prefab="prefabs/VNTextboxMonologue" />
|
||||
</item>
|
||||
|
||||
<item ref="vnItem">
|
||||
<VNManager ref="vnManager" />
|
||||
</item>
|
||||
</scene>
|
@ -1,4 +1,4 @@
|
||||
<scene name="SceneBase">
|
||||
<scene name="SceneStandard">
|
||||
<item lookAt="9999, 9999, 9999, 9999, 9999, 0">
|
||||
<Camera ref="backCamera" />
|
||||
</item>
|
Reference in New Issue
Block a user