[renpy] 자동으로 아래로 내려가는 엔딩크레딧
2022. 11. 22. 19:29
label credit:
image cred = Text("{color=#fff}"+credits_s+"{/color}", text_align=0.5)
image theend = Text("{size=80}{color=#fff}The End{/color}{/size}", text_align=0.5)
$ credits_speed = 30 #scrolling speed in seconds
scene bg black with dissolve
show cred at Move((0.5, 4.3), (0.5, 0.0), credits_speed, repeat=False, bounce=False, xanchor="center", yanchor="bottom")
show theend:
yanchor 0.5 ypos 0.5
xanchor 0.5 xpos 0.5
with dissolve
$renpy.pause(1.0,hard='True')
hide theend with dissolve
$renpy.pause(credits_speed - 3,hard='True') #클릭 안되도록 설정
show logo with dissolve:
xalign 0.5
yalign 0.5
with Pause(1)
hide logo with dissolve
stop music fadeout 2.0
pause(3)
return
init python:
credits = ('시나리오', ['1', '2' ,'3', '4']), ('SCG', ['1'])
credits_s = "{size=80}test\n\n"
for c in credits:
credits_s += "\n{size=60}" + c[0] + "\n\n"
credits_s+="{size=40}"+"\n".join(c[1])+"\n\n"
'컴퓨터 > python' 카테고리의 다른 글
딥러닝 챗봇 정리 (0) | 2022.02.19 |
---|---|
[django] django로 갠홈 만들어서 heroku로 배포하기 (0) | 2021.09.02 |
파이썬 정리 (0) | 2021.02.05 |
허구한 날 까먹어서 튜플/집합/사전 정리해두기 (0) | 2021.01.13 |
파이썬 정리-2 (0) | 2020.02.25 |