我是靠谱客的博主 拼搏心情,最近开发中收集的这篇文章主要介绍创造一颗属于你的星球,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

from xes.ext import*
from time import*
q=0
w=0
r=0
t=0
u=0
y=0
qq=0
ww=0
pp=0
ee=0
dd=0
ff=0
newprint("Please select language 请选择你的语言(1.English 英语 2.Chinese 汉语")
ans = input("please enter 请输入:")
if ans == "1":
newprint("Warm reminder, unlock all planets to get the true ending.")
sleep(2)
newprint("In front of you is a rocky planet.")
sleep(2)
newprint("You can choose the elements you want to add to this planet from the given options.")
sleep(2)
newprint("caution:")
sleep(1)
newprint("33[91mEvery step of your choice may affect the fate of this planet.")
sleep(2)
newprint("33[37m ")
while True:
if q == 1:
if w == 1:
if r == 1:
if t == 1:
if u == 1:
if y == 1:
if qq == 1:
if ww == 1:
if pp == 1:
if ee == 1:
if dd == 1:
if ff == 1:
newprint("You used to light up deep space with ghost fire [Ghost]")
sleep(2)
newprint("I also used the deep sea to create nothingness [the deep sea]")
sleep(2)
newprint("Have you used technology to resound through the sky [Machinery]")
sleep(2)
newprint("Also used to fill loneliness with water [Death Star]")
sleep(2)
newprint("You have turned exhaustion into a green abyss [thorns]")
sleep(2)
newprint("I also burned the fire into the sky [Flame]")
sleep(2)
newprint("Have you ever let life embellish the sea of stars[Multiple]")
sleep(2)
newprint("Also let hell invade the world [Hell] ")
sleep(2)
newprint("You used to be like cooking and making incense [Civilization]")
sleep(2)
newprint("Also made time go back and forth [restart]")
sleep(2)
newprint("You have made plants all over the field [Order]")
sleep(2)
newprint("It also caused the star fans to lose the other side[Crash]")
sleep(2)
newprint("You used to make the sun shine on Hongyu [Universe]")
sleep(2)
newprint("Not only created life, but also created destruction.")
sleep(3)
newprint("Every step of your choice affects the destiny of this planet.")
sleep(3)
newprint("The dust settles, although everything will disappear in time, but at this moment, everything belongs to you.")
sleep(3)
newprint("You are the creator; ")
sleep(1)
newprint("You are,")
sleep(1)
newprint("Creation God.")
sleep(1)
break
newprint("33[34mwater")
sleep(1)
newprint("33[31mfire ")
sleep(1)
newprint("33[32mwood")
sleep(1)
newprint("33[37m ")
choose=input("Your options are:")
if choose == "water":
s=1
newprint("Liquid water appeared and covered the surface of the planet at an extremely fast rate.")
newprint("He is the “primitive soup” on this planet.")
newprint("Once the conditions are right, life has a great probability of being born in it.")
newprint("33[37m ")
sleep(1)
newprint("33[31mfire ")
sleep(1)
newprint("33[32mwood")
sleep(1)
newprint("33[37m ")
choose1=input("Your options are:")
if choose1 == "fire":
newprint("The flames burned the planet, but a huge explosion occurred because of the incompatible water and fire.")
newprint("The big planet split in this explosion.")
newprint("The fragmented fragments turned into several small planets.")
newprint("33[37m ")
sleep(1)
newprint("33[31msun ")
sleep(1)
newprint("33[32mwood")
sleep(1)
newprint("33[37m ")
choose4=input("Your options are:")
if choose4 == "wood":
newprint("Rain water can bring a humid environment suitable for life, and flame can bring warmth and light.")
newprint("More plants can grow on the small planet and gradually flourish.")
newprint("Under the influence of their respective environments.")
newprint("Plants on different planets are evolving in different directions.")
newprint("In the end, a completely different landscape was born on each small planet.")
newprint("33[33mGet the ending: Diverse")
q=1
if choose4 == "sun":
newprint("The sun is born.")
newprint("Under the action of gravity, many planets move in an orderly manner.")
newprint("They keep hitting, breaking down, capturing.")
newprint("In the end, the eight planets formed a stable system“the solar system”.")
newprint("Among them, the third planet from the inside to the outside has moderate temperature, volume and mass.")
newprint("This may be the beginning of everything.")
newprint("33[33mGet the ending: World")
w=1
if choose1 == "wood":
newprint("Primitive aquatic plants appeared in the water.")
newprint("At the same time, under the double erosion of root system and running water.")
newprint("The topography of the underwater is quietly changing.")
newprint("The erosion of water makes the terrain more and more complex.")
newprint("The proliferation of aquatic plants also makes the surface of the planet bid farewell to loneliness for a while.")
newprint("33[37m ")
sleep(1)
newprint("33[31mfire")
sleep(1)
newprint("33[37mVoid")
sleep(1)
newprint("33[37m ")
choose2=input("Your options are:")
if choose2 == "fire":
newprint("The water is overwhelming and the fire scorches and starts to evaporate.")
newprint("Gradually, only dead plants and dry terrain remained on the surface of the planet.")
newprint("It is a miracle that some aquatic plants have evolved into blue ghost plants under the infestation of flames.")
newprint("The little light they emit shows the last tenacity of this planet.")
newprint("33[94mGet the ending: Ghost")
r=1
if choose2 == "Void":
newprint("The water flow and the intertwined plant roots are constantly eroding the surface of the planet.")
newprint("The hard surface is gradually disintegrated, turning into small particles floating in the water.")
newprint("In the end, water completely replaced the entire planet.")
newprint("Only the lush plants floating around in the waters are still growing silently.")
newprint("33[34mReached the ending: Deep Sea")
t=1
if choose == "fire":
newprint("The fierce flames scorched the earth, and the hot air weathered the rocks.")
newprint("Caves created by ground collapse.")
newprint("The gust of wind smashed the gravel.")
newprint("Flame burning to refine minerals.")
newprint("Violent physical and chemical reactions proceed like a raging fire in the flames.")
newprint("33[37m ")
sleep(1)
newprint("33[34mwater")
sleep(1)
newprint("33[32mGrass")
sleep(1)
newprint("33[37m ")
b=input("Your options are:")
if b == "water":
newprint("A rain can not only calm the flames.")
newprint("It also brings hope of life to the planet.")
newprint("The gravel was wetted into soil, and rivers and lakes began to appear on the ground.")
newprint("33[37m ")
sleep(1)
newprint("33[31mLava")
sleep(1)
newprint("33[32mwood")
sleep(1)
newprint("33[37m ")
c11=input("Your options are:")
if c11 == "wood":
newprint("Soil and water, light and heat.")
newprint("All this constitutes a breeding ground for civilization.")
newprint("And the plants arrived on time at this perfect time.")
newprint("Soon, all kinds of plants are flourishing on the planet.")
newprint("Everything seems to be thriving, and you will also be faced with the last choice.")
newprint("Is it to continue to develop your world with instructions, or to end the creation and take it as you see it?.")
newprint("33[37m")
sleep(1)
newprint("33[34mend")
sleep(1)
newprint("33[31minstruction")
sleep(1)
newprint("33[37m")
v=input("Your options are:")
if v == "instruction":
newprint("Commands bring new possibilities for this planet.")
newprint("In an error, an error square was generated on this planet.")
newprint("The error cube quickly infects the entire continent and the entire planet.")
newprint("In this world born of mistakes, even time comes to an abrupt end.")
newprint("All traces of existence are eternal in chaos.")
newprint("33[35mGet the ending: Collapse.")
u=1
if v == "end":
newprint("You did nothing.")
newprint("You maintain the balance of the world.")
newprint("The world continues to operate according to the laws you created.")
newprint("Tired of challenges, evolution and uncertainty, you are satisfied with it all.")
newprint("You are enjoying all this quietly, and your heart is at peace.")
newprint("This may not be the best ending, but it is enough.")
newprint("33[34mGet the ending: continue")
i=1
if c11 == "Lava":
newprint("The aftermath of the initial flames was not exhausted, and the billowing heat wave made a comeback.")
newprint("The water was all transferred underground, and the magma filled the lakes and rivers.")
newprint("The soil hardened by heat to become scarlet hell rock.")
newprint("All development finally came to an end in the hell scene.")
newprint("33[31mGet the ending: Hell")
y=1
if b == "Grass":
newprint("Barrenness can never suppress the power of life, even if the environment is bad.")
newprint("Cacti quickly spread across the sands of the planet.")
newprint("Brings a touch of green to the hot planet.")
newprint("33[37m")
sleep(1)
newprint("33[34mwater")
sleep(1)
newprint("33[34mTechnology")
sleep(1)
newprint("33[37m")
c=input("Your options are:")
if c == "water":
newprint("A rain is long overdue.")
newprint("But the original owner refused to allow his territory to be invaded by other plants.")
newprint("Under the nourishment of rain, the cactus began to expand wildly.")
newprint("Eventually spread all over the planet.")
newprint("The planet gains vitality and rebirth because of life.")
newprint("Will also fall into silence and loneliness because of life.")
newprint("33[32mGet the ending: Thorns")
qq=1
if c == "Technology":
newprint("You added technology to this planet, and you believe that technology can also change the world.")
newprint("The planet is full of all kinds of non-stop technology machinery.")
newprint("The roar is endless, day and night.")
newprint("Maybe this is another form of prosperity...")
newprint("33[32mGet the ending: Mechanical")
ww=1
if choose == "wood":
newprint("Barrenness can never suppress the power of the planet.")
newprint("The huge tree roots clinging to the rock, penetrating the ground, standing stubbornly.")
newprint("This tree may be able to bring new life to this planet.")
newprint("33[37m ")
sleep(1)
newprint("33[34mwater")
sleep(1)
newprint("33[31mfire")
sleep(1)
newprint("33[37m ")
choose5=input("Your options are:")
if choose5 == "water":
newprint("The appearance of water brings vitality to the trees.")
newprint("Under the nourishment of rainfall, the branches and buds of the World Tree began to grow.")
newprint("The planet and the tall trees influence each other, and the tall trees grow more and more prosperous.")
newprint("The planet’s environment is gradually becoming better.")
newprint("33[37m")
sleep(1)
newprint("33[34mHumanity")
sleep(1)
newprint("33[31mfire")
sleep(1)
newprint("33[37m")
c1=input("Your options are:")
if c1 == "fire":
newprint("The flames burned the earth, and the water was quickly evaporated.")
newprint("But the world tree will not be easily destroyed by flames.")
newprint("He embraces the flame, the leaves change from pale green to fiery red.")
newprint("The branches and leaves that extend upward are like huge flames.")
newprint("It's like roaring at the unfair destiny.")
newprint("This planet is burning in the universe.")
newprint("33[31mGet the ending: Blaze.")
dd=1
if c1 == "Humanity":
newprint("Root growth, river erosion, plate movement.")
newprint("To produce topography and landforms on the surface.")
newprint("The fertile delta plain became a breeding ground for civilization.")
newprint("The world’s first civilization was born here.")
newprint("People thrive and settle down.")
newprint("Record their tracks with words and art.")
newprint("The breath of civilization has brought new vitality to the planet.")
newprint("33[32mGet the ending: Civilization")
ff=1
if choose5 == "fire":
newprint("Flames burn the earth.")
newprint("The new root system is difficult to withstand the erosion of flames, and all are reduced to ashes.")
newprint("The tree of the world that runs through the entire planet, penetrating the surface and leaving obvious traces of growth.")
newprint("As the flames raged and swallowed, the whole planet was reborn and riddled with holes.")
newprint("33[37m
")
sleep(1)
newprint("33[34mwater")
sleep(1)
newprint("33[32mtime")
sleep(1)
newprint("33[37m ")
choose6=input("Your options are:")
if choose6 == "water":
newprint("The rain is long overdue, but there is no sign of life on this planet.")
newprint("The torrential rain accumulated by the sun and the moon caused the rain to replace the hollowed-out interior of the planet.")
newprint("Excess water floats around in the air.")
newprint("But there is no more life to enjoy this nourishment.")
newprint("The planet will be silent forever.")
newprint("33[31mAchievement Obtained:Dead planet")
pp=1
if choose6 == "time":
newprint("Before eternal time.")
newprint("No matter how long the process is, it is only a moment in the end.")
newprint("The fragile hollow planet gradually collapsed into fragments.")
newprint("Later, the fragments gathered together due to gravity and became a new planet.")
newprint("33[35mGet the ending: restart")
ee=1
if ans == "2":
newprint("温馨提示,所有星球解锁可以获得真结局哦~")
sleep(2)
newprint("在你面前的是一颗岩石星球")
sleep(2)
newprint("你可以在给定的选项中,选择你想添加在这颗星球的元素")
sleep(2)
newprint("请注意")
sleep(1)
newprint("33[91m你的每一步选择都可能会影响这颗星球的命运")
sleep(2)
newprint("33[37m ")
while True:
if q == 1:
if w == 1:
if r == 1:
if t == 1:
if u == 1:
if y == 1:
if qq == 1:
if ww == 1:
if pp == 1:
if ee == 1:
if dd == 1:
if ff == 1:
newprint("你曾用幽火点亮深空【幽灵】")
sleep(2)
newprint("也曾用深海创造虚无【深海】")
sleep(2)
newprint("你曾用科技响彻苍穹【机械】")
sleep(2)
newprint("也曾用水域填补孤独【死星】")
sleep(2)
newprint("你曾将枯竭化为绿渊【荆棘】")
sleep(2)
newprint("也曾将烈火炽烤长空【烈焰】")
sleep(2)
newprint("你曾让生命点缀星海【多元】")
sleep(2)
newprint("也曾让地狱侵染人间【地狱】")
sleep(2)
newprint("你曾令人类炊火生香【文明】")
sleep(2)
newprint("也曾令时间轮回往复【重启】")
sleep(2)
newprint("你曾使植物遍布原野【秩序】")
sleep(2)
newprint("也曾使星球迷失彼方【崩坏】")
sleep(2)
newprint("你曾使艳阳光照宏宇【宇宙】")
sleep(2)
newprint("既创造了生命,亦创造了灭亡。")
sleep(3)
newprint("你的每一步选择,都影响着这颗星球的命运。")
sleep(3)
newprint("尘埃落定,尽管一切都将消逝在时光中,但在此时,一切都属于你。")
sleep(3)
newprint("你,是造物主;")
sleep(1)
newprint("你是,")
sleep(1)
newprint("创世神。")
sleep(1)
break
newprint("33[37m ")
sleep(1)
newprint("33[34m水")
sleep(1)
newprint("33[31m火")
sleep(1)
newprint("33[32m木")
sleep(1)
newprint("33[37m ")
choose=input("你的选择是:")
if choose == "水":
s=1
newprint("液态水出现,并以极快的速度覆盖了星球的表面")
newprint("他就是这个星球上的“原始汤”")
newprint("一旦条件适宜,生命就有极大地概率诞生在其中")
newprint("33[37m ")
sleep(1)
newprint("33[31m火")
sleep(1)
newprint("33[32m木")
sleep(1)
newprint("33[37m ")
choose1=input("你的选择是:")
if choose1 == "火":
newprint("烈焰灼烧星球,却因为水火不容发生了巨大的爆炸")
newprint("大星球在这场爆炸中裂解")
newprint("裂解后的碎片变成了几个小星球")
newprint("33[37m ")
sleep(1)
newprint("33[31m太阳")
sleep(1)
newprint("33[32m木")
sleep(1)
newprint("33[37m ")
choose4=input("你的选择是:")
if choose4 == "木":
newprint("雨水能带来宜生的湿润环境,火焰能带来温暖和光明")
newprint("更多的植物得以在小星球上生长,并逐渐繁茂")
newprint("在各自环境的影响下")
newprint("不同星球上的植物,向着不同的方向进化")
newprint("最终,每个小星球上,都诞生了完全不同得景观")
newprint("33[33m获得结局:多元")
q=1
if choose4 == "太阳":
newprint("太阳诞生了")
newprint("在引力的作用下,众多行星有序运动起来")
newprint("他们不断撞击、分解、捕获")
newprint("最终,由八大行星形成了一个稳定的体系——太阳系")
newprint("其中,由内到外数第三颗行星有着适中的温度,体积和质量")
newprint("这,也许就是一切的开端")
newprint("33[33m获得结局:世界")
w=1
if choose1 == "木":
newprint("水中出现了原始的水生植物")
newprint("同时,在根系和流水的双重侵蚀下")
newprint("水底的地貌正在悄悄发生着改变")
newprint("水体的侵蚀,使地形越来越复杂")
newprint("水生植物的繁衍,也让星球表面暂时告别了孤寂")
newprint("33[37m ")
sleep(1)
newprint("33[31m火")
sleep(1)
newprint("33[37m虚空")
sleep(1)
newprint("33[37m ")
choose2=input("你的选择是:")
if choose2 == "火":
newprint("水不胜烈火的烧灼,开始蒸发")
newprint("渐渐地,这颗星球的表面,只剩下了枯死的植物和干涸的地形")
newprint("堪称奇迹的是,有些水生植物在火焰的侵染下,竟然进化成了蓝色的幽灵植物")
newprint("它们发出的点点幽光,展示着这颗星球最后的顽强")
newprint("33[94m获得结局:幽灵")
r=1
if choose2 == "虚空":
newprint("水流与盘根错节的植物根系,不断侵蚀着星球的表面")
newprint("坚硬的地表被渐渐瓦解,变成小颗粒漂浮在水中")
newprint("最后,水完全取代了整颗星球")
newprint("只有浮动在水域各处的茂盛植物还在默默生长")
newprint("33[34m达成结局:深海")
t=1
if choose == "火":
newprint("凶猛的火焰炙烤着大地,炙热的气流风化了岩石。")
newprint("地表塌陷产生洞窟")
newprint("狂风呼啸粉碎砂砾")
newprint("烈焰燃烧提炼矿物")
newprint("剧烈的物理和化学反应,在火焰中如火如荼地进行着")
newprint("33[37m ")
sleep(1)
newprint("33[34m水")
sleep(1)
newprint("33[32m草")
sleep(1)
newprint("33[37m ")
b=input("你的选择是:")
if b == "水":
newprint("一场降雨不但可以平息火焰的躁动")
newprint("还给星球带来了生命的希望")
newprint("砂砾被谁湿润变成了土壤,地面上开始出现河流与湖泊")
newprint("33[37m ")
sleep(1)
newprint("33[31m岩浆")
sleep(1)
newprint("33[32m木")
sleep(1)
newprint("33[37m ")
c11=input("你的选择是:")
if c11 == "木":
newprint("土壤和水,光和热")
newprint("这一切构成了孕育文明的温床")
newprint("而植物又在这完美的时机下准时到来")
newprint("很快,各种植物都在星球上茂盛生长")
newprint("一切似乎欣欣向荣,而你也将面临着最后一项选择")
newprint("是用指令继续发展你的世界,还是结束创造,见好就收?")
newprint("33[37m")
sleep(1)
newprint("33[34m结束")
sleep(1)
newprint("33[31m指令")
sleep(1)
newprint("33[37m")
v=input("你的选择是:")
if v == "指令":
newprint("指令为这颗星球带来的新的可能性")
newprint("在一个失误中,这颗星球上生成了一个错误方块")
newprint("错误方块很快侵染了整片大陆,感染了整个星球")
newprint("在这个因错误而诞生的世界里,即使时间也戛然而止")
newprint("一切存在的踪迹,都在混沌中永恒")
newprint("33[35m获得结局:崩坏")
u=1
if v == "结束":
newprint("你什么也没有做")
newprint("你维持着世界的平衡")
newprint("这个世界按照你创造的规律持续运作着")
newprint("厌倦了挑战、进化与不确定性得你,对这一切感到满意")
newprint("你静静地享受着这一切,内心平静")
newprint("这可能不是最好的结局,但已经足够了")
newprint("33[34m获得结局:持续")
i=1
if c11 == "岩浆":
newprint("最初的火焰余威未尽,滚滚的热浪卷土重来")
newprint("水全部转移到了地下,岩浆填满了湖泊和河流")
newprint("泥土受热硬化成为猩红的地狱岩")
newprint("一切的发展最终在地狱的场景里画上了句号")
newprint("33[31m获得结局:地狱")
y=1
if b == "草":
newprint("贫瘠永远无法压制生命的力量,即使环境恶劣")
newprint("仙人掌很快就遍布了星球的各个沙地")
newprint("为燥热的行星带来了一丝绿意")
newprint("33[37m")
sleep(1)
newprint("33[34m水")
sleep(1)
newprint("33[34m科技")
sleep(1)
newprint("33[37m")
c=input("你的选择是:")
if c == "水":
newprint("一场降雨姗姗来迟")
newprint("但是原来的主人拒绝让自己的领地被其他植物侵犯")
newprint("在雨水的滋润下,仙人掌开始疯狂扩张")
newprint("最终遍布了整颗星球")
newprint("星球因为生命而获得活力与新生")
newprint("也将因生命而陷入沉寂与孤独")
newprint("33[32m获得结局:荆棘")
qq=1
if c == "科技":
newprint("你为这颗星球添加了科技,你相信科技也能改变世界")
newprint("星球上布满了各种不停运作的科技机械")
newprint("轰鸣不止,日夜无息")
newprint("也许,这就是繁荣的另一种形态吧....")
newprint("33[32m获得结局:机械")
ww=1
if choose == "木":
newprint("贫瘠永远无法压制星球的力量")
newprint("巨大的树根紧抓岩石,穿透地表,顽强屹立着")
newprint("这棵树也许能为这颗星球带来新生的可能")
newprint("33[37m ")
sleep(1)
newprint("33[34m水")
sleep(1)
newprint("33[31m火")
sleep(1)
newprint("33[37m ")
choose5=input("你的选择是:")
if choose5 == "水":
newprint("水的出现,给树木带来了活力")
newprint("在降雨的滋养下,世界之树的枝芽开始生长")
newprint("星球和高树互相影响着,高树生长得越来越茂盛")
newprint("星球的环境也渐渐变得优越")
newprint("33[37m")
sleep(1)
newprint("33[34m人类")
sleep(1)
newprint("33[31m火")
sleep(1)
newprint("33[37m")
c1=input("你的选择是:")
if c1 == "火":
newprint("火焰灼烧大地,水很快被蒸发殆尽")
newprint("但世界之树不会轻易被烈焰摧毁")
newprint("他拥抱着火焰,树叶由苍绿色转化为火红色")
newprint("向上延伸的枝叶如同巨大的火焰")
newprint("像是对不公的命运发出不去怒吼")
newprint("这颗星球,在宇宙中熊熊燃烧")
newprint("33[31m获得结局:烈焰")
dd=1
if c1 == "人类":
newprint("根系的生长,河流的冲刷,板块的运动")
newprint("使地表产生了地形和地貌")
newprint("肥沃的三角洲平原成为了孕育文明的温床")
newprint("世界上第一个文明在这里诞生")
newprint("人们繁衍生息,立业安家")
newprint("用文字和艺术记录着他们的踪迹")
newprint("文明的气息给星球带来了新的活力")
newprint("33[32m获得结局:文明")
ff=1
if choose5 == "火":
newprint("火焰灼烧大地")
newprint("新生的根系难以抵御火焰的侵蚀,尽数化为灰烬")
newprint("贯穿整个星球的世界之树,穿透地表留下了明显的生长痕迹")
newprint("随着火焰肆无忌惮的吞噬,整颗星球都变得千疮百孔")
newprint("33[37m ")
sleep(1)
newprint("33[34m水")
sleep(1)
newprint("33[32m时间")
sleep(1)
newprint("33[37m ")
choose6=input("你的选择是:")
if choose6 == "水":
newprint("雨水姗姗来迟,可这颗星球上已经没有了生命的迹象")
newprint("日月积累的滂沱大雨,使雨水替代了星球被掏空的内部")
newprint("多余的水漂浮环绕在空中 ")
newprint("但再也没有任何生命来享受这种滋养了")
newprint("这颗星球将永久沉寂")
newprint("获得成就:死星")
pp=1
if choose6 == "时间":
newprint("在永恒的时间面前")
newprint("无论多么漫长的过程,终究只是一个瞬间")
newprint("脆弱的空洞星球逐渐崩塌,化为碎片")
newprint("更久以后,碎片因引力聚集在一起,成为了新的星球")
newprint("33[35m获得结局:重启")
ee=1

最后

以上就是拼搏心情为你收集整理的创造一颗属于你的星球的全部内容,希望文章能够帮你解决创造一颗属于你的星球所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(48)

评论列表共有 0 条评论

立即
投稿
返回
顶部