Tour game scenario
This is the scenario of “A tour of Liminalia,” the game you can play on the home page. The files in the project's scenario folder are shown as they are, with line numbers.
The scenario is written in Japanese, and Shiori's name is written 栞. When you play in English, the dialogue and choices come from the translation file lang/en.json. This page shows that English under each line, along with English for the comments.
@code and @code-off are plugin commands made for this game. They show and hide a scenario sample in the top left of the screen (in English, the samples come from data/code.en.json). The other commands are in the command reference.
Play on the home pagePlay full screen
scenario/start.lim163 lines
// Liminalia のご案内。案内役の栞が、機能を実際に動かしながら紹介する(サイトのトップに組み込むゲーム)A tour of Liminalia. Shiori, the guide, introduces the features by actually running them (the game embedded on the site's home page)@bgm quiet_night.wav volume=35 time=2s@bg hill_dusk.webp time=1s@window show@chara 栞 smile at=right time=600ms栞「はじめまして。案内役の{r 栞|しおり}です」Shiori: “Nice to meet you. I'm Shiori, and I'll be your guide.”@chara 栞 normal栞「いま動いているこの画面も、Liminalia で作った小さなゲームなんです」Shiori: “This screen you're looking at is a little game made with Liminalia, too.”@code hello栞「わたしが話していることは、こんなふうにテキストで書いてあります」Shiori: “Everything I say is written as text, like this.”栞「@ で始まる行がコマンドで、名前と「」の行が台詞。一行が、一回のクリックです」Shiori: “Lines that start with @ are commands, and a name followed by 「」 is dialogue. One line is one click.”@code-off# menu@chara 栞 normal at=center time=300ms栞「どこから見ていきましょうか」Shiori: “Where shall we start?”@choice- シナリオの書き方 -> #writing call=trueWriting scenarios- 立ち絵と表情 -> #chara call=trueSprites and expressions- 演出と音 -> #effects call=trueEffects and sound- 選択肢と分岐 -> #branch call=trueChoices and branching- システム画面 -> #system call=trueSystem screens- 書き出しと配布 -> #export call=trueExport and distribution- おしまいにする -> #byeThat's all for now@end// ---- シナリオの書き方 ----Writing scenarios# writing@chara 栞 at=right time=400ms@code ruby栞「文字の飾りは、本文の中にそのまま書きます」Shiori: “Text decoration goes right into the text.”栞「名前には{r 栞|しおり}とルビを振って、大事なところには{dot 傍点}を打って」Shiori: “I can put ruby over my name, {r 栞|Shiori}, and emphasis dots over Japanese text, like {dot 傍点}.”栞「{fx wave ゆらゆら揺れる文字}も、{c #ff9592 色の変わる文字}も、{b 太字}も同じ書き方です」Shiori: “{fx wave Wavy text}, {c #ff9592 colored text} and {b bold} are all written the same way.”@code check@chara 栞 think栞「書いたシナリオは、遊ぶ前にチェックできます」Shiori: “You can check what you've written before you play it.”@chara 栞 normal栞「無いラベルへ飛ぼうとしていたり、無い表情を指していたりすると、行の位置と修正案を教えてくれます」Shiori: “If a line jumps to a label that doesn't exist or asks for an expression that isn't there, you're told which line it is and how to fix it.”@chara 栞 smile栞「AI に書いてもらったシナリオも、そのまま確かめられるんですよ」Shiori: “Scenarios an AI wrote for you can be checked the same way.”@code-off@chara 栞 normal栞「ほかも見てみますか?」Shiori: “Shall we look at something else?”@return// ---- 立ち絵と表情 ----Sprites and expressions# chara@chara 栞 at=right time=400ms@code chara栞「立ち絵は、名前と表情で指すだけです」Shiori: “For sprites, you just give a name and an expression.”@chara 栞 surprised栞「驚いてみたり」Shiori: “I can look surprised…”@chara 栞 trouble栞「困ってみたり。表情を替えるのも一行です」Shiori: “…or troubled. Changing expressions takes just one line.”@chara 栞 normal at=center time=500ms栞「立ち位置を変えると、するっと動きます」Shiori: “Change my position, and I glide right over.”@chara 栞 at=right time=500ms@tone night time=1s wait=true栞「夜の場面なら、立ち絵の色調も合わせられます」Shiori: “For a night scene, the sprite's tone can match, too.”@tone none time=800ms@dof sprites blur=6 time=800ms wait=true栞「背景をぼかして、わたしにピントを合わせることも」Shiori: “You can also blur the background and bring me into focus.”@dof none time=600ms@chara 栞 smile栞「目や口を重ねるパーツ合成の立ち絵も、PSD からそのまま作れます」Shiori: “Layered sprites, with eyes and mouths stacked on top, can be made straight from a PSD file.”@code-off@chara 栞 normal栞「ほかも見てみますか?」Shiori: “Shall we look at something else?”@return// ---- 演出と音 ----Effects and sound# effects@chara 栞 at=right time=400ms@code effects栞「演出も、いくつか動かしてみますね」Shiori: “Let me show you a few effects.”@bg library.webp time=1500ms pattern=circle-out栞「背景は、ワイプやルール画像で切り替えられます」Shiori: “Backgrounds can change with wipes and rule images.”@quake count=4 vertical=12栞「画面を揺らしたり」Shiori: “I can shake the screen…”@camera zoom=1.35 y=-40 time=900ms栞「カメラで寄ったり」Shiori: “…zoom in with the camera…”@reset-camera time=800ms@particles snow wind=15栞「雪を降らせたり」Shiori: “…make it snow…”@particles-off time=800ms@effect ripple strength=8栞「水面のように揺らしたり。この揺れは WebGL のシェーダーで、自分で書いたシェーダーも使えます」Shiori: “…or make it ripple like water. This ripple is a WebGL shader, and you can use shaders you write yourself.”@effect-off@se chime.wav栞「音も一行です。BGM は前奏つきのループや、曲どうしのクロスフェードもできます」Shiori: “Sound takes one line, too. BGM can loop after an intro and crossfade from one track to the next.”@bg hill_dusk.webp time=1s@code-off栞「ほかも見てみますか?」Shiori: “Shall we look at something else?”@return// ---- 選択肢と分岐 ----Choices and branching# branch@chara 栞 at=right time=400ms@code branch栞「選択肢は、行を並べるだけです。ためしに選んでみてください」Shiori: “Choices are just lines in a list. Go ahead and pick one.”@choice timeout=10s default=2- 紅茶にする -> #teaTea, please- コーヒーにする -> #coffeeCoffee, please- まだ決められない -> #tea locked=(true)I can't decide yet@end# tea@set game.drink = "紅茶"“紅茶” means tea. Playing in English, the translation “Tea” goes into the variable@jump #drink# coffee@set game.drink = "コーヒー"“コーヒー” means coffee. Playing in English, the translation “Coffee” goes into the variable# drink@chara 栞 smile栞「{= game.drink}ですね。選んだものは変数に入るので、あとの場面でも使えます」Shiori: “{= game.drink} it is. What you pick goes into a variable, so later scenes can use it too.”@chara 栞 normal栞「さっきの選択肢には、残り時間のバーがありました。時間が切れると、決めておいた方を選びます」Shiori: “Those choices had a bar showing the time left. When time runs out, the one set in advance is picked.”栞「三つめは選べない選択肢です。条件を満たすまで、隠さずに見せておけます」Shiori: “The third one couldn't be picked. Until its condition is met, it can stay on screen instead of being hidden.”@code-off栞「ほかも見てみますか?」Shiori: “Shall we look at something else?”@return// ---- システム画面 ----System screens# system栞「セーブ、ロード、バックログ、コンフィグ。どれもエンジンに最初から入っています」Shiori: “Save, load, the log and settings all come built into the engine.”栞「右クリックか、下のクイックメニューから開けます。コンフィグを開いてみますね。閉じると続きます」Shiori: “Open them with a right-click or from the quick menu at the bottom. I'll open Settings now. Close it to continue.”@open-screen config@chara 栞 smile栞「テキスト速度や音量のほかに、色覚の補正や、キーとゲームパッドの割り当てもあります」Shiori: “Besides text speed and volume, there's color vision correction and key and gamepad bindings.”@chara 栞 normal栞「セーブにはメモを付けたり、上書きされないように守ったりもできます」Shiori: “Saves can have notes, and you can protect them from being overwritten.”栞「作品に合わせて、画面ごと差し替えることもできますよ」Shiori: “You can even replace whole screens to suit your game.”栞「ほかも見てみますか?」Shiori: “Shall we look at something else?”@return// ---- 書き出しと配布 ----Export and distribution# export@chara 栞 at=right time=400ms@code export栞「できた作品は、ブラウザ、Mac、Windows、Linux、Android、iOS に書き出せます」Shiori: “Finished games can be exported for the browser, Mac, Windows, Linux, Android and iOS.”栞「このページのゲームも、ブラウザ向けに書き出したものです」Shiori: “The game on this page was exported for the browser, too.”@chara 栞 think栞「あとで直したところは、前の書き出しとの違いだけをパッチにして配れます」Shiori: “When you fix something later, you can ship just the difference from the last export as a patch.”@chara 栞 normal栞「署名やインストーラー、Steam の実績まで、書き出しのところでまとめて面倒を見ます」Shiori: “Signing, installers, even Steam achievements: export takes care of them all.”@code-off栞「ほかも見てみますか?」Shiori: “Shall we look at something else?”@return// ---- おしまい ----The end# bye@chara 栞 smile栞「ご案内はここまでです。くわしいことは、このページのドキュメントとコマンドリファレンスにまとめてあります」Shiori: “That's the end of the tour. You'll find the details in the docs and the command reference on this site.”栞「あなたの物語ができあがるのを、楽しみにしていますね」Shiori: “I'm looking forward to seeing your story come to life.”@choice- はじめから見る -> #restartStart the tour again@end# restart@chara-hide 栞 time=400ms@jump #menu