
The following can be specified as options: the window title with title, the frame rate with fps, the key to quit the application with quit_key, the scale of the display with display_scale, the scale of the screen capture with capture_scale, and the maximum recording time of the screen capture video with capture_sec.Į.g. Initialize the Pyxel application with screen size ( width, height). Pyxel play PYXEL_APP_FILE API Reference System
Pyxel supports a dedicated application distribution file format (Pyxel application file) that works across platforms.Ĭreate the Pyxel application file (.pyxapp) with the following command: Please refer to the API reference for usage of these functions.
Create a sound from strings with t function or t function. Pyxel sounds can also be created in the following method: Load an image file (png/gif/jpeg) in Pyxel palette with Image.load function. Create an image from a list of strings with t function or t function. Pyxel images and tilemaps can also be created by the following methods: The mode to edit musics in which the sounds are arranged in order of playback. The mode to edit tilemaps in which images of the image banks are arranged in a tile pattern. Pyxel Editor has the following edit modes.īy dragging and dropping an image file (png/gif/jpeg) onto the Image Editor screen, the image can be loaded into the currently selected image bank. The created resource file can be loaded with load function. This operation enables to combine multiple resource files into one. If the resource file is dragged and dropped while holding down Ctrl(Cmd) key, only the resource type (Image/Tilemap/Sound/Music) that is currently being edited will be loaded. If the resource file is omitted, the name is my_resource.pyxres.Īfter starting Pyxel Editor, the file can be switched by dragging and dropping another resource file.
If the specified Pyxel resource file (.pyxres) exists, the file is loaded, and if it does not exist, a new file is created with the specified name.