# <img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/pyxel_logo_152x64.png">
[![Downloads](https://static.pepy.tech/personalized-badge/pyxel?period=total&units=international_system&left_color=grey&right_color=blue&left_text=PyPI%20downloads)](https://pypi.org/project/pyxel/)
[![GitHub Repo stars](https://img.shields.io/github/stars/kitao/pyxel?style=social)](https://github.com/kitao/pyxel)
[![GitHub forks](https://img.shields.io/github/forks/kitao/pyxel?style=social)](https://github.com/kitao/pyxel)
[![GitHub Sponsors](https://img.shields.io/github/sponsors/kitao?label=Sponsor%20me&logo=github%20sponsors&style=social)](https://github.com/sponsors/kitao)
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/H2H27VDKD)
[ [English](https://github.com/kitao/pyxel/blob/main//README.md) | [中文](https://github.com/kitao/pyxel/blob/main//docs/README.cn.md) | [Deutsch](https://github.com/kitao/pyxel/blob/main//docs/README.de.md) | [Español](https://github.com/kitao/pyxel/blob/main//docs/README.es.md) | [Français](https://github.com/kitao/pyxel/blob/main//docs/README.fr.md) | [Italiano](https://github.com/kitao/pyxel/blob/main//docs/README.it.md) | [日本語](https://github.com/kitao/pyxel/blob/main//docs/README.ja.md) | [한국어](https://github.com/kitao/pyxel/blob/main//docs/README.ko.md) | [Português](https://github.com/kitao/pyxel/blob/main//docs/README.pt.md) | [Русский](https://github.com/kitao/pyxel/blob/main//docs/README.ru.md) | [Türkçe](https://github.com/kitao/pyxel/blob/main//docs/README.tr.md) | [Українська](https://github.com/kitao/pyxel/blob/main//docs/README.uk.md) ]
**Pyxel** is a retro game engine for Python.
With simple specifications inspired by retro gaming consoles, such as displaying only 16 colors and supporting 4 sound channels, you can easily enjoy making pixel-art-style games.
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/pyxel_message.png" width="480">
The development of Pyxel is driven by user feedback. Please give Pyxel a star on GitHub!
<p>
<a href="https://kitao.github.io/pyxel/wasm/examples/10_platformer.html">
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/10_platformer.gif" width="290">
</a>
<a href="https://kitao.github.io/pyxel/wasm/examples/30sec_of_daylight.html">
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/30sec_of_daylight.gif" width="350">
</a>
<a href="https://kitao.github.io/pyxel/wasm/examples/02_jump_game.html">
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/02_jump_game.gif" width="330">
</a>
<a href="https://kitao.github.io/pyxel/wasm/examples/megaball.html">
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/megaball.gif" width="310">
</a>
<a href="https://kitao.github.io/pyxel/wasm/examples/image_editor.html">
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/image_tilemap_editor.gif" width="320">
</a>
<a href="https://kitao.github.io/pyxel/wasm/examples/sound_editor.html">
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/sound_music_editor.gif" width="320">
</a>
</p>
Pyxel's specifications and APIs are inspired by [PICO-8](https://www.lexaloffle.com/pico-8.php) and [TIC-80](https://tic80.com/).
Pyxel is open source under the [MIT License](https://github.com/kitao/pyxel/blob/main//LICENSE) and free to use. Let's start making retro games with Pyxel!
## Specifications
- Runs on Windows, Mac, Linux, and Web
- Programming in Python
- 16-color palette
- 3 256x256-sized image banks
- 8 256x256-sized tilemaps
- 4 channels with 64 definable sounds
- 8 music tracks combining any sounds
- Keyboard, mouse, and gamepad inputs
- Image and sound editing tools
- User-extensible colors, channels, and banks
### Color Palette
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/05_color_palette.png">
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/pyxel_palette.png">
## How to Install
### Windows
After installing [Python3](https://www.python.org/) (version 3.8 or higher), run the following command:
```sh
pip install -U pyxel
```
When installing Python using the official installer, make sure to check the `Add Python 3.x to PATH` option to enable the `pyxel` command.
### Mac
After installing [Homebrew](https://brew.sh/), run the following commands:
```sh
brew install pipx
pipx ensurepath
pipx install pyxel
```
To upgrade Pyxel after installation, run `pipx upgrade pyxel`.
### Linux
After installing the SDL2 package (`libsdl2-dev` for Ubuntu), [Python3](https://www.python.org/) (version 3.8 or higher), and `python3-pip`, run the following command:
```sh
sudo pip3 install -U pyxel
```
If the previous command fails, consider building Pyxel from source by following the instructions in the [Makefile](https://github.com/kitao/pyxel/blob/main//Makefile).
### Web
The web version of Pyxel does not require Python or Pyxel installation and runs on PCs, smartphones, and tablets with supported web browsers.
For detailed instructions, please refer to [this page](https://github.com/kitao/pyxel/blob/main//docs/pyxel-web-en.md).
### Try Examples
After installing Pyxel, you can copy the examples to the current directory with the following command:
```sh
pyxel copy_examples
```
The following examples will be copied to your current directory:
<table>
<tr>
<td>01_hello_pyxel.py</td>
<td>Simplest application</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/01_hello_pyxel.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/01_hello_pyxel.py">Code</a></td>
</tr>
<tr>
<td>02_jump_game.py</td>
<td>Jump game with Pyxel resource file</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/02_jump_game.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/02_jump_game.py">Code</a></td>
</tr>
<tr>
<td>03_draw_api.py</td>
<td>Demonstration of drawing APIs</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/03_draw_api.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/03_draw_api.py">Code</a></td>
</tr>
<tr>
<td>04_sound_api.py</td>
<td>Demonstration of sound APIs</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/04_sound_api.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/04_sound_api.py">Code</a></td>
</tr>
<tr>
<td>05_color_palette.py</td>
<td>Color palette list</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/05_color_palette.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/05_color_palette.py">Code</a></td>
</tr>
<tr>
<td>06_click_game.py</td>
<td>Mouse click game</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/06_click_game.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/06_click_game.py">Code</a></td>
</tr>
<tr>
<td>07_snake.py</td>
<td>Snake game with BGM</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/07_snake.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/07_snake.py">Code</a></td>
</tr>
<tr>
<td>08_triangle_api.py</td>
<td>Demonstration of triangle drawing APIs</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/08_triangle_api.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/08_triangle_api.py">Code</a></td>
</tr>
<tr>
<td>09_shooter.py</td>
<td>Shoot'em up game with screen transitions</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/09_shooter.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/09_shooter.py">Code</a></td>
</tr>
<tr>
<td>10_platformer.py</td>
<td>Side-scrolling platform game with map</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/10_platformer.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/10_platformer.py">Code</a></td>
</tr>
<tr>
<td>11_offscreen.py</td>
<td>Offscreen rendering with Image class</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/11_offscreen.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/11_offscreen.py">Code</a></td>
</tr>
<tr>
<td>12_perlin_noise.py</td>
<td>Perlin noise animation</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/12_perlin_noise.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/12_perlin_noise.py">Code</a></td>
</tr>
<tr>
<td>13_bitmap_font.py</td>
<td>Drawing a bitmap font</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/13_bitmap_font.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/13_bitmap_font.py">Code</a></td>
</tr>
<tr>
<td>14_synthesizer.py</td>
<td>Synthesizer using audio expansion features</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/14_synthesizer.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/14_synthesizer.py">Code</a></td>
</tr>
<tr>
<td>15_tiled_map_file.py</td>
<td>Loading and drawing a Tile Map File (.tmx)</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/15_tiled_map_file.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/15_tiled_map_file.py">Code</a></td>
</tr>
<tr>
<td>16_transform.py</td>
<td>Image rotation and scaling</td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/16_transform.html">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/16_transform.py">Code</a></td>
</tr>
<tr>
<td>99_flip_animation.py</td>
<td>Animation with flip function (non-web platforms only)</td>
<td><a href="https://github.com/kitao/pyxel/blob/main/docs/images/99_flip_animation.gif">Demo</a></td>
<td><a href="https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/99_flip_animation.py">Code</a></td>
</tr>
<tr>
<td>30sec_of_daylight.pyxapp</td>
<td>1st Pyxel Jam winning game by <a href="https://x.com/helpcomputer0">Adam</a></td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/30sec_of_daylight.html">Demo</a></td>
<td><a href="https://github.com/kitao/30sec_of_daylight">Code</a></td>
</tr>
<tr>
<td>megaball.pyxapp</td>
<td>Arcade ball physics game by <a href="https://x.com/helpcomputer0">Adam</a></td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/megaball.html">Demo</a></td>
<td><a href="https://github.com/helpcomputer/megaball">Code</a></td>
</tr>
<tr>
<td>8bit-bgm-gen.pyxapp</td>
<td>Background music generator by <a href="https://x.com/frenchbread1222">frenchbread</a></td>
<td><a href="https://kitao.github.io/pyxel/wasm/examples/8bit-bgm-gen.html">Demo</a></td>
<td><a href="https://github.com/shiromofufactory/8bit-bgm-generator">Code</a></td>
</tr>
</table>
The examples can be executed with the following commands:
```sh
cd pyxel_examples
pyxel run 01_hello_pyxel.py
pyxel play 30sec_of_daylight.pyxapp
```
## How to Use
### Create Application
In your Python script, import the Pyxel module, specify the window size with the `init` function, and then start the Pyxel application with the `run` function.
```python
import pyxel
pyxel.init(160, 120)
def update():
if pyxel.btnp(pyxel.KEY_Q):
pyxel.quit()
def draw():
pyxel.cls(0)
pyxel.rect(10, 10, 20, 20, 11)
pyxel.run(update, draw)
```
The arguments of the `run` function are the `update` function, which processes frame updates, and the `draw` function, which handles screen drawing.
In an actual application, it is recommended to wrap Pyxel code in a class, as shown below:
```python
import pyxel
class App:
def __init__(self):
pyxel.init(160, 120)
self.x = 0
pyxel.run(self.update, self.draw)
def update(self):
self.x = (self.x + 1) % pyxel.width
def draw(self):
pyxel.cls(0)
pyxel.rect(self.x, 0, 8, 8, 9)
App()
```
For creating simple graphics without animation, you can use the `show` function to simplify your code.
```python
import pyxel
pyxel.init(120, 120)
pyxel.cls(1)
pyxel.circb(60, 60, 40, 7)
pyxel.show()
```
### Run Application
A created script can be executed using the `python` command:
```sh
python PYTHON_SCRIPT_FILE
```
It can also be run with the `pyxel run` command:
```sh
pyxel run PYTHON_SCRIPT_FILE
```
Additionally, the `pyxel watch` command monitors changes in a specified directory and automatically re-runs the program when changes are detected:
```sh
pyxel watch WATCH_DIR PYTHON_SCRIPT_FILE
```
Directory monitoring can be stopped by pressing `Ctrl(Command)+C`.
### Special Key Controls
The following special key actions are available while a Pyxel application is running:
- `Esc`<br>
Quit the application
- `Alt(Option)+1`<br>
Save the screenshot to the desktop
- `Alt(Option)+2`<br>
Reset the recording start time of the screen capture video
- `Alt(Option)+3`<br>
Save a screen capture video to the desktop (up to 10 seconds)
- `Alt(Option)+8` or `A+B+X+Y+DL` on gamepad<br>
Toggles screen scaling between maximum and integer
- `Alt(Option)+9` or `A+B+X+Y+DR` on gamepad<br>
Switch between screen modes (Crisp/Smooth/Retro)
- `Alt(Option)+0` or `A+B+X+Y+DU` on gamepad<br>
Toggle the performance monitor (fps/`update` time/`draw` time)
- `Alt(Option)+Enter` or `A+B+X+Y+DD` on gamepad<br>
Toggle fullscreen
- `Shift+Alt(Option)+1/2/3`<br>
Save image bank 0, 1, or 2 to the desktop
- `Shift+Alt(Option)+0`<br>
Save the current color palette to the desktop
### How to Create Resources
Pyxel Editor can create images and sounds used in a Pyxel application.
You can start Pyxel Editor with the following command:
```sh
pyxel edit PYXEL_RESOURCE_FILE
```
If the specified Pyxel resource file (.pyxres) exists, it will be loaded. If it does not exist, a new file with the specified name will be created. If the resource file is omitted, a new file named `my_resource.pyxres` will be created.
After starting Pyxel Editor, you can switch to another resource file by dragging and dropping it onto Pyxel Editor.
The created resource file can be loaded using the `load` function.
Pyxel Editor has the following editing modes.
**Image Editor**
The mode for editing the image in each **image bank**.
<a href="https://kitao.github.io/pyxel/wasm/examples/image_editor.html">
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/image_editor.gif">
</a>
You can drag and drop an image file (PNG/GIF/JPEG) into the image editor to load the image into the currently selected image bank.
**Tilemap Editor**
The mode for editing **tilemaps** that arrange images from the image banks in a tile pattern.
<a href="https://kitao.github.io/pyxel/wasm/examples/tilemap_editor.html">
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/tilemap_editor.gif">
</a>
Drag and drop a TMX file (Tiled Map File) onto the tilemap editor to load its layer 0 into the currently selected tilemap.
**Sound Editor**
The mode for editing **sounds** used for melodies and sound effects.
<a href="https://kitao.github.io/pyxel/wasm/examples/sound_editor.html">
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/sound_editor.gif">
</a>
**Music Editor**
The mode for editing **musics** in which the sounds are arranged in order of playback.
<a href="https://kitao.github.io/pyxel/wasm/examples/music_editor.html">
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/music_editor.gif">
</a>
### Other Resource Creation Methods
Pyxel images and tilemaps can also be created using the following methods:
- Create an image from a list of strings using the `Image.set` function or the `Tilemap.set` function
- Load an image file (PNG/GIF/JPEG) in Pyxel palette with `Image.load` function
Pyxel sounds can also be created using the following method:
- Create a sound from strings with `Sound.set` function or `Music.set` function
Refer to the API reference for the usage of these functions.
### How to Distribute Applications
Pyxel supports a dedicated application distribution file format (Pyxel application file) that is cross-platform.
A Pyxel application file (.pyxapp) is created using the `pyxel package` command:
```sh
pyxel package APP_DIR STARTUP_SCRIPT_FILE
```
If you need to include resources or additional modules, place them in the application directory.
Metadata can be displayed at runtime by specifying it in the following format within the startup script. Fields other than `title` and `author` are optional.
```python
# title: Pyxel Platformer
# author: Takashi Kitao
# desc: A Pyxel platformer example
# site: https://github.com/kitao/pyxel
# license: MIT
# version: 1.0
```
The created application file can be run using the `pyxel play` command:
```sh
pyxel play PYXEL_APP_FILE
```
A Pyxel application file can also be converted to an executable or an HTML file using the `pyxel app2exe` or `pyxel app2html` commands.
## API Reference
### System
- `width`, `height`<br>
The width and height of the screen
- `frame_count`<br>
The number of the elapsed frames
- `init(width, height, [title], [fps], [quit_key], [display_scale], [capture_scale], [capture_sec])`<br>
Initialize the Pyxel application with the screen size (`width`, `height`). The following options can be specified: the window title with `title`, the frame rate with `fps`, the key to quit the application with `quit_key`, the display scale with `display_scale`, the screen capture scale with `capture_scale`, and the maximum recording time of the screen capture video with `capture_sec`.<br>
Example: `pyxel.init(160, 120, title="My Pyxel App", fps=60, quit_key=pyxel.KEY_NONE, capture_scale=3, capture_sec=0)`
- `run(update, draw)`<br>
Start the Pyxel application and call the `update` function for frame update and the `draw` function for drawing.
- `show()`<br>
Show the screen and wait until the `Esc` key is pressed.
- `flip()`<br>
Refresh the screen by one frame. The application exits when the `Esc` key is pressed. This function is not available in the web version.
- `quit()`<br>
Quit the Pyxel application.
### Resource
- `load(filename, [excl_images], [excl_tilemaps], [excl_sounds], [excl_musics])`<br>
Load the resource file (.pyxres). If an option is set to `True`, the corresponding resource will be excluded from loading. If a palette file (.pyxpal) with the same name exists in the same location as the resource file, the palette display colors will also be updated. The palette file contains hexadecimal entries for the display colors (e.g. `1100FF`), separated by newlines. The palette file can also be used to change the colors displayed in Pyxel Editor.
- `user_data_dir(vendor_name, app_name)`<br>
Returns the user data directory created based on `vendor_name` and `app_name`. If the directory does not exist, it will be created automatically. It is used to store high scores, game progress, and similar data.<br>
Example: `print(pyxel.user_data_dir("Takashi Kitao", "Pyxel Shooter"))`
### Input
- `mouse_x`, `mouse_y`<br>
The current position of the mouse cursor
- `mouse_wheel`<br>
The current value of the mouse wheel
- `btn(key)`<br>
Return `True` if the `key` is pressed, otherwise return `False`. ([Key definition list](https://github.com/kitao/pyxel/blob/main//python/pyxel/__init__.pyi))
- `btnp(key, [hold], [repeat])`<br>
Return `True` if the `key` is pressed in that frame, otherwise return `False`. If `hold` and `repeat` are specified, after the `key` has been held down for `hold` frames or more, `True` is returned every `repeat` frames.
- `btnr(key)`<br>
Return `True` if the `key` is released in that frame, otherwise return `False`.
- `mouse(visible)`<br>
Show the mouse cursor if `visible` is `True`, and hide it if `visible` is `False`. The cursor's position continues to update even when it is hidden.
### Graphics
- `colors`<br>
List of the palette display colors. The display color is specified by a 24-bit numerical value. Use `colors.from_list` and `colors.to_list` to directly assign and retrieve Python lists.<br>
Example: `old_colors = pyxel.colors.to_list(); pyxel.colors.from_list([0x111111, 0x222222, 0x333333]); pyxel.colors[15] = 0x112233`
- `images`<br>
List of the image banks (instances of the Image class) (0-2)<br>
Example: `pyxel.images[0].load(0, 0, "title.png")`
- `tilemaps`<br>
List of the tilemaps (instances of the Tilemap class) (0-7)
- `clip(x, y, w, h)`<br>
Set the drawing area of the screen from (`x`, `y`) with a width of `w` and a height of `h`. Call `clip()` to reset the drawing area to full screen.
- `camera(x, y)`<br>
Change the upper-left corner coordinates of the screen to (`x`, `y`). Call `camera()` to reset the upper-left corner coordinates to (`0`, `0`).
- `pal(col1, col2)`<br>
Replace color `col1` with `col2` when drawing. Call `pal()` to reset to the initial palette.
- `dither(alpha)`<br>
Apply dithering (pseudo-transparency) when drawing. Set `alpha` in the range `0.0`-`1.0`, where `0.0` is transparent and `1.0` is opaque.
- `cls(col)`<br>
Clear screen with color `col`.
- `pget(x, y)`<br>
Get the color of the pixel at (`x`, `y`).
- `pset(x, y, col)`<br>
Draw a pixel of color `col` at (`x`, `y`).
- `line(x1, y1, x2, y2, col)`<br>
Draw a line of color `col` from (`x1`, `y1`) to (`x2`, `y2`).
- `rect(x, y, w, h, col)`<br>
Draw a rectangle of width `w`, height `h` and color `col` from (`x`, `y`).
- `rectb(x, y, w, h, col)`<br>
Draw the outline of a rectangle of width `w`, height `h` and color `col` from (`x`, `y`).
- `circ(x, y, r, col)`<br>
Draw a circle of radius `r` and color `col` at (`x`, `y`).
- `circb(x, y, r, col)`<br>
Draw the outline of a circle of radius `r` and color `col` at (`x`, `y`).
- `elli(x, y, w, h, col)`<br>
Draw an ellipse of width `w`, height `h` and color `col` from (`x`, `y`).
- `ellib(x, y, w, h, col)`<br>
Draw the outline of an ellipse of width `w`, height `h` and color `col` from (`x`, `y`).
- `tri(x1, y1, x2, y2, x3, y3, col)`<br>
Draw a triangle with vertices (`x1`, `y1`), (`x2`, `y2`), (`x3`, `y3`) and color `col`.
- `trib(x1, y1, x2, y2, x3, y3, col)`<br>
Draw the outline of a triangle with vertices (`x1`, `y1`), (`x2`, `y2`), (`x3`, `y3`) and color `col`.
- `fill(x, y, col)`<br>
Fill the area connected with the same color as (`x`, `y`) with color `col`.
- `blt(x, y, img, u, v, w, h, [colkey], [rotate], [scale])`<br>
Copy the region of size (`w`, `h`) from (`u`, `v`) of the image bank `img`(0-2) to (`x`, `y`). If a negative value is assigned to `w` and/or `h`, the region will be flipped horizontally and/or vertically. If `colkey` is specified, it will be treated as a transparent color. If `rotate`(in degrees), `scale`(1.0 = 100%), or both are specified, the corresponding transformations will be applied.
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/blt_figure.png">
- `bltm(x, y, tm, u, v, w, h, [colkey], [rotate], [scale])`<br>
Copy the region of size (`w`, `h`) from (`u`, `v`) of the tilemap `tm`(0-7) to (`x`, `y`). If a negative value is assigned to `w` and/or `h`, the region will be flipped horizontally and/or vertically. If `colkey` is specified, it will be treated as a transparent color. If `rotate`(in degrees), `scale`(1.0 = 100%), or both are specified, the corresponding transformations will be applied. The size of a tile is 8x8 pixels and is stored in a tilemap as a tuple of `(image_tx, image_ty)`.
<img src="https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/bltm_figure.png">
- `text(x, y, s, col)`<br>
Draw a string `s` in color `col` at (`x`, `y`).
### Audio
- `sounds`<br>
List of the sounds (instances of the Sound class) (0-63)<br>
Example: `pyxel.sounds[0].speed = 60`
- `musics`<br>
List of the musics (instances of the Music class) (0-7)
- `play(ch, snd, [tick], [loop], [resume])`<br>
Play the sound `snd`(0-63) on channel `ch`(0-3). If `snd` is a list, the sounds will be played in sequence. The playback start position can be specified by `tick`(1 tick = 1/120 seconds). If `loop` is set to `True`, loop playback is performed. To resume the previous sound after playback ends, set `resume` to `True`.
- `playm(msc, [tick], [loop])`<br>
Play the music `msc`(0-7). The playback start position can be specified by `tick`(1 tick = 1/120 seconds). If `loop` is set to `True`, loop playback is performed.
- `stop([ch])`<br>
Stop playback of the specified channel `ch`(0-3). Call `stop()` to stop all channels.
- `play_pos(ch)`<br>
Get the sound playback position of channel `ch`(0-3) as a tuple of `(sound_no, note_no)`. Return `None` when playback has stopped.
### Math
- `ceil(x)`<br>
Return the smallest integer that is greater than or equal to `x`.
- `floor(x)`<br>
Return the largest integer that is less than or equal to `x`.
- `sgn(x)`<br>
Return `1` when `x` is positive, `0` when it is `0`, and `-1` when it is negative.
- `sqrt(x)`<br>
Return the square root of `x`.
- `sin(deg)`<br>
Return the sine of `deg` degrees.
- `cos(deg)`<br>
Return the cosine of `deg` degrees.
- `atan2(y, x)`<br>
Return the arctangent of `y`/`x` in degrees.
- `rseed(seed)`<br>
Sets the seed of the random number generator.
- `rndi(a, b)`<br>
Return a random integer greater than or equal to `a` and less than or equal to `b`.
- `rndf(a, b)`<br>
Return a random floating-point number greater than or equal to `a` and less than or equal to `b`.
- `nseed(seed)`<br>
Set the seed of Perlin noise.
- `noise(x, [y], [z])`<br>
Return the Perlin noise value for the specified coordinates.
### Image Class
- `width`, `height`<br>
The width and height of the image
- `set(x, y, data)`<br>
Set the image at (`x`, `y`) using a list of strings.<br>
Example: `pyxel.images[0].set(10, 10, ["0123", "4567", "89ab", "cdef"])`
- `load(x, y, filename)`<br>
Load an image file (PNG/GIF/JPEG) at (`x`, `y`).
- `pget(x, y)`<br>
Get the color of the pixel at (`x`, `y`).
- `pset(x, y, col)`<br>
Draw a pixel with the color `col` at (`x`, `y`).
### Tilemap Class
- `width`, `height`<br>
The width and height of the tilemap
- `imgsrc`<br>
The image bank (0-2) referenced by the tilemap
- `set(x, y, data)`<br>
Set the tilemap at (`x`, `y`) using a list of strings.<br>
Example: `pyxel.tilemap(0).set(0, 0, ["0000 0100 a0b0", "0001 0101 a1b1"])`
- `load(x, y, filename, layer)`<br>
Load the `layer` (0-) from the TMX file (Tiled Map File) at (`x`, `y`).
- `pget(x, y)`<br>
Get the tile at (`x`, `y`). A tile is represented as a tuple of `(image_tx, image_ty)`.
- `pset(x, y, tile)`<br>
Draw a `tile` at (`x`, `y`). A tile is represented as a tuple of `(image_tx, image_ty)`.
### Sound Class
- `notes`<br>
List of notes (0-127). The higher the number, the higher the pitch. Note `33` corresponds to 'A2'(440Hz). Rest notes are represented by `-1`.
- `tones`<br>
List of tones (0:Triangle / 1:Square / 2:Pulse / 3:Noise)
- `volumes`<br>
List of volumes (0-7)
- `effects`<br>
List of effects (0:None / 1:Slide / 2:Vibrato / 3:FadeOut / 4:Half-FadeOut / 5:Quarter-FadeOut)
- `speed`<br>
Playback speed. `1` is the fastest, and the larger the number, the slower the playback speed. At `120`, the length of one note becomes 1 second.
- `set(notes, tones, volumes, effects, speed)`<br>
Set notes, tones, volumes, and effects using a string. If the length of tones, volumes, or effects are shorter than the notes, they will be repeated from the beginning.
- `set_notes(notes)`<br>
Set the notes using a string made of 'CDEFGAB'+'#-'+'01234' or 'R'. It is case-insensitive, and whitespace is ignored.<br>
Example: `pyxel.sounds[0].set_notes("G2B-2D3R RF3F3F3")`
- `set_tones(tones)`<br>
Set the tones with a string made of 'TSPN'. Case-insensitive and whitespace is ignored.<br>
Example: `pyxel.sounds[0].set_tones("TTSS PPPN")`
- `set_volumes(volumes)`<br>
Set the volumes with a string made of '01234567'. Case-insensitive and whitespace is ignored.<br>
Example: `pyxel.sounds[0].set_volumes("7777 7531")`
- `set_effects(effects)`<br>
Set the effects with a string made of 'NSVFHQ'. Case-insensitive and whitespace is ignored.<br>
Example: `pyxel.sounds[0].set_effects("NFNF NVVS")`
### Music Class
- `seqs`<br>
A two-dimensional list of sounds (0-63) across multiple channels
- `set(seq0, seq1, seq2, ...)`<br>
Set the lists of sound (0-63) for each channel. If an empty list is specified, that channel will not be used for playback.<br>
Example: `pyxel.musics[0].set([0, 1], [], [3])`
### Advanced API
Pyxel includes an "Advanced API" that is not mentioned in this reference, as it may confuse users or require specialized knowledge to use.
If you are confident in your skills, try creating amazing works using [this](https://github.com/kitao/pyxel/blob/main//python/pyxel/__init__.pyi) as a guide!
## How to Contribute
### Submitting Issues
Use the [Issue Tracker](https://github.com/kitao/pyxel/issues) to submit bug reports and feature or enhancement requests. Before submitting a new issue, make sure there are no similar open issues.
### Functional Testing
Anyone who manually tests the code and reports bugs or suggestions for enhancements in the [Issue Tracker](https://github.com/kitao/pyxel/issues) is very welcome!
### Submitting Pull Requests
Patches and fixes are accepted in the form of pull requests (PRs). Make sure that the issue the pull request addresses is open in the Issue Tracker.
Submitting a pull request implies that you agree to license your contribution under the [MIT License](https://github.com/kitao/pyxel/blob/main//LICENSE).
## Other Information
- [FAQ](https://github.com/kitao/pyxel/blob/main//docs/faq-en.md)
- [User Examples](https://github.com/kitao/pyxel/wiki/Pyxel-User-Examples)
- [Developer X account](https://x.com/kitao)
## License
Pyxel is licensed under the [MIT License](https://github.com/kitao/pyxel/blob/main//LICENSE). It can be reused in proprietary software, provided that all copies of the software or its substantial portions include a copy of the MIT License terms and a copyright notice.
## Recruiting Sponsors
Pyxel is looking for sponsors on GitHub Sponsors. Please consider sponsoring Pyxel to support its continued maintenance and feature development. As a benefit, sponsors can consult directly with the Pyxel developer. For more details, please visit [this page](https://github.com/sponsors/kitao).
Raw data
{
"_id": null,
"home_page": null,
"name": "pyxel",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "game, gamedev",
"author": "Takashi Kitao <takashi.kitao@gmail.com>",
"author_email": "Takashi Kitao <takashi.kitao@gmail.com>",
"download_url": null,
"platform": null,
"description": "# <img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/pyxel_logo_152x64.png\">\n\n[![Downloads](https://static.pepy.tech/personalized-badge/pyxel?period=total&units=international_system&left_color=grey&right_color=blue&left_text=PyPI%20downloads)](https://pypi.org/project/pyxel/)\n[![GitHub Repo stars](https://img.shields.io/github/stars/kitao/pyxel?style=social)](https://github.com/kitao/pyxel)\n[![GitHub forks](https://img.shields.io/github/forks/kitao/pyxel?style=social)](https://github.com/kitao/pyxel)\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/kitao?label=Sponsor%20me&logo=github%20sponsors&style=social)](https://github.com/sponsors/kitao)\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/H2H27VDKD)\n\n[ [English](https://github.com/kitao/pyxel/blob/main//README.md) | [\u4e2d\u6587](https://github.com/kitao/pyxel/blob/main//docs/README.cn.md) | [Deutsch](https://github.com/kitao/pyxel/blob/main//docs/README.de.md) | [Espa\u00f1ol](https://github.com/kitao/pyxel/blob/main//docs/README.es.md) | [Fran\u00e7ais](https://github.com/kitao/pyxel/blob/main//docs/README.fr.md) | [Italiano](https://github.com/kitao/pyxel/blob/main//docs/README.it.md) | [\u65e5\u672c\u8a9e](https://github.com/kitao/pyxel/blob/main//docs/README.ja.md) | [\ud55c\uad6d\uc5b4](https://github.com/kitao/pyxel/blob/main//docs/README.ko.md) | [Portugu\u00eas](https://github.com/kitao/pyxel/blob/main//docs/README.pt.md) | [\u0420\u0443\u0441\u0441\u043a\u0438\u0439](https://github.com/kitao/pyxel/blob/main//docs/README.ru.md) | [T\u00fcrk\u00e7e](https://github.com/kitao/pyxel/blob/main//docs/README.tr.md) | [\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430](https://github.com/kitao/pyxel/blob/main//docs/README.uk.md) ]\n\n**Pyxel** is a retro game engine for Python.\n\nWith simple specifications inspired by retro gaming consoles, such as displaying only 16 colors and supporting 4 sound channels, you can easily enjoy making pixel-art-style games.\n\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/pyxel_message.png\" width=\"480\">\n\nThe development of Pyxel is driven by user feedback. Please give Pyxel a star on GitHub!\n\n<p>\n<a href=\"https://kitao.github.io/pyxel/wasm/examples/10_platformer.html\">\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/10_platformer.gif\" width=\"290\">\n</a>\n<a href=\"https://kitao.github.io/pyxel/wasm/examples/30sec_of_daylight.html\">\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/30sec_of_daylight.gif\" width=\"350\">\n</a>\n<a href=\"https://kitao.github.io/pyxel/wasm/examples/02_jump_game.html\">\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/02_jump_game.gif\" width=\"330\">\n</a>\n<a href=\"https://kitao.github.io/pyxel/wasm/examples/megaball.html\">\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/megaball.gif\" width=\"310\">\n</a>\n<a href=\"https://kitao.github.io/pyxel/wasm/examples/image_editor.html\">\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/image_tilemap_editor.gif\" width=\"320\">\n</a>\n<a href=\"https://kitao.github.io/pyxel/wasm/examples/sound_editor.html\">\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/sound_music_editor.gif\" width=\"320\">\n</a>\n</p>\n\nPyxel's specifications and APIs are inspired by [PICO-8](https://www.lexaloffle.com/pico-8.php) and [TIC-80](https://tic80.com/).\n\nPyxel is open source under the [MIT License](https://github.com/kitao/pyxel/blob/main//LICENSE) and free to use. Let's start making retro games with Pyxel!\n\n## Specifications\n\n- Runs on Windows, Mac, Linux, and Web\n- Programming in Python\n- 16-color palette\n- 3 256x256-sized image banks\n- 8 256x256-sized tilemaps\n- 4 channels with 64 definable sounds\n- 8 music tracks combining any sounds\n- Keyboard, mouse, and gamepad inputs\n- Image and sound editing tools\n- User-extensible colors, channels, and banks\n\n### Color Palette\n\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/05_color_palette.png\">\n\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/pyxel_palette.png\">\n\n## How to Install\n\n### Windows\n\nAfter installing [Python3](https://www.python.org/) (version 3.8 or higher), run the following command:\n\n```sh\npip install -U pyxel\n```\n\nWhen installing Python using the official installer, make sure to check the `Add Python 3.x to PATH` option to enable the `pyxel` command.\n\n### Mac\n\nAfter installing [Homebrew](https://brew.sh/), run the following commands:\n\n```sh\nbrew install pipx\npipx ensurepath\npipx install pyxel\n```\n\nTo upgrade Pyxel after installation, run `pipx upgrade pyxel`.\n\n### Linux\n\nAfter installing the SDL2 package (`libsdl2-dev` for Ubuntu), [Python3](https://www.python.org/) (version 3.8 or higher), and `python3-pip`, run the following command:\n\n```sh\nsudo pip3 install -U pyxel\n```\n\nIf the previous command fails, consider building Pyxel from source by following the instructions in the [Makefile](https://github.com/kitao/pyxel/blob/main//Makefile).\n\n### Web\n\nThe web version of Pyxel does not require Python or Pyxel installation and runs on PCs, smartphones, and tablets with supported web browsers.\n\nFor detailed instructions, please refer to [this page](https://github.com/kitao/pyxel/blob/main//docs/pyxel-web-en.md).\n\n### Try Examples\n\nAfter installing Pyxel, you can copy the examples to the current directory with the following command:\n\n```sh\npyxel copy_examples\n```\n\nThe following examples will be copied to your current directory:\n\n<table>\n<tr>\n<td>01_hello_pyxel.py</td>\n<td>Simplest application</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/01_hello_pyxel.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/01_hello_pyxel.py\">Code</a></td>\n</tr>\n<tr>\n<td>02_jump_game.py</td>\n<td>Jump game with Pyxel resource file</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/02_jump_game.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/02_jump_game.py\">Code</a></td>\n</tr>\n<tr>\n<td>03_draw_api.py</td>\n<td>Demonstration of drawing APIs</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/03_draw_api.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/03_draw_api.py\">Code</a></td>\n</tr>\n<tr>\n<td>04_sound_api.py</td>\n<td>Demonstration of sound APIs</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/04_sound_api.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/04_sound_api.py\">Code</a></td>\n</tr>\n<tr>\n<td>05_color_palette.py</td>\n<td>Color palette list</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/05_color_palette.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/05_color_palette.py\">Code</a></td>\n</tr>\n<tr>\n<td>06_click_game.py</td>\n<td>Mouse click game</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/06_click_game.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/06_click_game.py\">Code</a></td>\n</tr>\n<tr>\n<td>07_snake.py</td>\n<td>Snake game with BGM</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/07_snake.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/07_snake.py\">Code</a></td>\n</tr>\n<tr>\n<td>08_triangle_api.py</td>\n<td>Demonstration of triangle drawing APIs</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/08_triangle_api.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/08_triangle_api.py\">Code</a></td>\n</tr>\n<tr>\n<td>09_shooter.py</td>\n<td>Shoot'em up game with screen transitions</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/09_shooter.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/09_shooter.py\">Code</a></td>\n</tr>\n<tr>\n<td>10_platformer.py</td>\n<td>Side-scrolling platform game with map</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/10_platformer.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/10_platformer.py\">Code</a></td>\n</tr>\n<tr>\n<td>11_offscreen.py</td>\n<td>Offscreen rendering with Image class</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/11_offscreen.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/11_offscreen.py\">Code</a></td>\n</tr>\n<tr>\n<td>12_perlin_noise.py</td>\n<td>Perlin noise animation</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/12_perlin_noise.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/12_perlin_noise.py\">Code</a></td>\n</tr>\n<tr>\n<td>13_bitmap_font.py</td>\n<td>Drawing a bitmap font</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/13_bitmap_font.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/13_bitmap_font.py\">Code</a></td>\n</tr>\n<tr>\n<td>14_synthesizer.py</td>\n<td>Synthesizer using audio expansion features</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/14_synthesizer.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/14_synthesizer.py\">Code</a></td>\n</tr>\n<tr>\n<td>15_tiled_map_file.py</td>\n<td>Loading and drawing a Tile Map File (.tmx)</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/15_tiled_map_file.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/15_tiled_map_file.py\">Code</a></td>\n</tr>\n<tr>\n<td>16_transform.py</td>\n<td>Image rotation and scaling</td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/16_transform.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/16_transform.py\">Code</a></td>\n</tr>\n<tr>\n<td>99_flip_animation.py</td>\n<td>Animation with flip function (non-web platforms only)</td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/docs/images/99_flip_animation.gif\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/pyxel/blob/main/python/pyxel/examples/99_flip_animation.py\">Code</a></td>\n</tr>\n<tr>\n<td>30sec_of_daylight.pyxapp</td>\n<td>1st Pyxel Jam winning game by <a href=\"https://x.com/helpcomputer0\">Adam</a></td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/30sec_of_daylight.html\">Demo</a></td>\n<td><a href=\"https://github.com/kitao/30sec_of_daylight\">Code</a></td>\n</tr>\n<tr>\n<td>megaball.pyxapp</td>\n<td>Arcade ball physics game by <a href=\"https://x.com/helpcomputer0\">Adam</a></td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/megaball.html\">Demo</a></td>\n<td><a href=\"https://github.com/helpcomputer/megaball\">Code</a></td>\n</tr>\n<tr>\n<td>8bit-bgm-gen.pyxapp</td>\n<td>Background music generator by <a href=\"https://x.com/frenchbread1222\">frenchbread</a></td>\n<td><a href=\"https://kitao.github.io/pyxel/wasm/examples/8bit-bgm-gen.html\">Demo</a></td>\n<td><a href=\"https://github.com/shiromofufactory/8bit-bgm-generator\">Code</a></td>\n</tr>\n</table>\n\nThe examples can be executed with the following commands:\n\n```sh\ncd pyxel_examples\npyxel run 01_hello_pyxel.py\npyxel play 30sec_of_daylight.pyxapp\n```\n\n## How to Use\n\n### Create Application\n\nIn your Python script, import the Pyxel module, specify the window size with the `init` function, and then start the Pyxel application with the `run` function.\n\n```python\nimport pyxel\n\npyxel.init(160, 120)\n\ndef update():\n if pyxel.btnp(pyxel.KEY_Q):\n pyxel.quit()\n\ndef draw():\n pyxel.cls(0)\n pyxel.rect(10, 10, 20, 20, 11)\n\npyxel.run(update, draw)\n```\n\nThe arguments of the `run` function are the `update` function, which processes frame updates, and the `draw` function, which handles screen drawing.\n\nIn an actual application, it is recommended to wrap Pyxel code in a class, as shown below:\n\n```python\nimport pyxel\n\nclass App:\n def __init__(self):\n pyxel.init(160, 120)\n self.x = 0\n pyxel.run(self.update, self.draw)\n\n def update(self):\n self.x = (self.x + 1) % pyxel.width\n\n def draw(self):\n pyxel.cls(0)\n pyxel.rect(self.x, 0, 8, 8, 9)\n\nApp()\n```\n\nFor creating simple graphics without animation, you can use the `show` function to simplify your code.\n\n```python\nimport pyxel\n\npyxel.init(120, 120)\npyxel.cls(1)\npyxel.circb(60, 60, 40, 7)\npyxel.show()\n```\n\n### Run Application\n\nA created script can be executed using the `python` command:\n\n```sh\npython PYTHON_SCRIPT_FILE\n```\n\nIt can also be run with the `pyxel run` command:\n\n```sh\npyxel run PYTHON_SCRIPT_FILE\n```\n\nAdditionally, the `pyxel watch` command monitors changes in a specified directory and automatically re-runs the program when changes are detected:\n\n```sh\npyxel watch WATCH_DIR PYTHON_SCRIPT_FILE\n```\n\nDirectory monitoring can be stopped by pressing `Ctrl(Command)+C`.\n\n### Special Key Controls\n\nThe following special key actions are available while a Pyxel application is running:\n\n- `Esc`<br>\n Quit the application\n- `Alt(Option)+1`<br>\n Save the screenshot to the desktop\n- `Alt(Option)+2`<br>\n Reset the recording start time of the screen capture video\n- `Alt(Option)+3`<br>\n Save a screen capture video to the desktop (up to 10 seconds)\n- `Alt(Option)+8` or `A+B+X+Y+DL` on gamepad<br>\n Toggles screen scaling between maximum and integer\n- `Alt(Option)+9` or `A+B+X+Y+DR` on gamepad<br>\n Switch between screen modes (Crisp/Smooth/Retro)\n- `Alt(Option)+0` or `A+B+X+Y+DU` on gamepad<br>\n Toggle the performance monitor (fps/`update` time/`draw` time)\n- `Alt(Option)+Enter` or `A+B+X+Y+DD` on gamepad<br>\n Toggle fullscreen\n- `Shift+Alt(Option)+1/2/3`<br>\n Save image bank 0, 1, or 2 to the desktop\n- `Shift+Alt(Option)+0`<br>\n Save the current color palette to the desktop\n\n### How to Create Resources\n\nPyxel Editor can create images and sounds used in a Pyxel application.\n\nYou can start Pyxel Editor with the following command:\n\n```sh\npyxel edit PYXEL_RESOURCE_FILE\n```\n\nIf the specified Pyxel resource file (.pyxres) exists, it will be loaded. If it does not exist, a new file with the specified name will be created. If the resource file is omitted, a new file named `my_resource.pyxres` will be created.\n\nAfter starting Pyxel Editor, you can switch to another resource file by dragging and dropping it onto Pyxel Editor.\n\nThe created resource file can be loaded using the `load` function.\n\nPyxel Editor has the following editing modes.\n\n**Image Editor**\n\nThe mode for editing the image in each **image bank**.\n\n<a href=\"https://kitao.github.io/pyxel/wasm/examples/image_editor.html\">\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/image_editor.gif\">\n</a>\n\nYou can drag and drop an image file (PNG/GIF/JPEG) into the image editor to load the image into the currently selected image bank.\n\n**Tilemap Editor**\n\nThe mode for editing **tilemaps** that arrange images from the image banks in a tile pattern.\n\n<a href=\"https://kitao.github.io/pyxel/wasm/examples/tilemap_editor.html\">\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/tilemap_editor.gif\">\n</a>\n\nDrag and drop a TMX file (Tiled Map File) onto the tilemap editor to load its layer 0 into the currently selected tilemap.\n\n**Sound Editor**\n\nThe mode for editing **sounds** used for melodies and sound effects.\n\n<a href=\"https://kitao.github.io/pyxel/wasm/examples/sound_editor.html\">\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/sound_editor.gif\">\n</a>\n\n**Music Editor**\n\nThe mode for editing **musics** in which the sounds are arranged in order of playback.\n\n<a href=\"https://kitao.github.io/pyxel/wasm/examples/music_editor.html\">\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/music_editor.gif\">\n</a>\n\n### Other Resource Creation Methods\n\nPyxel images and tilemaps can also be created using the following methods:\n\n- Create an image from a list of strings using the `Image.set` function or the `Tilemap.set` function\n- Load an image file (PNG/GIF/JPEG) in Pyxel palette with `Image.load` function\n\nPyxel sounds can also be created using the following method:\n\n- Create a sound from strings with `Sound.set` function or `Music.set` function\n\nRefer to the API reference for the usage of these functions.\n\n### How to Distribute Applications\n\nPyxel supports a dedicated application distribution file format (Pyxel application file) that is cross-platform.\n\nA Pyxel application file (.pyxapp) is created using the `pyxel package` command:\n\n```sh\npyxel package APP_DIR STARTUP_SCRIPT_FILE\n```\n\nIf you need to include resources or additional modules, place them in the application directory.\n\nMetadata can be displayed at runtime by specifying it in the following format within the startup script. Fields other than `title` and `author` are optional.\n\n```python\n# title: Pyxel Platformer\n# author: Takashi Kitao\n# desc: A Pyxel platformer example\n# site: https://github.com/kitao/pyxel\n# license: MIT\n# version: 1.0\n```\n\nThe created application file can be run using the `pyxel play` command:\n\n```sh\npyxel play PYXEL_APP_FILE\n```\n\nA Pyxel application file can also be converted to an executable or an HTML file using the `pyxel app2exe` or `pyxel app2html` commands.\n\n## API Reference\n\n### System\n\n- `width`, `height`<br>\n The width and height of the screen\n\n- `frame_count`<br>\n The number of the elapsed frames\n\n- `init(width, height, [title], [fps], [quit_key], [display_scale], [capture_scale], [capture_sec])`<br>\n Initialize the Pyxel application with the screen size (`width`, `height`). The following options can be specified: the window title with `title`, the frame rate with `fps`, the key to quit the application with `quit_key`, the display scale with `display_scale`, the screen capture scale with `capture_scale`, and the maximum recording time of the screen capture video with `capture_sec`.<br>\n Example: `pyxel.init(160, 120, title=\"My Pyxel App\", fps=60, quit_key=pyxel.KEY_NONE, capture_scale=3, capture_sec=0)`\n\n- `run(update, draw)`<br>\n Start the Pyxel application and call the `update` function for frame update and the `draw` function for drawing.\n\n- `show()`<br>\n Show the screen and wait until the `Esc` key is pressed.\n\n- `flip()`<br>\n Refresh the screen by one frame. The application exits when the `Esc` key is pressed. This function is not available in the web version.\n\n- `quit()`<br>\n Quit the Pyxel application.\n\n### Resource\n\n- `load(filename, [excl_images], [excl_tilemaps], [excl_sounds], [excl_musics])`<br>\n Load the resource file (.pyxres). If an option is set to `True`, the corresponding resource will be excluded from loading. If a palette file (.pyxpal) with the same name exists in the same location as the resource file, the palette display colors will also be updated. The palette file contains hexadecimal entries for the display colors (e.g. `1100FF`), separated by newlines. The palette file can also be used to change the colors displayed in Pyxel Editor.\n\n- `user_data_dir(vendor_name, app_name)`<br>\n Returns the user data directory created based on `vendor_name` and `app_name`. If the directory does not exist, it will be created automatically. It is used to store high scores, game progress, and similar data.<br>\n Example: `print(pyxel.user_data_dir(\"Takashi Kitao\", \"Pyxel Shooter\"))`\n\n### Input\n\n- `mouse_x`, `mouse_y`<br>\n The current position of the mouse cursor\n\n- `mouse_wheel`<br>\n The current value of the mouse wheel\n\n- `btn(key)`<br>\n Return `True` if the `key` is pressed, otherwise return `False`. ([Key definition list](https://github.com/kitao/pyxel/blob/main//python/pyxel/__init__.pyi))\n\n- `btnp(key, [hold], [repeat])`<br>\n Return `True` if the `key` is pressed in that frame, otherwise return `False`. If `hold` and `repeat` are specified, after the `key` has been held down for `hold` frames or more, `True` is returned every `repeat` frames.\n\n- `btnr(key)`<br>\n Return `True` if the `key` is released in that frame, otherwise return `False`.\n\n- `mouse(visible)`<br>\n Show the mouse cursor if `visible` is `True`, and hide it if `visible` is `False`. The cursor's position continues to update even when it is hidden.\n\n### Graphics\n\n- `colors`<br>\n List of the palette display colors. The display color is specified by a 24-bit numerical value. Use `colors.from_list` and `colors.to_list` to directly assign and retrieve Python lists.<br>\n Example: `old_colors = pyxel.colors.to_list(); pyxel.colors.from_list([0x111111, 0x222222, 0x333333]); pyxel.colors[15] = 0x112233`\n\n- `images`<br>\n List of the image banks (instances of the Image class) (0-2)<br>\n Example: `pyxel.images[0].load(0, 0, \"title.png\")`\n\n- `tilemaps`<br>\n List of the tilemaps (instances of the Tilemap class) (0-7)\n\n- `clip(x, y, w, h)`<br>\n Set the drawing area of the screen from (`x`, `y`) with a width of `w` and a height of `h`. Call `clip()` to reset the drawing area to full screen.\n\n- `camera(x, y)`<br>\n Change the upper-left corner coordinates of the screen to (`x`, `y`). Call `camera()` to reset the upper-left corner coordinates to (`0`, `0`).\n\n- `pal(col1, col2)`<br>\n Replace color `col1` with `col2` when drawing. Call `pal()` to reset to the initial palette.\n\n- `dither(alpha)`<br>\n Apply dithering (pseudo-transparency) when drawing. Set `alpha` in the range `0.0`-`1.0`, where `0.0` is transparent and `1.0` is opaque.\n\n- `cls(col)`<br>\n Clear screen with color `col`.\n\n- `pget(x, y)`<br>\n Get the color of the pixel at (`x`, `y`).\n\n- `pset(x, y, col)`<br>\n Draw a pixel of color `col` at (`x`, `y`).\n\n- `line(x1, y1, x2, y2, col)`<br>\n Draw a line of color `col` from (`x1`, `y1`) to (`x2`, `y2`).\n\n- `rect(x, y, w, h, col)`<br>\n Draw a rectangle of width `w`, height `h` and color `col` from (`x`, `y`).\n\n- `rectb(x, y, w, h, col)`<br>\n Draw the outline of a rectangle of width `w`, height `h` and color `col` from (`x`, `y`).\n\n- `circ(x, y, r, col)`<br>\n Draw a circle of radius `r` and color `col` at (`x`, `y`).\n\n- `circb(x, y, r, col)`<br>\n Draw the outline of a circle of radius `r` and color `col` at (`x`, `y`).\n\n- `elli(x, y, w, h, col)`<br>\n Draw an ellipse of width `w`, height `h` and color `col` from (`x`, `y`).\n\n- `ellib(x, y, w, h, col)`<br>\n Draw the outline of an ellipse of width `w`, height `h` and color `col` from (`x`, `y`).\n\n- `tri(x1, y1, x2, y2, x3, y3, col)`<br>\n Draw a triangle with vertices (`x1`, `y1`), (`x2`, `y2`), (`x3`, `y3`) and color `col`.\n\n- `trib(x1, y1, x2, y2, x3, y3, col)`<br>\n Draw the outline of a triangle with vertices (`x1`, `y1`), (`x2`, `y2`), (`x3`, `y3`) and color `col`.\n\n- `fill(x, y, col)`<br>\n Fill the area connected with the same color as (`x`, `y`) with color `col`.\n\n- `blt(x, y, img, u, v, w, h, [colkey], [rotate], [scale])`<br>\n Copy the region of size (`w`, `h`) from (`u`, `v`) of the image bank `img`(0-2) to (`x`, `y`). If a negative value is assigned to `w` and/or `h`, the region will be flipped horizontally and/or vertically. If `colkey` is specified, it will be treated as a transparent color. If `rotate`(in degrees), `scale`(1.0 = 100%), or both are specified, the corresponding transformations will be applied.\n\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/blt_figure.png\">\n\n- `bltm(x, y, tm, u, v, w, h, [colkey], [rotate], [scale])`<br>\n Copy the region of size (`w`, `h`) from (`u`, `v`) of the tilemap `tm`(0-7) to (`x`, `y`). If a negative value is assigned to `w` and/or `h`, the region will be flipped horizontally and/or vertically. If `colkey` is specified, it will be treated as a transparent color. If `rotate`(in degrees), `scale`(1.0 = 100%), or both are specified, the corresponding transformations will be applied. The size of a tile is 8x8 pixels and is stored in a tilemap as a tuple of `(image_tx, image_ty)`.\n\n<img src=\"https://raw.githubusercontent.com/kitao/pyxel/main//docs/images/bltm_figure.png\">\n\n- `text(x, y, s, col)`<br>\n Draw a string `s` in color `col` at (`x`, `y`).\n\n### Audio\n\n- `sounds`<br>\n List of the sounds (instances of the Sound class) (0-63)<br>\n Example: `pyxel.sounds[0].speed = 60`\n\n- `musics`<br>\n List of the musics (instances of the Music class) (0-7)\n\n- `play(ch, snd, [tick], [loop], [resume])`<br>\n Play the sound `snd`(0-63) on channel `ch`(0-3). If `snd` is a list, the sounds will be played in sequence. The playback start position can be specified by `tick`(1 tick = 1/120 seconds). If `loop` is set to `True`, loop playback is performed. To resume the previous sound after playback ends, set `resume` to `True`.\n\n- `playm(msc, [tick], [loop])`<br>\n Play the music `msc`(0-7). The playback start position can be specified by `tick`(1 tick = 1/120 seconds). If `loop` is set to `True`, loop playback is performed.\n\n- `stop([ch])`<br>\n Stop playback of the specified channel `ch`(0-3). Call `stop()` to stop all channels.\n\n- `play_pos(ch)`<br>\n Get the sound playback position of channel `ch`(0-3) as a tuple of `(sound_no, note_no)`. Return `None` when playback has stopped.\n\n### Math\n\n- `ceil(x)`<br>\n Return the smallest integer that is greater than or equal to `x`.\n\n- `floor(x)`<br>\n Return the largest integer that is less than or equal to `x`.\n\n- `sgn(x)`<br>\n Return `1` when `x` is positive, `0` when it is `0`, and `-1` when it is negative.\n\n- `sqrt(x)`<br>\n Return the square root of `x`.\n\n- `sin(deg)`<br>\n Return the sine of `deg` degrees.\n\n- `cos(deg)`<br>\n Return the cosine of `deg` degrees.\n\n- `atan2(y, x)`<br>\n Return the arctangent of `y`/`x` in degrees.\n\n- `rseed(seed)`<br>\n Sets the seed of the random number generator.\n\n- `rndi(a, b)`<br>\n Return a random integer greater than or equal to `a` and less than or equal to `b`.\n\n- `rndf(a, b)`<br>\n Return a random floating-point number greater than or equal to `a` and less than or equal to `b`.\n\n- `nseed(seed)`<br>\n Set the seed of Perlin noise.\n\n- `noise(x, [y], [z])`<br>\n Return the Perlin noise value for the specified coordinates.\n\n### Image Class\n\n- `width`, `height`<br>\n The width and height of the image\n\n- `set(x, y, data)`<br>\n Set the image at (`x`, `y`) using a list of strings.<br>\n Example: `pyxel.images[0].set(10, 10, [\"0123\", \"4567\", \"89ab\", \"cdef\"])`\n\n- `load(x, y, filename)`<br>\n Load an image file (PNG/GIF/JPEG) at (`x`, `y`).\n\n- `pget(x, y)`<br>\n Get the color of the pixel at (`x`, `y`).\n\n- `pset(x, y, col)`<br>\n Draw a pixel with the color `col` at (`x`, `y`).\n\n### Tilemap Class\n\n- `width`, `height`<br>\n The width and height of the tilemap\n\n- `imgsrc`<br>\n The image bank (0-2) referenced by the tilemap\n\n- `set(x, y, data)`<br>\n Set the tilemap at (`x`, `y`) using a list of strings.<br>\n Example: `pyxel.tilemap(0).set(0, 0, [\"0000 0100 a0b0\", \"0001 0101 a1b1\"])`\n\n- `load(x, y, filename, layer)`<br>\n Load the `layer` (0-) from the TMX file (Tiled Map File) at (`x`, `y`).\n\n- `pget(x, y)`<br>\n Get the tile at (`x`, `y`). A tile is represented as a tuple of `(image_tx, image_ty)`.\n\n- `pset(x, y, tile)`<br>\n Draw a `tile` at (`x`, `y`). A tile is represented as a tuple of `(image_tx, image_ty)`.\n\n### Sound Class\n\n- `notes`<br>\n List of notes (0-127). The higher the number, the higher the pitch. Note `33` corresponds to 'A2'(440Hz). Rest notes are represented by `-1`.\n\n- `tones`<br>\n List of tones (0:Triangle / 1:Square / 2:Pulse / 3:Noise)\n\n- `volumes`<br>\n List of volumes (0-7)\n\n- `effects`<br>\n List of effects (0:None / 1:Slide / 2:Vibrato / 3:FadeOut / 4:Half-FadeOut / 5:Quarter-FadeOut)\n\n- `speed`<br>\n Playback speed. `1` is the fastest, and the larger the number, the slower the playback speed. At `120`, the length of one note becomes 1 second.\n\n- `set(notes, tones, volumes, effects, speed)`<br>\n Set notes, tones, volumes, and effects using a string. If the length of tones, volumes, or effects are shorter than the notes, they will be repeated from the beginning.\n\n- `set_notes(notes)`<br>\n Set the notes using a string made of 'CDEFGAB'+'#-'+'01234' or 'R'. It is case-insensitive, and whitespace is ignored.<br>\n Example: `pyxel.sounds[0].set_notes(\"G2B-2D3R RF3F3F3\")`\n\n- `set_tones(tones)`<br>\n Set the tones with a string made of 'TSPN'. Case-insensitive and whitespace is ignored.<br>\n Example: `pyxel.sounds[0].set_tones(\"TTSS PPPN\")`\n\n- `set_volumes(volumes)`<br>\n Set the volumes with a string made of '01234567'. Case-insensitive and whitespace is ignored.<br>\n Example: `pyxel.sounds[0].set_volumes(\"7777 7531\")`\n\n- `set_effects(effects)`<br>\n Set the effects with a string made of 'NSVFHQ'. Case-insensitive and whitespace is ignored.<br>\n Example: `pyxel.sounds[0].set_effects(\"NFNF NVVS\")`\n\n### Music Class\n\n- `seqs`<br>\n A two-dimensional list of sounds (0-63) across multiple channels\n\n- `set(seq0, seq1, seq2, ...)`<br>\n Set the lists of sound (0-63) for each channel. If an empty list is specified, that channel will not be used for playback.<br>\n Example: `pyxel.musics[0].set([0, 1], [], [3])`\n\n### Advanced API\n\nPyxel includes an \"Advanced API\" that is not mentioned in this reference, as it may confuse users or require specialized knowledge to use.\n\nIf you are confident in your skills, try creating amazing works using [this](https://github.com/kitao/pyxel/blob/main//python/pyxel/__init__.pyi) as a guide!\n\n## How to Contribute\n\n### Submitting Issues\n\nUse the [Issue Tracker](https://github.com/kitao/pyxel/issues) to submit bug reports and feature or enhancement requests. Before submitting a new issue, make sure there are no similar open issues.\n\n### Functional Testing\n\nAnyone who manually tests the code and reports bugs or suggestions for enhancements in the [Issue Tracker](https://github.com/kitao/pyxel/issues) is very welcome!\n\n### Submitting Pull Requests\n\nPatches and fixes are accepted in the form of pull requests (PRs). Make sure that the issue the pull request addresses is open in the Issue Tracker.\n\nSubmitting a pull request implies that you agree to license your contribution under the [MIT License](https://github.com/kitao/pyxel/blob/main//LICENSE).\n\n## Other Information\n\n- [FAQ](https://github.com/kitao/pyxel/blob/main//docs/faq-en.md)\n- [User Examples](https://github.com/kitao/pyxel/wiki/Pyxel-User-Examples)\n- [Developer X account](https://x.com/kitao)\n\n## License\n\nPyxel is licensed under the [MIT License](https://github.com/kitao/pyxel/blob/main//LICENSE). It can be reused in proprietary software, provided that all copies of the software or its substantial portions include a copy of the MIT License terms and a copyright notice.\n\n## Recruiting Sponsors\n\nPyxel is looking for sponsors on GitHub Sponsors. Please consider sponsoring Pyxel to support its continued maintenance and feature development. As a benefit, sponsors can consult directly with the Pyxel developer. For more details, please visit [this page](https://github.com/sponsors/kitao).\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A retro game engine for Python",
"version": "2.2.8",
"project_urls": {
"Changelog": "https://github.com/kitao/pyxel/blob/main/CHANGELOG.md",
"Homepage": "https://github.com/kitao/pyxel",
"Repository": "https://github.com/kitao/pyxel.git"
},
"split_keywords": [
"game",
" gamedev"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9ad2c13d8644b3e31bcd511a3dd1b0853d2dd4abfebd16245aa1da44cf231cef",
"md5": "5549d399a5c65c98fa8d2f8942ac64e2",
"sha256": "0bdbe2460f6516b8ce49e2f34b30254aef6fbe454631d223a890e05e55af0812"
},
"downloads": -1,
"filename": "pyxel-2.2.8-cp38-abi3-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "5549d399a5c65c98fa8d2f8942ac64e2",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 3102524,
"upload_time": "2024-12-08T22:16:35",
"upload_time_iso_8601": "2024-12-08T22:16:35.357125Z",
"url": "https://files.pythonhosted.org/packages/9a/d2/c13d8644b3e31bcd511a3dd1b0853d2dd4abfebd16245aa1da44cf231cef/pyxel-2.2.8-cp38-abi3-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "517cb418b2dfd156f06b0f268321a97e91c266f68c5361013d99dbc1fa142c01",
"md5": "3d88116e9dc2dbf8958dddd6e2ab45ba",
"sha256": "ab7b48c7e3fbe7adee61ea07ca5ca45b90ebfd9625374c7de9bd586e3ca8ba89"
},
"downloads": -1,
"filename": "pyxel-2.2.8-cp38-abi3-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "3d88116e9dc2dbf8958dddd6e2ab45ba",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 2935191,
"upload_time": "2024-12-08T22:16:37",
"upload_time_iso_8601": "2024-12-08T22:16:37.788223Z",
"url": "https://files.pythonhosted.org/packages/51/7c/b418b2dfd156f06b0f268321a97e91c266f68c5361013d99dbc1fa142c01/pyxel-2.2.8-cp38-abi3-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "33b25158ac28a57d8a224389be5dff4a37382d68a0e35f81b1aea3e308a95f7a",
"md5": "985d99c4286d47ef9a92c0f25af4b920",
"sha256": "d5ad3b15bf78116f07a1bcb66f22631559b65cf15d15298a972f4d97bccde344"
},
"downloads": -1,
"filename": "pyxel-2.2.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"has_sig": false,
"md5_digest": "985d99c4286d47ef9a92c0f25af4b920",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 2918239,
"upload_time": "2024-12-08T22:16:39",
"upload_time_iso_8601": "2024-12-08T22:16:39.722458Z",
"url": "https://files.pythonhosted.org/packages/33/b2/5158ac28a57d8a224389be5dff4a37382d68a0e35f81b1aea3e308a95f7a/pyxel-2.2.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4092f422bf47e573baf69bd2b8ac928d97686f729c91774a9468b8ff89b16268",
"md5": "014107308267be58d8eeb17669522036",
"sha256": "56d4ea47efb0080f0084052f7817a94170a7346f32ef3de61807650190aad9c0"
},
"downloads": -1,
"filename": "pyxel-2.2.8-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
"has_sig": false,
"md5_digest": "014107308267be58d8eeb17669522036",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 2935863,
"upload_time": "2024-12-08T22:16:41",
"upload_time_iso_8601": "2024-12-08T22:16:41.067917Z",
"url": "https://files.pythonhosted.org/packages/40/92/f422bf47e573baf69bd2b8ac928d97686f729c91774a9468b8ff89b16268/pyxel-2.2.8-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c6de2f25593532860d014bd8d77dfb4d1ce09651c01a19501ba37ad2fc340d4e",
"md5": "d4e8eabf7756a7fe77e3484246a55fea",
"sha256": "76daae418838b207d340d03b7ca9a580b8147689b680cd15098b32085d176be8"
},
"downloads": -1,
"filename": "pyxel-2.2.8-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl",
"has_sig": false,
"md5_digest": "d4e8eabf7756a7fe77e3484246a55fea",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 3176559,
"upload_time": "2024-12-08T22:16:43",
"upload_time_iso_8601": "2024-12-08T22:16:43.137711Z",
"url": "https://files.pythonhosted.org/packages/c6/de/2f25593532860d014bd8d77dfb4d1ce09651c01a19501ba37ad2fc340d4e/pyxel-2.2.8-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ba3bcaefdf83446ac7c06fcd101c426f573208b02274ae785d16fe2f0dc69448",
"md5": "d6cd495c60f6f177a2b87226d72253eb",
"sha256": "1c81844b3282d5caf182075e105dc11f1edce70ef300256cf8888a2b8dafdb1d"
},
"downloads": -1,
"filename": "pyxel-2.2.8-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "d6cd495c60f6f177a2b87226d72253eb",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 2976416,
"upload_time": "2024-12-08T22:16:45",
"upload_time_iso_8601": "2024-12-08T22:16:45.079430Z",
"url": "https://files.pythonhosted.org/packages/ba/3b/caefdf83446ac7c06fcd101c426f573208b02274ae785d16fe2f0dc69448/pyxel-2.2.8-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "709486738a1f073ca808ff72f0d7d98dfd249808cf2ee3998b6af1e17e7d78e4",
"md5": "e5cef62c3dd17171d44bcbc23d2041cc",
"sha256": "1497c1c446be0176088260fe9ef589a1fd8582053eae2a622f05ac27bed8dd8b"
},
"downloads": -1,
"filename": "pyxel-2.2.8-cp38-abi3-win32.whl",
"has_sig": false,
"md5_digest": "e5cef62c3dd17171d44bcbc23d2041cc",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 3056412,
"upload_time": "2024-12-08T22:16:46",
"upload_time_iso_8601": "2024-12-08T22:16:46.994127Z",
"url": "https://files.pythonhosted.org/packages/70/94/86738a1f073ca808ff72f0d7d98dfd249808cf2ee3998b6af1e17e7d78e4/pyxel-2.2.8-cp38-abi3-win32.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "965ea6e5750a3af6ad1b6fe5008f5c5a416b2a94b5fe18f8ef236ab53acf9996",
"md5": "f1061f9359511337f88fcf55c83ba870",
"sha256": "14d22d85ccb57aab2f043d4e82b9d404c513501efbf5fb240eead02708b6a873"
},
"downloads": -1,
"filename": "pyxel-2.2.8-cp38-abi3-win_amd64.whl",
"has_sig": false,
"md5_digest": "f1061f9359511337f88fcf55c83ba870",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 3202953,
"upload_time": "2024-12-08T22:16:49",
"upload_time_iso_8601": "2024-12-08T22:16:49.009835Z",
"url": "https://files.pythonhosted.org/packages/96/5e/a6e5750a3af6ad1b6fe5008f5c5a416b2a94b5fe18f8ef236ab53acf9996/pyxel-2.2.8-cp38-abi3-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-08 22:16:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "kitao",
"github_project": "pyxel",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pyxel"
}