How to migrate code to version 1.5
To make your code compatible with version 1.5, follow these steps:
- Rename the
caption
option ininit
totitle
- Rename the
scale
option ininit
todisplay_scale
- Remove the
palette
option frominit
(you can modify the palette colors with thecolors
array after initialization) - Remove the
fullscreen
option frominit
(you can toggle fullscreen mode using thefullscreen
function after initialization) - If an undefined key name error occurs, rename the key according to the key definitions
- Change
get
andset
in theImage
andTilemap
classes topget
andpset
, respectively - Multiply the
u
,v
,w
, andh
parameters ofbltm
by 8 (asbltm
now operates in pixel units) - Update the members and methods of the
Sound
andMusic
classes to their new names
I can’t use the pyxeleditor
command in version 1.5+.
Starting from version 1.5, Pyxel's tools have been integrated into the pyxel
command. To access the resource editor, use the following command: pyxel edit [PYXEL_RESOURCE_FILE]
.
Where do I start to learn Pyxel?
It is recommended to try Pyxel's example code in the following order: 01, 05, 03, 04, 02.
Are there any books on Pyxel?
Currently, two books have been published in Japanese, but neither is authored by the developer of Pyxel. Additionally, there are no English versions available at this time.
What is the difference between the update
and draw
functions?
The update
function is called every frame, but the draw
function may be skipped if the processing time exceeds the allowable limit. This design in Pyxel reduces the impact of rendering load and OS interruptions, enabling smooth animation.
Can I change the palette colors in Pyxel Editor?
By placing a Pyxel palette file (.pyxpal) in the same directory as the Pyxel resource file (.pyxres), you can match the palette colors used in Pyxel Editor to those in the resource file. For instructions on creating a Pyxel palette file, please refer to the README.
What features are planned for future releases?
The following features and improvements are planned:
- Add a Pyxel app launcher
- Overhaul of sound functions and MML support
- Improve usability of Pyxel Editor
- Add Pyxel tutorials for children
Can I use Pyxel for commercial purposes without the author's permission?
As long as you comply with the MIT License and clearly display the full text of the copyright and license in the source code or license file, you are free to sell or distribute it without the author’s permission. However, since Pyxel is developed by a single individual, it would be appreciated if you could contact the author or consider sponsoring their work if possible.