Score
0
Watch 25 Star 104 Fork 12

Gitee星球的小活动 / 第 0 届 代码编故事接力赛

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
让我们点燃程序员写作之魂,一人用代码写一段故事玩玩吧~ spread retract

Clone or download
XAE-Worldside 2.60 KB
Copy Edit Web IDE Raw Blame History
LaurenceSisung authored 2020-03-23 20:09 . add XAE-Worldside.
// 编程语言:XAE(一种插件语言)
// 故事主题:那天,我看到了世界的尽头...
// 故事正式开始
window //世界一片花白...
(me)wake_up //睡梦中苏醒
(me)say "这...是什么?"
mem fireball = show %FireBall% //突然出现一个火球
(%fireball%)run_near %me% //火球向我逼近
(me)feel (person(feeling))%afraid% //我感到害怕
(me)say_aloud "啊!..." //我喊:“啊”
shell //眼前一片黑暗
(world)dayset 2 //时间:第二天
(world)timeset morning //早晨
(me)window //眼前一片花白
mem unknown = create person //神秘人出现
(unknown)init //神秘人:无从得知。无中生有,有中生无。
%age% = (data)%UNKNOWN%
%from% = (data)%UNKNOWN%
(unknown)run_near %me% //神秘人向我接近
(me)say "你...是谁?你要干...干什么???"
(unknown)say "没事,我将会带你见识一个好地方。"
(me)say "好...好吧???!"
(me)think "也只能这样了..."
(me)run_follow %unknown%
// 深层世界
(runtime)low-level-code
using System;
using DeepWorld;
using XAERuntime.RuntimeVars;
namespace Program
{
class XAERuntimeLLC
{
void XAERuntimeMain()
{
Console.WriteLine("*********MY WORLD*************");
I.Say("这...是...");
unknown.Say("不要担心.这是深层世界.你即将进入被压缩的世界.那里,才是世界.真正的世界.真相.");
XAEVars.GoTo(XAEVars.GetCycle(1)); //被压缩的世界
}
}
}
// 被压缩的世界
mem zipworld = create cycle
(zipworld)init
%id% = 1
%name% = (zipworld)
%length% = 5 // 普通世界的长度是100
(zipworld)newcycletarget
%name% = "第一压缩世界的第一次循环"
(%do%)init
(world)show "欢迎.这里是真理之乡.来到我的怀里,孩子.你,难道忘记了什么?"
(me)think "我...仿佛听到了谁的声音...这个人是...拉比亚!"
(world)show "没错.我是拉比亚,可是你呢?想想我,你还认识我吗?"
(me)thinkabout_hard %LABIASELF% //努力陷入回忆
(me)cycletargetchange "第一压缩世界的第二次循环"
(zipworld)newcycletarget
%name% = "第一压缩世界的第二次循环"
(%do)init
(world)show "欢迎.这里是虚假城.离开这里吧,不要靠近这里.一切,终将沦陷..."
(me)think "我...仿佛听到了谁的声音...我...我想不起来了!曾似相识,却无法感知..."
(me)getthing "时间没有流淌...还是缓慢了许多...?"

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/Selected-Activities/Code-relay.git
git@gitee.com:Selected-Activities/Code-relay.git
Selected-Activities
Code-relay
第 0 届 代码编故事接力赛
master

Help Search

220309 7019f5b6 1899542 220318 4015cbb9 1899542