马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
本帖最后由 怀念丶落樱 于 2022-1-15 14:38 编辑
[RenPy] 纯文本查看 复制代码 define kacang_1 = "100000"
label start:
call screen a1
return
screen a1:
add "europe.jpg"
draggroup:
drag:
drag_name "1"
child "ivy.png"
droppable False
drag_raise True
dragged a1
xpos 700 ypos 600
drag:
drag_name "3"
child "ivy.png"
#droppable False
dragged a3
xpos 500 ypos 300
drag:
drag_name "4"
child "ivy.png"
#droppable False
dragged a4
xpos 300 ypos 300
draggroup:
drag:
drag_name "2"
child "ivy.png"
droppable False
dragged a2
xpos 900 ypos 600
drag:
drag_name "3"
child "ivy.png"
#droppable False
dragged a3
xpos 500 ypos 300
drag:
drag_name "4"
child "ivy.png"
#droppable False
dragged a4
xpos 300 ypos 300
fixed:
textbutton "确定":
xpos 150 ypos 450
text_size 25 text_outlines [(absolute(2),"#000",absolute(0),absolute(0))]
text_color "BBBABB"
text_hover_color "99F9FF"
#hovered Jump ("b1")
action Jump ("b1")
init python:
def a1(drags, drop):
if not drop:
drags[0].snap(700 , 600, 0.1)
return
def a2(drags, drop):
if not drop:
drags[0].snap(900 , 600, 0.1)
return
def a3(drags, drop):
if not drop:
drags[0].snap(500 , 300, 0.1)
return
def a4(drags, drop):
if not drop:
drags[0].snap(300 , 300, 0.1)
return
阴影为重叠处
|