Skip to main content

Fastgame是一个帮助你快速构建游戏或简单的GUI界面的python第三方库。

Project description

什么是fastgame

Fastgame是一个帮助你快速构建游戏或简单的GUI界面的python第三方库。
内部封装pygame2复杂的API。

为什么使用fastgame

下面是同样在pygamefastgame中显示文字的对比
使用pygame:

import sys
import pygame as pg
pg.init()
screen = pg.display.set_mode((400, 400))
pg.display.set_caption('Hello World')
font = pg.font.Font(None, 16)
text = font.render('hello world', True, (0, 0, 0))
while True:
    screen.blit(text, (0, 0))
    for event in pg.event.get():
        if event.type == pg.QUIT:
            pg.quit()
            sys.exit()
    pg.display.update()

使用fastgame:

import fastgame as fg
game = fg.FastGame(title='Hello World', size=(400, 400))
text = fg.Label('hello world')
@game.update
def update():
    text.update()
game.mainloop()

在哪里查看fastgame

github网址: https://github.com/stripepython/fastgame
文档: https://stripepython.github.io/fastgame-document/document.html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastgame-1.3.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastgame-1.3.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file fastgame-1.3.0.tar.gz.

File metadata

  • Download URL: fastgame-1.3.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for fastgame-1.3.0.tar.gz
Algorithm Hash digest
SHA256 1ae1789ea5a289a2ad2082c01197782270dc1a5ed60b1eb489c4f080fa25b6aa
MD5 cbe780527abe760643fa89dd634e158f
BLAKE2b-256 2a39122c1f76ed7a65c428ad117a2a43476182d8746d4448da36dad7dbdf9945

See more details on using hashes here.

File details

Details for the file fastgame-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: fastgame-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for fastgame-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63ba78ba14fd020a3c4855332ff59548a35beab0197519dc93176fb4539443f8
MD5 f5cedea63a1029a65eb528c1bf50d24b
BLAKE2b-256 8c9352f8176b695e2d14135beb4444e457e2ccedc58b729e79d94e0ae1d58b99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page