Pygame(可以借入粵語粵拼paai1 gem1)係一系列跨平台Python 模塊,專門設計嚟寫遊戲程式嘅。

原作者Lenard Lindstrom, René Dudfield, Pete Shinners, Nicholas Dudfield, Thomas Kluyver, and others[1]
開發者Pygame Community
初始版本2000年10月28號, 23年之前 (2000-10-28)[2][3]
最新發布2.5.0 / 2023年6月24號, 10個月之前 (2023-06-24)[4]
程式語言Python, C, Cython, and Assembly[5][6]
作業系統Cross-platform
軟件類別API
許可協議GNU Lesser General Public License

主要功能 編輯

  • 初始化
      import pygame # 同部電腦講,要用 pygame 呢個 module。
      pygame.init() # 同 pygame 啲 module 做初始化。
    
  • 產生遊戲嘅圖像
      pygame.display.set_mode((400, 500)) # 開個 400 × 500 像素咁大嘅 window (win1 dou4)
    

事件處理 編輯

背景 編輯

睇吓 編輯

參攷 編輯

  1. "Contributors to Pygame". GitHub.
  2. Shinners, Pete. "Python Pygame Introduction - History". Pygame.org. 原著喺2019-09-17歸檔. 喺2017-04-28搵到.
  3. "Downloads - Pygame - Python game development". Pypi.python.org.
  4. "Delicious but a weird". www.pygame.org. 喺2023-09-13搵到.
  5. "About Pygame". GitHub. 原著喺18 September 2019歸檔. 喺31 August 2019搵到.
  6. "GettingStarted". Pygame.org.

外拎 編輯