# 游戏的脚本可置于此文件中。 # 声明此游戏使用的角色。颜色参数可使角色姓名着色。 define me = Character("任懿涛", color="#71b4e4", what_slow_cps=19, who_outlines=[(1, "#565656", 0, 0)]) define xingyu = Character("陈星宇", color="#cff3ff", what_slow_cps=19, who_outlines=[(1, "#565656", 0, 0)]) define lhy = Character("刘泓予", color="#ffc052", what_slow_cps=13, who_outlines=[(1, "#565656", 0, 0)]) define lzx = Character("李泽瑄", color="#631e2c", what_slow_cps=18, who_outlines=[(1, "#875a5a", 0, 0)]) #631e2c define xwhy = Character("徐卫浩宇", color="#9dffdb", who_outlines=[(1, "#565656", 0, 0)]) define xiaowei = Character("林晓薇", color="#f4a7b9", what_slow_cps=22, who_outlines=[(1, "#565656", 0, 0)]) define xiaowei_w = Character("薇风拂晓", color="#f4a7b9", what_slow_cps=19, who_outlines=[(1, "#565656", 0, 0)]) define system_ = Character("系统提示", what_slow_cps=50) define mom = Character("妈妈", color="#000000") define yutong = Character("苏雨桐", color="#69cae7", what_slow_cps=17, who_outlines=[(1, "#717171", 0, 0)]) define yh = Character("颜涵", color="#d4b8e0", what_slow_cps=18) define me_w = Character("逍遥剑客", color="#71b4e4", what_slow_cps=19, who_outlines=[(1, "#565656", 0, 0)]) define tongxue = Character("同学", color="#b8b8b8", what_slow_cps=20, who_outlines=[(1, "#2a2a2a", 0, 0)]) define ganshi = Character("宣传部干事", color="#90c090", what_slow_cps=19, who_outlines=[(1, "#404040", 0, 0)]) # ====== 角色数据字典 ====== # 任懿涛 - 指数0-10 default tao_stats = { "selfAcceptance": 0, # 自我接纳度 "humorSense": 0, # 幽默感指数 "studyStress": 0 # 学业压力值 } # 刘泓予 - 指数0-100 default lhy_stats = { "affection": 0, # 好感度 "trust": 0, # 信任度 "empathy": 0 # 情绪共鸣度 } # 陈星宇 - 指数0-100 default xingyu_stats = { "affection": 0, # 好感度 "cooperation": 0, # 合作度 "helpfulness": 0 # 帮助度 } # 林晓薇 - 指数0-100 default xiaowei_stats = { "affection": 0, # 好感度 "synergy": 0, # 游戏默契度 "interactionFrequency": 0, # 互动频率 "is_xiaowei_w": False } # 苏雨桐 - 指数0-100 default yutong_stats = { "affection": 0, # 好感度 "attention": 0, # 关注度 "h_academicSupport": 0, # 学习支持度(hidden) } # 颜涵 - 指数0-100 default yh_stats = { "affection": 0, # 好感度 "understanding": 0, # 理解度 "support": 0 # 支持度 } # 徐卫浩宇 - 指数0-100 default xwhy_stats = { "affection": 0, # 好感度 "reliance": 0, # 依赖度 "helpfulness": 0 # 帮助度 } # lzx - 指数0-10 default lzx_stats = { "infoOpenness": 0, # 信息开放度 } # ====== 其他全局变量 ====== default flag = { } # ====== 时间系统变量 ====== default game_day = 1 # 游戏内日期(第几天) default game_period = "morning" # 可选值:morning / afternoon / after_school / evening / night default game_start_year = 2029 default game_start_month = 9 default game_start_day = 3 # Day 1 = 2029年9月3日(开学周一) # ====== 画廊系统变量 ====== default persistent.gallery_seen = set() # 已查看的照片 id 集合 default gallery_photo4_unlocked = False # "力学之美"照片解锁标志 # ====== 可选:总字典管理(便于批量操作) ====== ''' default all_characters = { "tao": tao_stats, "lhy": lhy_stats, "xingyu": xingyu_stats, "xiaowei": xiaowei_stats, "xiaowei_w": xiaowei_w_stats } ''' # 定义转换效果 transform shake_rotate: linear 0.1 xoffset -10 rotate -2 linear 0.1 xoffset 10 rotate 2 linear 0.1 xoffset -10 rotate -2 linear 0.1 xoffset 10 rotate 2 linear 0.1 xoffset 0 rotate 0 transform c1s2_ryt_pos: xpos 0.67 ypos 0.6 xanchor 0.5 yanchor 0.5 transform c1s4_ryt_pos: xpos 0.6 ypos 0.78 xanchor 0.5 yanchor 0.5 transform slide_right(distance=200, duration=1.0): ease duration xoffset distance transform zoom_to_upper_right: # 初始状态 zoom 1.0 xalign 0.5 yalign 0.5 # 快速放大并向左下偏移(画面看起来往右上移动) ease 0.3 zoom 1.7 xalign 0.6 yalign 0.2 #label before_main_menu: # $ renpy.music.play("andio/MainMenu.ogg", loop=True, fadein=2.0) # 游戏在此开始。 label start: # stop music fadeout 1.0 jump Chapter1_Scene1 # 此处为游戏结尾。 return