马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
新人报道!分享个自用的简易滚动制作人名单的模板
之前在群里看到有大佬问了(虽然不知道有没有达到他预期的效果)
也不太清楚论坛里有没有大佬发过,如果有类似的话我会立马删除(还请大佬们多多包涵)
[RenPy] 纯文本查看 复制代码 init python:
test = [('-000000-', '111111'), ('-222222-', '333333'), ('-444444-', '555555'), ('-666666-', '777777'),
('-888888-', 'aaaaaa'), ('-bbbbbb-', 'cccccc'), ('-dddddd-', 'eeeeee'), ('-ffffff-', 'gggggg'),
('-hhhhhh-', 'jjjjjj\nkkkkkk'), ('-llllll-', 'mmmmmm'), ('-nnnnnn-', 'ooooooo\npppppp')
]
test_s = "{size=80}test\n\n"
c1 = ''
for c in test:
if not c1==c[0]:
test_s += "\n{size=40}" + c[0] + "\n"
test_s += "{size=60}" + c[1] + "\n"
c1=c[0]
test_s += "\n{size=40}-制作引擎-\n{size=60}" + renpy.version() ## 可根据需要进行声明(比如你的制作引擎
init:
# image play = Movie(play="main_menu_bg_1.mpg", mask="main_menu_bg_1.mpg") ## 可以选择同时配上一段视频
image list = Text(test_s, text_align=0.5) ## 自定义文本样式,例如‘font’
image end = Text("{size=80}FIN.", text_align=0.5)
image thanks = Text("{size=80}Thank you for your support!")
label test:
$ test_speed = 20 ## 滚动速度/s
scene black ## 自定义你的背景
with dissolve
show end:
yanchor 0.5 ypos 0.5
xanchor 0.5 xpos 0.5
with dissolve
with Pause(2.0)
hide end
with dissolve
# show play
# play voice "/audio/1.mp3" ## 播放音效(个人建议音效建议使用视频自带的,这样就能用'renpy.pause'来实现禁止玩家跳过的同时还能保证音频正常播放,仅个人观点,还请多多包涵)
show list at Move((0.5, 5.0), (0.5, 0.0), test_speed, repeat=False, bounce=False, xanchor="center", yanchor="bottom")
with fade
with Pause(test_speed)
# hide play
# with fade
show thanks:
yanchor 0.5 ypos 0.5
xanchor 0.5 xpos 0.5
with Dissolve(1.0)
with Pause(2)
hide thanks
with dissolve
with Pause(0.5)
return
视频效果预览:
链接:https://pan.baidu.com/s/1MHM2S68NpMLltEC5TjJEZw
提取码:2wmg
|