summary refs log tree commit diff stats
path: root/res/scripts
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-03-02 18:33:33 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-03-02 18:33:33 -0500
commitf0efccecadea6476dde042748d5ed42d4a9b5cb3 (patch)
tree22babec8b2ab21acc4107b2eeefc6e863ea4c930 /res/scripts
parent5ad7082b6799598e110f79935b606ec733135558 (diff)
downloadtanetane-f0efccecadea6476dde042748d5ed42d4a9b5cb3.tar.gz
tanetane-f0efccecadea6476dde042748d5ed42d4a9b5cb3.tar.bz2
tanetane-f0efccecadea6476dde042748d5ed42d4a9b5cb3.zip
Added smacking to the Mixolydia scene
Diffstat (limited to 'res/scripts')
-rw-r--r--res/scripts/pink_shell.lua52
1 files changed, 51 insertions, 1 deletions
diff --git a/res/scripts/pink_shell.lua b/res/scripts/pink_shell.lua index 5747186..775aeae 100644 --- a/res/scripts/pink_shell.lua +++ b/res/scripts/pink_shell.lua
@@ -100,6 +100,8 @@ function pink_shell.talk_to_mixolydia()
100 SetMovementSpeed("lucas", 2) 100 SetMovementSpeed("lucas", 2)
101 Delay(100) 101 Delay(100)
102 102
103 SetDirection("mixolydia", Direction.DOWN)
104
103 UnpauseSprite("kuma") 105 UnpauseSprite("kuma")
104 SetMovementSpeed("kuma", 1) 106 SetMovementSpeed("kuma", 1)
105 DirectSpriteToLocation("kuma", "kumatora_lineup", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY) 107 DirectSpriteToLocation("kuma", "kumatora_lineup", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY)
@@ -145,7 +147,6 @@ function pink_shell.talk_to_mixolydia()
145 SetMovementSpeed("join_claus", 0) 147 SetMovementSpeed("join_claus", 0)
146 end 148 end
147 149
148 MakeSpriteSolid("lucas")
149 Delay(1000) 150 Delay(1000)
150 151
151 if gamestate.went_in_hot_spring then 152 if gamestate.went_in_hot_spring then
@@ -162,6 +163,55 @@ function pink_shell.talk_to_mixolydia()
162 WaitForEndOfMessage() 163 WaitForEndOfMessage()
163 164
164 SetAnimation("mixolydia", "still") 165 SetAnimation("mixolydia", "still")
166 Delay(500)
167
168 SetDirection("mixolydia", Direction.UP)
169 Delay(500)
170
171 -- smack each character
172 UnpauseSprite("mixolydia")
173 SetMovementSpeed("mixolydia", 1)
174
175 pink_shell.smack("smack_boney_pos")
176 SetAnimation("boney", "frozen")
177 Delay(1000)
178
179 pink_shell.smack("smack_lucas_pos")
180 SetAnimation("lucas", "frozen")
181 Delay(1000)
182
183 pink_shell.smack("smack_kumatora_pos")
184 SetAnimation("kuma", "frozen")
185 Delay(1000)
186
187 pink_shell.smack("smack_duster_pos")
188 SetAnimation("duster", "frozen")
189 Delay(1000)
190
191 -- TODO: handle fake claus
192 if gamestate.still_has_claus then
193 pink_shell.smack("smack_claus_pos")
194 end
165 195
166 -- TODO: rest of scene 196 -- TODO: rest of scene
197
198 MakeSpriteSolid("lucas")
199end
200
201function pink_shell.smack(posname)
202 DirectSpriteToLocation("mixolydia", posname, PathfindingOptions.CARDINAL_DIRECTIONS_ONLY)
203 WaitForSpritePath("mixolydia")
204
205 SetAnimation("mixolydia", "holding_stick")
206 Delay(2000)
207
208 SetAnimation("mixolydia", "turn_down!")
209 WaitForAnimation("mixolydia")
210
211 SetDirection("mixolydia", Direction.DOWN)
212 SetAnimation("mixolydia", "smack!")
213 WaitForAnimation("mixolydia")
214
215 PlaySound("ruler_smack.wav")
216 SetAnimation("mixolydia", "holding_stick")
167end 217end