Vendor libs/hump, sfxrlua, json4lua, narrator as real files
These were committed as empty submodule gitlinks with no .gitmodules, so the folders were never populated and the game could not load (require of libs/hump/timer, libs/sfxrlua/sfxr, narrator.narrator). Checked out each at its pinned commit and vendored the files, matching the existing bundled-libs convention. Removed the junk libs/libs/ tree. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
e73f63b5d4
commit
03532d29e4
219 changed files with 20254 additions and 252 deletions
78
libs/narrator/test/units/conditions-switch.ink
Normal file
78
libs/narrator/test/units/conditions-switch.ink
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
VAR foo = false
|
||||
VAR x = 0
|
||||
|
||||
-> simple
|
||||
|
||||
== simple
|
||||
{not foo:
|
||||
Hello!
|
||||
}
|
||||
{ foo :
|
||||
True! -> choice
|
||||
- else:
|
||||
False! }
|
||||
~ foo = not foo
|
||||
-> simple
|
||||
|
||||
=== choice
|
||||
|
||||
{ true :
|
||||
* [Answer] -> nested_inline
|
||||
}
|
||||
|
||||
== nested_inline
|
||||
{
|
||||
- foo : { foo: True! | False! }
|
||||
Text here.
|
||||
- else: Badaboom!
|
||||
...again. -> nested_block
|
||||
}
|
||||
~ foo = not foo
|
||||
-> nested_inline
|
||||
|
||||
|
||||
== nested_block
|
||||
I love you. { true:
|
||||
And what about you?
|
||||
{
|
||||
- false:
|
||||
False!
|
||||
- true:
|
||||
* Choice -> tags
|
||||
}
|
||||
...
|
||||
} Something.
|
||||
|
||||
== tags
|
||||
{
|
||||
- not foo:
|
||||
text { true : x = { x } } #success
|
||||
- else:
|
||||
-> not_a_label
|
||||
}
|
||||
~ foo = not foo
|
||||
-> tags
|
||||
|
||||
== not_a_label
|
||||
{
|
||||
- foo: suc...
|
||||
success #success
|
||||
- x < 0: mid...
|
||||
middle
|
||||
text -> END
|
||||
- else: els...
|
||||
(notLabel) else
|
||||
-> switch
|
||||
}
|
||||
~ foo = not foo
|
||||
-> not_a_label
|
||||
|
||||
== switch
|
||||
{ x:
|
||||
- 0: zero
|
||||
- 1: one
|
||||
- 2: two
|
||||
- else: lots -> END
|
||||
}
|
||||
~ x++
|
||||
-> switch
|
||||
Loading…
Add table
Add a link
Reference in a new issue