summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/maps/hallucination_mirror.tmx11
-rw-r--r--res/scripts/hallucination_mirror.lua17
2 files changed, 27 insertions, 1 deletions
diff --git a/res/maps/hallucination_mirror.tmx b/res/maps/hallucination_mirror.tmx index 1c5eee2..c2c8053 100644 --- a/res/maps/hallucination_mirror.tmx +++ b/res/maps/hallucination_mirror.tmx
@@ -1,5 +1,5 @@
1<?xml version="1.0" encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2<map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="48" height="16" tilewidth="16" tileheight="16" infinite="0" nextlayerid="8" nextobjectid="12"> 2<map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="48" height="16" tilewidth="16" tileheight="16" infinite="0" nextlayerid="8" nextobjectid="13">
3 <properties> 3 <properties>
4 <property name="maskZone" value="mask"/> 4 <property name="maskZone" value="mask"/>
5 </properties> 5 </properties>
@@ -114,6 +114,15 @@
114 <point/> 114 <point/>
115 </object> 115 </object>
116 <object id="11" name="mirror_sight" type="zone" x="176" y="128" width="176" height="48"/> 116 <object id="11" name="mirror_sight" type="zone" x="176" y="128" width="176" height="48"/>
117 <object id="12" name="mirror_edge" type="sprite" x="176" y="112" width="176" height="16">
118 <properties>
119 <property name="collisionHeight" type="int" value="16"/>
120 <property name="collisionOffsetX" type="int" value="0"/>
121 <property name="collisionOffsetY" type="int" value="0"/>
122 <property name="collisionWidth" type="int" value="176"/>
123 <property name="interactionScript" value="examine_mirror"/>
124 </properties>
125 </object>
117 </objectgroup> 126 </objectgroup>
118 <layer id="4" name="Upper" width="48" height="16"> 127 <layer id="4" name="Upper" width="48" height="16">
119 <properties> 128 <properties>
diff --git a/res/scripts/hallucination_mirror.lua b/res/scripts/hallucination_mirror.lua index bf1faba..053a710 100644 --- a/res/scripts/hallucination_mirror.lua +++ b/res/scripts/hallucination_mirror.lua
@@ -55,3 +55,20 @@ function hallucination_mirror.mailbox()
55 WaitForEndOfMessage() 55 WaitForEndOfMessage()
56 HideCutsceneBars() 56 HideCutsceneBars()
57end 57end
58
59function hallucination_mirror.examine_mirror()
60 StartCutscene()
61 Halt("double_lucas")
62 Halt("double_kuma")
63 Halt("double_duster")
64 Halt("double_boney")
65
66 if gamestate.read_mirror_message then
67 DisplayMessage("* Something seems wrong about this.", "", SpeakerType.NONE)
68 else
69 DisplayMessage("* Looking handsome.", "", SpeakerType.NONE)
70 end
71
72 WaitForEndOfMessage()
73 HideCutsceneBars()
74end