pgzero

所属分类:前端开发
开发工具:Python
文件大小:3033KB
下载次数:0
上传日期:2023-05-09 18:31:34
上 传 者sh-1993
说明:  Python3的零样板游戏编程框架,基于Pygame。
(A zero-boilerplate games programming framework for Python 3, based on Pygame.)

文件列表:
.flake8 (176, 2022-06-30)
.pre-commit-config.yaml (432, 2022-06-30)
AUTHORS (70, 2022-06-30)
COPYING (7651, 2022-06-30)
MANIFEST.in (157, 2022-06-30)
doc (0, 2022-06-30)
doc\Makefile (8017, 2022-06-30)
doc\_scripts (0, 2022-06-30)
doc\_scripts\update_colors.py (3093, 2022-06-30)
doc\_scripts\update_tweener_plots.py (620, 2022-06-30)
doc\_static (0, 2022-06-30)
doc\_static\actor (0, 2022-06-30)
doc\_static\actor\alien_center.png (6003, 2022-06-30)
doc\_static\actor\alien_midbottom.png (5994, 2022-06-30)
doc\_static\actor\anchor_points.png (28456, 2022-06-30)
doc\_static\alien.png (2781, 2022-06-30)
doc\_static\alien_hurt.png (2816, 2022-06-30)
doc\_static\asteroids.png (48515, 2022-06-30)
doc\_static\custom.css (1501, 2022-06-30)
doc\_static\eep.wav (51104, 2022-06-30)
doc\_static\flappybird.png (80910, 2022-06-30)
doc\_static\grabs (0, 2022-06-30)
doc\_static\grabs\circle.png (8910, 2022-06-30)
doc\_static\lander.png (36513, 2022-06-30)
doc\_static\logo.svg (42669, 2022-06-30)
doc\_static\memory.png (85065, 2022-06-30)
doc\_static\mines.png (25292, 2022-06-30)
doc\_static\opacity.svg (7125, 2022-06-30)
doc\_static\pong.png (25484, 2022-06-30)
doc\_static\rotation.svg (26121, 2022-06-30)
doc\_static\scratch (0, 2022-06-30)
doc\_static\scratch\flappybird-bird-space.png (4250, 2022-06-30)
doc\_static\scratch\flappybird-bird-start.png (17271, 2022-06-30)
... ...

.. image:: https://img.shields.io/github/workflow/status/lordmauve/pgzero/Run%20tests/master :target: https://github.com/lordmauve/pgzero/actions/workflows/test.yml :alt: GitHub Test Status .. image:: https://img.shields.io/pypi/v/pgzero :target: https://pypi.org/project/pgzero/ :alt: PyPI .. image:: https://img.shields.io/pypi/dm/pgzero :target: https://pypistats.org/packages/pgzero :alt: PyPI - Downloads .. image:: https://img.shields.io/readthedocs/pygame-zero :target: https://pygame-zero.readthedocs.io/ :alt: Read the Docs Pygame Zero =========== A zero-boilerplate games programming framework for Python 3, based on Pygame. Some examples ------------- Pygame Zero consists of a runner ``pgzrun`` that will run a Pygame Zero script with a full game loop and a range of useful builtins. Here's some of the neat stuff you can do. Note that each of these is a self-contained script. There's no need for any imports or anything else in the file. Draw graphics (assuming there's a file like ``images/dog.png`` or ``images/dog.jpg``):: def draw(): screen.clear() screen.blit('dog', (10, 50)) Play the sound ``sounds/eep.wav`` when you click the mouse:: def on_mouse_down(): sounds.eep.play() Draw an "actor" object (with the sprite ``images/alien.png``) that moves across the screen:: alien = Actor('alien') alien.pos = 10, 10 def draw(): screen.clear() alien.draw() def update(): alien.x += 1 if alien.left > WIDTH: alien.right = 0 Installation ------------ See `installation instructions`__. .. __: http://pygame-zero.readthedocs.org/en/latest/installation.html Documentation ------------- The full documentation is at http://pygame-zero.readthedocs.org/. Read the tutorial at http://pygame-zero.readthedocs.org/en/latest/introduction.html for a taste of the other things that Pygame Zero can do. Contributing ------------ The project is hosted on Github: https://github.com/lordmauve/pgzero If you want to help out with the development of Pygame Zero, you can find some instructions on setting up a development version in the docs: http://pygame-zero.readthedocs.org/en/latest/contributing.html

近期下载者

相关文件


收藏者