Pyglet

Pyglet是一个使用Python编程语言编写的,面向对象的多媒体游戏。Pyglet可以在Microsoft WindowsLinux以及Mac OS X等操作系统上运行,它以BSD许可证开源。

Pyglet
pyglet 的 Logo
開發者pyglet contributors
当前版本
  • 1.5.21 (2021年9月16日)
源代码库https://github.com/pyglet/pyglet
编程语言Python
操作系统Microsoft WindowsUnix-like
许可协议BSD许可证
网站www.pyglet.org/ 编辑维基数据

特性

Pyglet支持多显示器,多种图像格式(需要PIL)、音频和视频格式(需要FFmpeg[1]

代码示例

创建一个窗口并显示它:

import pyglet

window = pyglet.window.Window(width=640, height=480, caption="Hello World!")
pyglet.app.run()

查看其他

  1. Cocos2d,基于Pyglet的开源游戏框架
  2. Pygame,基于SDL跨平台Python电子游戏模块

外部链接

  1. Pyglet在GitHub存储库 页面存档备份,存于
  2. Pyglet官方网站 页面存档备份,存于

引用列表

  1. . [2021-11-07]. (原始内容存档于2022-05-10) (英语).
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.