我最后的码
第一个进入选择界面的码
[RenPy] 纯文本查看 复制代码 label home2:
hyi "下面开始养成界面的测试"
hyi "假设我们为了高考学习吧w"
hyi "现在我们的成绩是0"
hyi "如果学习后的数值大于50,则这次学的还不错,会显示学的不错!"
show screen screen2
第二个选择界面
[RenPy] 纯文本查看 复制代码 screen screen2:
zorder 15
$ quick_menu = False
add "images/system/sys_back.png"
imagebutton idle "images/system/sports.png" focus_mask True
imagebutton idle "images/system/science.png" action[Call("science")] focus_mask True
imagebutton idle "images/system/rest.png" focus_mask True
imagebutton idle "images/system/game.png" action [Call("game")] focus_mask True
imagebutton idle "images/system/liberal_arts.png" action [Call("liberal_arts")] focus_mask True
imagebutton idle "images/system/outdoor_act.png" action [Call("outdoor_act")] focus_mask True
imagebutton idle "images/system/club.png" action [Call("club")] focus_mask True
第三个选择界面(部分)
[RenPy] 纯文本查看 复制代码 label science:
screen science:
zorder 20
$ quick_menu = False
add "images/system/science_back.png"
imagebutton idle "images/system/phy.png" hover "images/system/phy_hover.png" action[Hide("screen2"),Jump("phy1"),SetVariable("phy",phy+1)] focus_mask True
imagebutton idle "images/system/math.png" hover "images/system/math_hover.png" action[Hide("screen2"),Jump("math1"),SetVariable("math",math+1)] focus_mask True
imagebutton idle "images/system/com.png" hover "images/system/com_hover.png" action[Hide("screen2"),Jump("com1"),SetVariable("com",com+1)] focus_mask True
imagebutton idle "images/system/che.png" hover "images/system/che_hover.png" action[Hide("screen2"),Jump("che1"),SetVariable("che",che+1)] focus_mask True
imagebutton idle "back_navi.png" action Return() focus_mask True
call screen science
return
label phy1:
$ randomnumber = renpy.random.randint(1, 100)
$ phy = phy + randomnumber
if randomnumber >= 50:
$ show_quick_menu = True
"学的不错!"
elif randomnumber <= 50:
$ show_quick_menu = True
"学的是个jb"
"你现在的物理成绩:[phy]"
return
|