diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-22 22:46:44 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-22 22:46:44 -0500 |
commit | 3ecf5bbc1c81908bfd3355999a37e8e96e15b8b5 (patch) | |
tree | 3cb83a80a1f315fb8bc3a918782be2f02d2799ce /res/scripts | |
parent | 5e8522258412d05994cc5efa678a1d713cdae718 (diff) | |
download | tanetane-3ecf5bbc1c81908bfd3355999a37e8e96e15b8b5.tar.gz tanetane-3ecf5bbc1c81908bfd3355999a37e8e96e15b8b5.tar.bz2 tanetane-3ecf5bbc1c81908bfd3355999a37e8e96e15b8b5.zip |
Generalized upper/lower layer map rendering
Map layers can have a flag on them that specifies that they should be rendered as part of the upper set (rendered above the normal sprite layer but below the above sprite layer). Also added map connections between hallucination_interior and hallucination_cliff. And named the layers in the map files bc why not.
Diffstat (limited to 'res/scripts')
-rw-r--r-- | res/scripts/hallucination_cliff.lua | 5 | ||||
-rw-r--r-- | res/scripts/hallucination_interior.lua | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/res/scripts/hallucination_cliff.lua b/res/scripts/hallucination_cliff.lua new file mode 100644 index 0000000..f351e1e --- /dev/null +++ b/res/scripts/hallucination_cliff.lua | |||
@@ -0,0 +1,5 @@ | |||
1 | hallucination_cliff = {} | ||
2 | |||
3 | function hallucination_cliff.off_bottom() | ||
4 | ChangeMap("hallucination_interior", "fromTop") | ||
5 | end | ||
diff --git a/res/scripts/hallucination_interior.lua b/res/scripts/hallucination_interior.lua index 941f0a1..bd075f1 100644 --- a/res/scripts/hallucination_interior.lua +++ b/res/scripts/hallucination_interior.lua | |||
@@ -4,6 +4,10 @@ function hallucination_interior.off_left() | |||
4 | ChangeMap("hallucination_beach", "fromRight") | 4 | ChangeMap("hallucination_beach", "fromRight") |
5 | end | 5 | end |
6 | 6 | ||
7 | function hallucination_interior.off_top() | ||
8 | ChangeMap("hallucination_cliff", "fromBottom") | ||
9 | end | ||
10 | |||
7 | function hallucination_interior.mailbox1() | 11 | function hallucination_interior.mailbox1() |
8 | StartCutscene() | 12 | StartCutscene() |
9 | DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE) | 13 | DisplayMessage("* The mailbox lid is open...\n* Peek inside?", "", SpeakerType.NONE) |