小编Dan*_*lia的帖子

在pygame中使用多行渲染文本

我正在尝试制作游戏,我正在尝试渲染大量文本.当文本呈现时,文本的其余部分离开屏幕.有没有简单的方法让文本转到pygame窗口的下一行?

helpT = sys_font.render \
                ("This game is a combination of all of the trends\n of 2016. When you press 'Start Game,' a menu will pop up. In order to beat the game, you must get a perfect score on every single one of these games.",0,(hecolor))
        screen.blit(helpT,(0, 0))
Run Code Online (Sandbox Code Playgroud)

python pygame render

8
推荐指数
2
解决办法
8229
查看次数

标签 统计

pygame ×1

python ×1

render ×1