pygame可以使用矢量艺术吗? [英] Can pygame use vector art?

查看:49
本文介绍了pygame可以使用矢量艺术吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://cache.kotaku.com/assets/resources/2008/02/dbzburstcell.jpg

-edit-大胆地只是详细的矢量化2d游戏.

-edit- bassically just detailed vectorized 2d games.

在pygame或任何其他类似的2d框架中使用python制作侧面滚动器时,您可以利用上面的链接中的图形吗?

When making a side scroller in pygame or any other comparable 2d framework with python, can you utilize graphics such as in the above link?

谢谢.

推荐答案

您始终可以将矢量渲染为具有足够分辨率的位图,并在游戏中使用渲染的版本,而不是在运行时渲染所有内容-似乎就是这样您上面链接的游戏确实如此.

You can always render your vectors to bitmaps with enough resolution and use the rendered version in the game, instead of rendering everything in runtime -- that seems to be what the game you linked above does.

也就是说,您可以在运行时使用 cairo 来呈现 .svg .甚至还有教程.

That said, you could use cairo to render .svgs at runtime. There's even a tutorial available.

这篇关于pygame可以使用矢量艺术吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆