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
57
libs/narrator/test/units/lists-basic.ink
Normal file
57
libs/narrator/test/units/lists-basic.ink
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
LIST daysOfTheWeek = Monday, Tuesday, Wednesday, Thursday, Friday
|
||||
VAR today = Monday
|
||||
VAR tomorrow = Tuesday
|
||||
|
||||
LIST heatedWaterStates = cold, boiling, recently_boiled
|
||||
VAR kettleState = cold
|
||||
VAR potState = cold
|
||||
|
||||
LIST colours = red, green, blue, purple
|
||||
LIST moods = mad, happy, blue
|
||||
VAR status = colours.blue
|
||||
|
||||
LIST volumeLevel = off, quiet, medium, loud, deafening
|
||||
VAR lecturersVolume = quiet
|
||||
VAR murmurersVolume = quiet
|
||||
|
||||
LIST Numbers = one, two, three
|
||||
VAR cats = one
|
||||
|
||||
~ cats = Numbers(2) // score will be "two"
|
||||
We have { cats } cats.
|
||||
|
||||
-> today
|
||||
== today
|
||||
|
||||
Today is { today }. Tomorrow is { tomorrow }.
|
||||
|
||||
...
|
||||
-> kitchen
|
||||
=== kitchen
|
||||
|
||||
|
||||
- Hm, kettle is { kettleState } and pot is { potState }.
|
||||
~ kettleState = boiling
|
||||
- Now kettle is { kettleState } and pot is { potState }.
|
||||
|
||||
...
|
||||
-> status
|
||||
=== status
|
||||
|
||||
Binary values are { status == colours.blue } and { status == moods.blue }
|
||||
|
||||
...
|
||||
-> lecture
|
||||
=== lecture
|
||||
|
||||
{ lecturersVolume < deafening:
|
||||
~ lecturersVolume++
|
||||
The lecturer's voice becomes {lecturersVolume}.
|
||||
The lecturer has {LIST_VALUE(deafening) - LIST_VALUE(lecturersVolume)} notches still available to him.
|
||||
|
||||
{ lecturersVolume > murmurersVolume:
|
||||
~ murmurersVolume++
|
||||
The murmuring gets louder.
|
||||
}
|
||||
-> lecture
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue