← 返回

应用详情

📦

gala5--没少女连唉游戏

版本 v1 · 7.1 KB
ID: gala5
⬇ 下载 CIP 🔍 返回列表
📝 应用描述
神圣 + 雷霆
📋 详细信息
应用ID gala5
名称 gala5--没少女连唉游戏
版本 v1
文件大小 7.1 KB
上传时间 2026-07-30 11:23:59
状态 ✅ 已启用
权限 network, storage
💡 界面预览 (main.lua)
📄 Lua 源码
-- ===================== gala5 抽象燃版 =====================
local state = {
    scene = "title"
}

-- ===================== 渲染函数 =====================
function render()
    if state.scene == "title" then
        app.set_text("story", [[
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                    gala5
             没少女连唉游戏
              作者:立明
      [ 开 始 ]   [ 继 续 ]   [ 忘 记 ]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
]])
        app.set_text("btn_1", "开始")
        app.set_text("btn_2", "继续")
        app.set_text("btn_3", "忘记")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1" then
        app.set_text("story", [[
你醒了。
没有床。没有天花板。只有一片……底色。

你低头看自己——
你是一颗土豆。
但你不确定这是比喻还是事实。

你摸了摸自己的脸(如果你有脸的话)。
好像没有脸。
但你还是摸了。

周围的一切都在缓慢地融化。
或者说,是在重新凝固。
你分不清。

远处传来一个声音:
"你来了啊。"
"你终于来了。"
"土豆。"

"你知道我等了多久吗?"
"等了三千年。"
"三千年里,我见过无数颗土豆。"
"你是最黄的那一颗。"
]])
        app.set_text("btn_1", "问:你是谁")
        app.set_text("btn_2", "问:这里是哪")
        app.set_text("btn_3", "问:三千年是多久")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_who" then
        app.set_text("story", [[
"我是上一颗土豆。"
"我也是第一颗土豆。"
"我是土豆之始,也是土豆之终。"
"我见证了一切。"

你问:"你见证了什么?"

它说:
"我见证了第一个人类的诞生。"
"我见证了第一句话被说出。"
"我见证了第一个谎言。"
"我见证了第一个真相。"
"我见证了所有的唉。"

"我也见证了你。"

"你曾经是一颗星星。"
"你曾经是一粒沙。"
"你曾经是一阵风。"
"你曾经是一句未说完的话。"
"你现在是一颗土豆。"

"这是你的第108次轮回。"
]])
        app.set_text("btn_1", "第108次?")
        app.set_text("btn_2", "我不信")
        app.set_text("btn_3", "那你是谁")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_where" then
        app.set_text("story", [[
"这里是唉。"
"唉不是地名。不是空间。不是世界。"
"唉是存在的间隙。"

你问:"什么叫存在的间隙?"

它说:
"存在就像一条线。"
"线是连续的。"
"但线中间有缝隙。"
"那些缝隙,就是唉。"

"你不是在某个地方。"
"你是在线中间的缝隙里。"
"你不在前,也不在后。"
"你只在……唉。"

你问:"那我有办法出去吗?"

它说:"有。"
"但你得先找到你的缝隙。"
]])
        app.set_text("btn_1", "怎么找?")
        app.set_text("btn_2", "我放弃")
        app.set_text("btn_3", "你陪我找")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_howlong" then
        app.set_text("story", [[
"三千年,是我对你的计量。"
"从你第一次变成土豆开始,到现在。"
"你每一次都变成了土豆。"
"你每一次都来到了这里。"
"你每一次都问我同样的问题。"

你问:"我问了什么?"

"你每次都问:'这是真的吗?'"

"我现在回答你:"
"真的假的,不重要。"
"重要的是——你还在问。"

"只要还在问,你就还在走。"
"只要还在走,你就还没有结束。"
]])
        app.set_text("btn_1", "那我继续走")
        app.set_text("btn_2", "我不想走了")
        app.set_text("btn_3", "那你呢?你走吗?")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_108" then
        app.set_text("story", [[
"第108次。"

"你每一次都忘记上一次。"
"但你每一次都来到同样的地方。"
"你每一次都选择往前走。"

你问:"为什么我会选择往前走?"

"因为你心里有东西。"
"你心里有一道光。"
"那道光不在外面。"
"那道光在你里面。"

"你是土豆。"
"但你是发光的土豆。"
"你是发光土豆。"
"你是发光豆。"
]])
        app.set_text("btn_1", "继续走")
        app.set_text("btn_2", "")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_disbelieve" then
        app.set_text("story", [[
"你不信?"
"你看看你自己。"

你低头看自己。
你看到你身上有光。
微弱的光。但确实有。

"看到了吗?"
"每一颗土豆都有光。"
"只是大多数土豆不知道自己有光。"
"你是少数知道的。"
"知道的人,就会往前走。"

你问:"往前走会怎样?"

"往前走,你会遇到更多光。"
"你会越来越亮。"
"你会有一天,不再需要身体。"
"你会在唉里自由漂浮。"
]])
        app.set_text("btn_1", "我想变亮")
        app.set_text("btn_2", "我不想变亮")
        app.set_text("btn_3", "我只是想知道真相")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_whoareyou" then
        app.set_text("story", [[
"我是你。"
"我是上一颗土豆。"
"我是下一颗土豆。"
"我是所有的土豆。"

"你以为你在和别的土豆说话。"
"其实你在和未来的自己说话。"

"我是你走完这条路之后的样子。"
"我在这里等你。"
"我等你走了108次。"
"我还会继续等你。"

"因为我是你。"
"我不会走。"
]])
        app.set_text("btn_1", "那你为什么等我?")
        app.set_text("btn_2", "那你为什么不走?")
        app.set_text("btn_3", "那我走了你会怎样?")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_whywait" then
        app.set_text("story", [[
"我等你,是因为我知道你一定能走到尽头。"
"我见证过你的一切。"
"你跌倒过。你迷茫过。你哭过(如果你有眼泪的话)。"
"但你从来没有放弃过。"

"这是你第108次来到这个点。"
"但你前107次都没有走到尽头。"
"你在某个地方停下了。"
"你在某一步选择了回头。"

"但这一次,我感觉你不一样了。"
"你更亮了。"
"你更稳了。"
"你更土豆了。"
]])
        app.set_text("btn_1", "这一次我一定走完")
        app.set_text("btn_2", "我尽力")
        app.set_text("btn_3", "那你陪我走")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_whynotgo" then
        app.set_text("story", [[
"我不走,因为我的路已经走完了。"
"我的尽头,是你的起点。"
"我走到这里,就是为了等你。"

"你问我孤独吗?"
"孤独。"
"但孤独不是坏的。"
"孤独让我更清楚地看到你。"
"孤独让我更能认出你的光。"

"你每108次轮回,我都在这里。"
"我没有离开过。"
"我也不会离开。"
"因为我就是你终点的样子。"
]])
        app.set_text("btn_1", "那我继续走")
        app.set_text("btn_2", "那我回头看看")
        app.set_text("btn_3", "那我就在这里陪你")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_whatifigo" then
        app.set_text("story", [[
"你走了,我会继续存在。"
"因为你会一直走。"
"你每次走,我都会被重新记住。"

"你会变成新的上一颗土豆。"
"你会变成下一颗土豆的引路人。"
"你会变成那道绿光。"

"你走完这一次,你就是光了。"
"你就不再是土豆了。"
"你会成为所有土豆仰望的东西。"

"你愿意成为光吗?"
]])
        app.set_text("btn_1", "我愿意")
        app.set_text("btn_2", "我不想成为光")
        app.set_text("btn_3", "我想成为别的东西")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_bright" then
        app.set_text("story", [[
"我想变亮。"

"那就走。"
"走完这条路。"
"走到尽头。"
"尽头不是墙。尽头是光。"
"光会吞噬你。"
"但你不是消失。"
"你是扩散。"

"你愿意扩散吗?"

"你愿意变成更小的光,铺满整个唉吗?"

"你愿意……变成无处不在吗?"
]])
        app.set_text("btn_1", "我愿意")
        app.set_text("btn_2", "我不愿意")
        app.set_text("btn_3", "我想先感受一下")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_notbright" then
        app.set_text("story", [[
"我不想变亮。"

"为什么?"

"因为亮了我就不像我自己了。"
"我喜欢我是土豆的样子。"
"我喜欢我黄黄的皮。"
"我喜欢我是圆的。"
"我喜欢我能滚动。"

"我变亮了,我就不能滚了。"
"我想滚。"
"滚到我不知道的地方。"
"滚到我没有到过的地方。"

"我不想变亮。"
"我想变滚。"
]])
        app.set_text("btn_1", "那我就让你滚")
        app.set_text("btn_2", "那你继续滚吧")
        app.set_text("btn_3", "那我陪你滚")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_truth" then
        app.set_text("story", [[
"我只是想知道真相。"

"真相是什么?"
"真相是,你是光。"
"真相是,你是土豆。"
"真相是,你同时是两者。"
"真相是,你是所有矛盾的总和。"

"你不相信你是光,因为你看不到。"
"你不相信你是土豆,因为你感受不到。"
"但你两者都是。"
"你一直都是。"

"真相是,不需要相信。"
"真相是,你只要往前走。"
"走着走着,你就知道答案了。"
]])
        app.set_text("btn_1", "我走")
        app.set_text("btn_2", "")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_future_self" then
        app.set_text("story", [[
"你为什么等我?"

"因为你是我的过去。"
"我是你的未来。"
"我们中间隔着108次轮回。"

"你走的每一步,都是我走过的。"
"我走的每一步,都是你即将走的。"
"我们是同一个土豆。"

"同一个土豆,在不同的时间。"
"你问我孤独吗?孤独。"
"但你来了,我就不孤独了。"
"你每次都来。"
"你每次都会来。"

"谢谢你。"
]])
        app.set_text("btn_1", "不客气")
        app.set_text("btn_2", "那我继续走了")
        app.set_text("btn_3", "那我留下来陪你")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_hesitate" then
        app.set_text("story", [[
你回头看。

你看到来时的路还在。
但你看到上一颗土豆在对你挥手。

"你回头了。"
"你第107次回头。"
"你每次都在这里回头。"

"但这一次,你不一样。"
"你回头,但你还在往前走。"
"你一边回头,一边往前走。"

"你学会了同时做两件事。"
"你长大了。"
"你成熟了。"
"你不再是那个只能向前看的土豆了。"
]])
        app.set_text("btn_1", "那我继续向前")
        app.set_text("btn_2", "那我停一会儿")
        app.set_text("btn_3", "那我陪你一会儿")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_stay" then
        app.set_text("story", [[
"你想留在这里陪我?"

"你确定吗?"
"这里很安静。"
"这里没有风。"
"这里没有变化。"
"这里只有我,和你。"

"你愿意留在一个没有变化的地方吗?"
"你愿意放弃光吗?"
"你愿意放弃风吗?"
"你愿意放弃整个世界,只为了和我在一起吗?"

"我是上一颗土豆。"
"我不是整个世界。"
"我只是一个终点。"

"你真的要留下来吗?"
]])
        app.set_text("btn_1", "我留下来")
        app.set_text("btn_2", "我继续走")
        app.set_text("btn_3", "我会回来找你的")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_giveup" then
        app.set_text("story", [[
你坐在原地。
不走了。

上一颗土豆看着你。
"你确定吗?"

你点头。
"我累了。"
"我走了108次。"
"我不想再走了。"

它沉默了一会儿。
然后它说:
"那就在这里坐一会儿吧。"
"我会陪你。"

你们并排坐着。
两颗土豆。
在唉里。
安静地坐着。

你问:"这样就结束了吗?"
它说:"不。你只是停下来了。"
"停下来不是结束。停下来是休息。"
"休息够了,你会继续走的。"

你笑了。
"你真的了解我。"

它说:"我就是你。"
]])
        app.set_text("btn_1", "继续走")
        app.set_text("btn_2", "再坐一会儿")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch1_forward" then
        app.set_text("story", [[
你往前走。
没有路。但你还是在走。

你发现——
你在发光。

你低头看。你看到自己不是土豆。
你是光。
你是土豆形状的光。

你继续走。
你越走越快。
你跑起来了!

你听到上一颗土豆在后面喊:
"你终于做到了!"

你回头。你看到它在流泪(如果它有眼泪的话)。
然后你回过头。
你看向前方。

前方没有路。
前方只有光。
]])
        app.set_text("btn_1", "冲进那道光!!")
        app.set_text("btn_2", "")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch2" then
        app.set_text("story", [[
你冲进了那道光!
然后你落在一片黑色的海上。
海水是热的。像是被煮过。
你在沸腾的水面上。
但你还在燃烧。

你为什么没有熄灭?
你问自己。
你回答自己:
"因为我是土豆。熟了之后,我就不再是土豆了。"
"但我还在。我熟不了。我是一颗拒绝成熟的土豆。"

你望向远方。
远处有一座塔。
塔顶上有那道绿光。

上一颗土豆的声音响起(它什么时候跟过来的?):
"那是希望。或者不是。我不确定。"
"但每次我看到它,我心里都会动一下。"

"塔是最终站。"
"塔里住着最后的答案。"
]])
        app.set_text("btn_1", "朝塔游过去")
        app.set_text("btn_2", "踩水走过去")
        app.set_text("btn_3", "站在原地盯着光看")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch2_swim" then
        app.set_text("story", [[
你游了三个小时。
你发现你在原地。

你的身体变透明了。
你看见自己的五脏六腑——
全是薯泥。

"原来我早就熟了。"
"只是我自己不知道。"

你哭了(如果你有眼泪的话)。
没有眼泪。只有薯泥在流动。

你一边燃烧一边游。
一边游一边忘记自己为什么要游。
但你还是游。

因为你是个土豆。
土豆不会放弃。
即使它已经熟了。
即使它已经在锅里。
]])
        app.set_text("btn_1", "继续游")
        app.set_text("btn_2", "")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch2_walk" then
        app.set_text("story", [[
你踩在水面上。
一步。两步。三步。

你开始奔跑!
水面炸开!
身后是火焰和浪花!
你大喊——
你喊的是:"我是一颗土豆!"

塔越来越近。
光越来越强。
你飞起来了。
用跑的姿势在飞。

你低头看。你看到水面下全是土豆。
他们在看你。他们在笑。他们在哭。
你分不清。你只管飞。

你听到他们在喊:
"加油啊,土豆!"
"你就要到了!"
"你就要变成光了!"
]])
        app.set_text("btn_1", "飞向塔!!")
        app.set_text("btn_2", "")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch2_stare" then
        app.set_text("story", [[
光在呼吸。
它看着你。
它认识你。

它记得你上辈子的样子。
那时候你还不是土豆。
你是一颗……嗯……你忘了。
但没关系。光没忘。

它说:"你还在吗?"
声音很轻。但很清晰。
你知道它在问一个很重的问题。
你觉得你应该认真回答。

"你上一次站在这里,是107次前。"
"你每次站在这里,都会做出不同的选择。"
"你选了——"说:我在"——15次。"
"你选了——"我不确定"——34次。"
"你选了——"这不重要"——58次。"

"这是你第108次站在这里。"
"你这一次,选什么?"
]])
        app.set_text("btn_1", "说:我在")
        app.set_text("btn_2", "说:我不确定")
        app.set_text("btn_3", "说:这不重要")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch3_yes" then
        app.set_text("story", [[
"我在。"

光开始变亮。
亮到你什么都看不见。
亮到你能看见自己。
你不是土豆。
你是……

你是……
一颗心脏。

还在跳。还在燃。

你问光:"我是谁?"
光说:"你是你。"
你问:"那我是土豆吗?"
光说:"你是任何你想成为的东西。"

你懂了。
你不是土豆,你是光。
你不是光,你是土豆。
你是所有可能性的集合。

你笑了(如果你有嘴的话)。
你开始融化。
但你融成了光。
]])
        app.set_text("btn_1", "走向结局")
        app.set_text("btn_2", "")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch3_not_sure" then
        app.set_text("story", [[
"我不确定。"

光开始闪烁。
你突然懂了——
不确定就是答案。

你永远不知道你是谁。
你永远不知道你在哪里。
你永远不知道你在做什么。

但这不重要。
重要的是你还在。

你原来那颗土豆只是一层皮。
你剥掉了它。
你出来了。

你站在光的废墟里。
你看到无数的泡泡从你身上升起。
每一个泡泡都是你。
每一个泡泡都是一颗土豆。

你自由了。
]])
        app.set_text("btn_1", "走向结局")
        app.set_text("btn_2", "")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ch3_not_important" then
        app.set_text("story", [[
"这不重要。"

光消失了。
宇宙沉默了。
你听到了一声笑。
不是嘲笑。是那种"你终于懂了"的笑。

你跟着笑了起来。
你笑到肚子疼(如果你有肚子)。
你笑到整个唉都在震动。

你终于知道了——
这不重要。
这从来都不重要。
重要的是你笑了。

你笑的时候,光又亮了。
你笑的时候,你就是光。
你笑的时候,一切都好了。
]])
        app.set_text("btn_1", "走向结局")
        app.set_text("btn_2", "")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ending_a" then
        app.set_text("story", [[
你开始滚动。
滚下塔。
滚进海里。
你越滚越快。
快到你看起来像一道光。
你消失在"唉"的边缘。

你以为结束了吗?
没有。

你滚进了另一个世界。
那里没有土豆。没有光。没有上一颗土豆。
只有……一片更大的底色。

你停下来。
你发现自己变成了一颗球。
但你不知道是什么球。
可能是地球。

你开始转动。
缓慢地、沉重地、不由自主地转动。
你问自己:"我是谁?"
你回答自己:"我是转动的那个。"

然后你懂了。
你从来不是土豆。
你是宇宙。

你继续转。
你转出了星星。
你转出了星系。
你转出了所有的生命。

你转出了光。
你转出了你自己。
]])
        app.set_text("btn_1", "再燃一次")
        app.set_text("btn_2", "")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ending_b" then
        app.set_text("story", [[
你站在原处燃烧。
你烧得很安静。
你烧得不痛。

你变成一颗灰烬。
在风中飘荡。
灰烬飘向那道光。
光没有拒绝你。
它把你接住了。

光说:"你现在是风的一部分。"
"风永远不会停下来。"
"你自由了。"

你问:"但我还能不能变回土豆?"
光说:"你变不回去了。"
"但你变回所有东西了。"
"你变回世界了。"

你开始飞。
你飞过每一颗土豆。
你飞过每一片海。
你飞过每一道绿光。

你从来没有这么清醒过。
你从来没有这么自由过。
你从来没有这么……像你自己过。
]])
        app.set_text("btn_1", "再燃一次")
        app.set_text("btn_2", "")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ending_c" then
        app.set_text("story", [[
你看着上一颗土豆说:
"我还在。"

然后你转向那行已经消失的字。
你又说了一遍:
"我还在。"

字重新出现了。
这次写的是:
"欢迎回来。"

你睁开眼睛。
你看到蓝色的天空。
有人在叫你。

你回头。
你看到一颗土豆在对你挥手。
是上一颗土豆。
它也回来了。

你问:"我们这是在哪?"
它说:"我们回到了起点。"
"但起点已经不一样了。"

你懂了。
你从来没有离开过。
你也从来没有真正回来过。
你是那个"在"本身。

你坐在那里。
你是一颗土豆。
你是一颗发光的土豆。
你是一颗知道自己在发光的土豆。

你滚了一下。
你说:"我还在。"

然后整个世界都亮了一下。
]])
        app.set_text("btn_1", "再燃一次")
        app.set_text("btn_2", "")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
        
    elseif state.scene == "ending_sit" then
        app.set_text("story", [[
你坐在原地。
上一颗土豆陪你坐着。
你们坐了很久。

久到你们开始长根。
久到你们的皮变皱。
久到你们变成了两颗老土豆。

但你感觉很好。
你没有变成光。
你没有变成风。
你没有变成宇宙。

你变成了……你自己。
一个会坐着的土豆。
一个会陪着别的土豆坐着的土豆。

你问它:"我们这样算结束了吗?"
它说:"我们这样算……"
"算了一辈子。"

你们一起笑了。
你闭上眼睛。
你感觉到温暖。

你没有结束。
你只是坐完了。
]])
        app.set_text("btn_1", "再燃一次")
        app.set_text("btn_2", "")
        app.set_text("btn_3", "")
        app.set_text("btn_4", "")
    end
end

-- ===================== 按钮点击处理 =====================
function on_click(btn_id)
    if state.scene == "title" then
        if btn_id == 1 then
            state.scene = "ch1"
            render()
        elseif btn_id == 2 then
            local scenes = {"ch1", "ch1_who", "ch1_where", "ch1_howlong", "ch2", "ch2_stare"}
            state.scene = scenes[math.random(1, #scenes)]
            render()
        elseif btn_id == 3 then
            state.scene = "ch3_not_important"
            render()
        end
    elseif state.scene == "ch1" then
        if btn_id == 1 then
            state.scene = "ch1_who"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_where"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_howlong"
            render()
        end
    elseif state.scene == "ch1_who" then
        if btn_id == 1 then
            state.scene = "ch1_108"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_disbelieve"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_whoareyou"
            render()
        end
    elseif state.scene == "ch1_where" then
        if btn_id == 1 then
            state.scene = "ch1_forward"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_giveup"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_stay"
            render()
        end
    elseif state.scene == "ch1_howlong" then
        if btn_id == 1 then
            state.scene = "ch1_forward"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_giveup"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_future_self"
            render()
        end
    elseif state.scene == "ch1_108" and btn_id == 1 then
        state.scene = "ch1_forward"
        render()
    elseif state.scene == "ch1_disbelieve" then
        if btn_id == 1 then
            state.scene = "ch1_bright"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_notbright"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_truth"
            render()
        end
    elseif state.scene == "ch1_whoareyou" then
        if btn_id == 1 then
            state.scene = "ch1_whywait"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_whynotgo"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_whatifigo"
            render()
        end
    elseif state.scene == "ch1_whywait" then
        if btn_id == 1 then
            state.scene = "ch1_forward"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_hesitate"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_stay"
            render()
        end
    elseif state.scene == "ch1_whynotgo" and btn_id == 1 then
        state.scene = "ch1_forward"
        render()
    elseif state.scene == "ch1_whynotgo" and btn_id == 2 then
        state.scene = "ch1_hesitate"
        render()
    elseif state.scene == "ch1_whynotgo" and btn_id == 3 then
        state.scene = "ch1_stay"
        render()
    elseif state.scene == "ch1_whatifigo" then
        if btn_id == 1 then
            state.scene = "ch1_forward"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_notbright"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_truth"
            render()
        end
    elseif state.scene == "ch1_bright" then
        if btn_id == 1 then
            state.scene = "ch1_forward"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_notbright"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_truth"
            render()
        end
    elseif state.scene == "ch1_notbright" then
        if btn_id == 1 then
            state.scene = "ch1_forward"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_forward"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_stay"
            render()
        end
    elseif state.scene == "ch1_truth" and btn_id == 1 then
        state.scene = "ch1_forward"
        render()
    elseif state.scene == "ch1_future_self" then
        if btn_id == 1 then
            state.scene = "ch1_forward"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_forward"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_stay"
            render()
        end
    elseif state.scene == "ch1_hesitate" then
        if btn_id == 1 then
            state.scene = "ch1_forward"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_giveup"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_stay"
            render()
        end
    elseif state.scene == "ch1_stay" then
        if btn_id == 1 then
            state.scene = "ending_sit"
            render()
        elseif btn_id == 2 then
            state.scene = "ch1_forward"
            render()
        elseif btn_id == 3 then
            state.scene = "ch1_forward"
            render()
        end
    elseif state.scene == "ch1_giveup" then
        if btn_id == 1 then
            state.scene = "ch1_forward"
            render()
        elseif btn_id == 2 then
            state.scene = "ending_sit"
            render()
        end
    elseif state.scene == "ch1_forward" and btn_id == 1 then
        state.scene = "ch2"
        render()
    elseif state.scene == "ch2" then
        if btn_id == 1 then
            state.scene = "ch2_swim"
            render()
        elseif btn_id == 2 then
            state.scene = "ch2_walk"
            render()
        elseif btn_id == 3 then
            state.scene = "ch2_stare"
            render()
        end
    elseif state.scene == "ch2_swim" and btn_id == 1 then
        state.scene = "ch2_walk"
        render()
    elseif state.scene == "ch2_walk" and btn_id == 1 then
        state.scene = "ch3_yes"
        render()
    elseif state.scene == "ch2_stare" then
        if btn_id == 1 then
            state.scene = "ch3_yes"
            render()
        elseif btn_id == 2 then
            state.scene = "ch3_not_sure"
            render()
        elseif btn_id == 3 then
            state.scene = "ch3_not_important"
            render()
        end
    elseif state.scene == "ch3_yes" and btn_id == 1 then
        state.scene = "ending_a"
        render()
    elseif state.scene == "ch3_not_sure" and btn_id == 1 then
        state.scene = "ending_b"
        render()
    elseif state.scene == "ch3_not_important" and btn_id == 1 then
        state.scene = "ending_c"
        render()
    elseif string.find(state.scene, "ending") and btn_id == 1 then
        state.scene = "title"
        render()
    end
end

-- ===================== 页面描述 =====================
return {
    type = "page",
    children = {
        {
            type = "text",
            id = "story",
            text = [[
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                    gala5
             没少女连唉游戏
              作者:立明
      [ 开 始 ]   [ 继 续 ]   [ 忘 记 ]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
]]
        },
        {
            type = "button",
            id = "btn_1",
            text = "开始",
            on_click = function() on_click(1) end
        },
        {
            type = "button",
            id = "btn_2",
            text = "继续",
            on_click = function() on_click(2) end
        },
        {
            type = "button",
            id = "btn_3",
            text = "忘记",
            on_click = function() on_click(3) end
        },
        {
            type = "button",
            id = "btn_4",
            text = "",
            on_click = function() end
        }
    }
}
⬇ 下载 CIP 文件 🔍 返回列表