Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在考虑从 pygame 迁移到 pyglet(主要原因:从 Python 迁移到 Pypy)。但是,我在 pyglet 文档中没有找到矩形碰撞工具,而我经常使用 pygame.Rect。
你知道 pyglet 如何处理矩形碰撞(也许是 OpenGL 函数,但我不知道)?
谢谢
Pyglet 没有这个系统。您必须自己实现它。您可以只导入 pygame 的 rect 并在 pyglet 中使用它。
Pyglet 只是一个 opengl 接口,不是游戏工具包。
(这对我来说是一个障碍,但你会克服它。坚持下去,pyglet 是从 pygame 出发的正确方向)