diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-15 15:49:58 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-15 15:49:58 -0500 |
| commit | d9b5c57c91ba77b840ede8c4385229cf004f5747 (patch) | |
| tree | 94f2a445250dd38ec578eec547f16c0f9f67b0e9 /res/scripts | |
| parent | 5834a85dcfafd50a1863a00fc2daf2cf1e8bb7e9 (diff) | |
| download | tanetane-d9b5c57c91ba77b840ede8c4385229cf004f5747.tar.gz tanetane-d9b5c57c91ba77b840ede8c4385229cf004f5747.tar.bz2 tanetane-d9b5c57c91ba77b840ede8c4385229cf004f5747.zip | |
Added heart glyph and gamestate script object
Diffstat (limited to 'res/scripts')
| -rw-r--r-- | res/scripts/common.lua | 2 | ||||
| -rw-r--r-- | res/scripts/map2.lua | 13 |
2 files changed, 14 insertions, 1 deletions
| diff --git a/res/scripts/common.lua b/res/scripts/common.lua index 422d157..caab86a 100644 --- a/res/scripts/common.lua +++ b/res/scripts/common.lua | |||
| @@ -30,6 +30,8 @@ SpriteLayer = { | |||
| 30 | ABOVE = 1 | 30 | ABOVE = 1 |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | gamestate = {} | ||
| 34 | |||
| 33 | function Delay(time) | 35 | function Delay(time) |
| 34 | while time > 0 do | 36 | while time > 0 do |
| 35 | time = time - coroutine.yield() | 37 | time = time - coroutine.yield() |
| diff --git a/res/scripts/map2.lua b/res/scripts/map2.lua index 1249f7d..c4b588c 100644 --- a/res/scripts/map2.lua +++ b/res/scripts/map2.lua | |||
| @@ -67,5 +67,16 @@ function map2.mailbox_lightning() | |||
| 67 | end | 67 | end |
| 68 | 68 | ||
| 69 | function map2.approach_doria() | 69 | function map2.approach_doria() |
| 70 | SetAnimation("doria", "hearts") | 70 | if gamestate.approached_doria then |
| 71 | return | ||
| 72 | end | ||
| 73 | |||
| 74 | gamestate.approached_doria = true | ||
| 75 | |||
| 76 | StartCutscene() | ||
| 77 | SetDirection("doria", Direction.DOWN_RIGHT) | ||
| 78 | SetAnimation("doria", "talk") | ||
| 79 | DisplayMessage("* Oh my!\n* Is that our little Kumatora I spy? `", "Doria", SpeakerType.MAN) | ||
| 80 | |||
| 81 | HideCutsceneBars() | ||
| 71 | end | 82 | end |
