File tree Expand file tree Collapse file tree
script_library/scripts/basic Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import random
2+ import time
3+
4+ def slow_print (text , delay = 0.04 ):
5+ for char in text :
6+ print (char , end = "" , flush = True )
7+ time .sleep (delay )
8+ print ()
9+
10+ def start_game ():
11+ slow_print ("=== 新月之下 · 黑水之城 ===" , 0.06 )
12+ slow_print ("你是韩雅诺。" )
13+ slow_print ("深夜,你站在阿卡普尔科的街头。" )
14+ slow_print ("海风带着血腥味,城市在毒枭的阴影里沉睡。" )
15+ slow_print ("你来找你的男朋友——陈海鸥。" )
16+ slow_print ("他失踪了。" )
17+ print ()
18+
19+ slow_print ("你面前有三条路:" )
20+ slow_print ("1. 走进黑暗的小巷(传闻海鸥最后出现的地方)" )
21+ slow_print ("2. 走向海边码头(海鸥常去的地方)" )
22+ slow_print ("3. 躲进废弃酒吧(你和海鸥曾一起待过的据点)" )
23+
24+ while True :
25+ choice = input ("\n 选择(1/2/3):" )
26+ if choice in ["1" , "2" , "3" ]:
27+ break
28+ slow_print ("请输入 1、2 或 3。" )
29+
30+ if choice == "1" :
31+ alley_path ()
32+ elif choice == "2" :
33+ dock_path ()
34+ else :
35+ bar_path ()
36+
37+ def alley_path ():
38+ slow_print ("\n 你走进小巷,黑暗中传来低沉的呼吸声。" )
39+ slow_print ("突然,四个黑影拦住了你。" )
40+ slow_print ("他们是黑水组织的人。" )
41+ slow_print ("其中一人冷笑:“韩雅诺,你在找陈海鸥?”" )
42+ print ()
43+ fight_or_flee ()
44+
45+ def dock_path ():
46+ slow_print ("\n 海风冰冷,海浪拍打着码头。" )
47+ slow_print ("你看到远处有一艘船,上面站着一个熟悉的身影——" )
48+ slow_print ("是陈海鸥!" )
49+ slow_print ("但他被人押着 ,动弹 ...
You can’t perform that action at this time.
0 commit comments