pyxel-patterns
Pyxel retro game engine patterns - pixel art, game loops, sprite/tilemap, MML audio, resource management, and web deployment
npx skills add vibeeval/vibecosystem --skill pyxel-patterns --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Pyxel Patterns Patterns and best practices for building retro-style games with [Pyxel](https://github.com/kitao/pyxel) — a Python game engine with deliberate retro constraints. ## When to Use - Building retro/pixel art games with Python - Prototyping game mechanics quickly - Creating browser-playable games (WASM export) - Teaching game development fundamentals ## Retro Constraints Pyxel enforces retro limitations by design: | Constraint | Limit | |-----------|-------| | Colors | 16-color palette (customizable) | | Screen | Default 256x256 (configurable) | | Image banks | 3 banks (0-2), 256x256 each | | Tilemaps | 8 maps, 256x256 tiles each | | Sound channels | 4 simultaneous | | Sound/Music | 64 user-definable sounds, 8 musics | | Input | Keyboard + Mouse + Gamepad (up to 2) | These constraints are features, not bugs. They force creative solutions and authentic retro aesthetics. ## Game Loop Pattern ```python import pyxel class App: def __init__(self): pyxel.init(160, 120, title="My Game") # Load resources pyxel.load("assets.pyxres") # Initialize game state self.player_x = 72 self.player_y = 56 self.score = 0 # Start game loop pyxel.run(self.update, self.draw) def update(self): "
- When to Use
- Retro Constraints
- Game Loop Pattern
- Input Handling
- Drawing API
- Sprite Animation
- Collision Detection
- Sound & Music (MML)
- Resource Management
- Scene Management
- Packaging & Distribution
- Performance Tips
- Common Game Patterns
- Particle System
Package as standalone executable pyxel package APP_DIR STARTUP_SCRIPT Convert to executable pyxel app2exe APP.pyxapp Convert to HTML (browser-playable via WASM) pyxel app2html APP.pyxapp The HTML output uses Pyodide/Emscripten WASM Works in modern browsers without Python installed
What does the pyxel-patterns skill do?
Pyxel retro game engine patterns - pixel art, game loops, sprite/tilemap, MML audio, resource management, and web deployment
How do I install it?
Run `npx skills add vibeeval/vibecosystem --skill pyxel-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From vibeeval/vibecosystem, a repository with 521 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
