[RenPy] 纯文本查看 复制代码 default flag_choose_A = False
default flag_choose_B = False
default flag_choose_C = False
#定义全局变换
init python:
def active(event, name, interact=True, **kwargs):
global current_speaker
if not interact:
return
if event == "begin":
current_speaker = name
default current_speaker = None
#定义角色
define s = Character('四野', image='sy', callback=active, cb_name='sy',ctc="ctc",ctc_position="nestled")
define h = Character('和然', image='hr', callback=active, cb_name='hr',ctc="ctc",ctc_position="nestled")
#定义角色立绘高亮、状态
image sy putong:
ConditionSwitch(
"current_speaker == 'sy'", "images/character/sy putong.png",
"current_speaker != 'sy'", im.MatrixColor("images/character/sy putong_1.png", im.matrix.saturation(0.4) * im.matrix.brightness(-0.2)))
zoom 0.8
xanchor 0.59
yanchor 0.66
xpos 1080
ypos 1920
image hr lin:
ConditionSwitch(
"current_speaker == 'hr'", "images/character/hr lin.png",
"current_speaker != 'hr'", im.MatrixColor("images/character/hr lin_1.png", im.matrix.saturation(0.4) * im.matrix.brightness(-0.2)))
zoom 0.8
xanchor 0.59
yanchor 0.66
xpos 1080
ypos 1920
#定义头像
image side hr lin :
"images/head/head hr lin.png"
zoom 0.55
image side sy putong:
"images/head/head sy putong.png"
zoom 0.55
#位置
transform leftsy:
xpos 450
alpha 0.0
linear 0.5 alpha 1
transform rightsy:
xpos 1650
alpha 0.0
linear 0.5 alpha 1
transform righthr:
xpos 1600
alpha 0.0
linear 0.5 alpha 1
transform lefthr:
xpos 550
alpha 0.0
linear 0.5 alpha 1
# 人物cg
image black = "#000"
image white = "#ffffff"
image bg feiqi1:
"images/background/bg feiqi1.png"
zoom 0.5
image bg sy1:
"images/background/bg sy1.png"
zoom 0.5
image bg hr1:
"images/background/bg hr1.png"
zoom 0.5
#背景cg
image bg feiqi2:
"images/background/bg feiqi2.png"
zoom 0.5
image bg feiqi3:
"images/background/bg feiqi3.png"
zoom 0.5
image bg feiqizoulang:
"images/background/bg feiqizoulang.png"
zoom 0.5
#屏幕文本
image credits_text = ParameterizedText (ycenter=0.5,xcenter=0.5,color="#ff0000",size=50,slow_cps=10)
#ctc
image ctc:
"images/ui/ctc.png"
zoom 0.5
|