Skip to main content

pygame-eyes

Дуже проста обгортка над pygame: вікно, фігури, текст і ігровий цикл у кілька рядків.

Встановлення

pip install pygame-eyes

Швидкий старт

import pygame_eyes

screen = pygame_eyes.screen(400, 400)
fps = 60

circle = pygame_eyes.figure("circle", 200, 200, "#F7A4C1")  # тип, розмірX, розмірY, колір

runing = pygame_eyes.wh()

while runing == True:
    runing.chekforclose()

    circle.render(200, 200)  # положенняX, положенняY (центр фігури)

    runing.fps(fps)

API

Що Опис
screen(width, height, title="pygame-eyes", background="#000000") створює вікно
figure(kind, width, height=None, color="#FFFFFF") фігури: circle, ellipse, rect, square, triangle, diamond
figure.render(x, y) малює фігуру з центром у (x, y); без аргументів — на останній позиції
figure.move(dx, dy) / figure.touches(other) зсув і перевірка зіткнення
text("Привіт", size=32, color="white") + .render(x, y) текст
wh() керування циклом: .chekforclose(), .fps(n), .close(), .dt
keys.pressed("left") чи натиснута клавіша
mouse.pos, mouse.x, mouse.y, mouse.pressed("left") миша

Кольори: "#F7A4C1", "red" або (255, 0, 0).

runing.fps(n) сам показує кадр, тримає FPS і очищує екран, а runing.dt — секунди між кадрами (для плавного руху). runing.checkforclose() (з правильним написанням) теж працює.

Більше прикладів — у папці examples/.

Ліцензія

MIT

Metadata

Release files for pygame-eyes 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygame-eyes 0.1.0
File Size Uploaded Provenance Actions
pygame_eyes-0.1.0.tar.gz 7.6 kB Without provenance Details for pygame_eyes-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pygame-eyes 0.1.0
File Interpreter ABI Platform Actions
pygame_eyes-0.1.0-py3-none-any.whl Python 3 none any Details for pygame_eyes-0.1.0-py3-none-any.whl

Total release size: 15.0 kB

Release files / pygame_eyes-0.1.0.tar.gz

Download URL pygame_eyes-0.1.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d56f318e5beee71d7fb7485d2bfbb658c8ea8e143282686626fb6c6307be991d
BLAKE2b-256 checksum
How to use checksums
3e940bb0b21c7771b8fcd3eaa390529c0add5cabeffe846eb8e6df6586d683ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / pygame_eyes-0.1.0-py3-none-any.whl

Download URL pygame_eyes-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52d47e75a8ec73898b32c769b831d0490b14dcdb2ebffb2c1eaba6f5ca9ff36f
BLAKE2b-256 checksum
How to use checksums
f561e323c882c5d054f72faaf3c40523a3633f3ae1bb4879c23463f321298664
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for pygame-eyes 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page