12-03-2023, 03:18 PM
I'm currently trying to create some sort of "old-school-fan-made-fighting-game" inspired by Mugen with the purpose of learning. I always give up on my projects, but at least this code will be reusable. I'm currently creating my own file format for the characters, I'm calling it the ".chr". It's made out of textures and character data. I have learned a bit of Python so I could make a script that converts PNGs and a readable JSON into this format. It supports custom palettes and some sort of compression. It is also usually smaller than PNG files, even with the additional data. The format is partly working, already. The converter script is working fine and my game can already load and display the textures from these files, but now I am working on something I'm calling the "frame data". It defines the animations and the offsets of each frame on the sprite sheet. If I don't give up on this game soon enough I might create some thread for it in the future. But even if I give up on working on this game, I'm glad I'm making this code to be as reusable as possible. It is very modular with some features you would find in a game engine.
...Working with binary in Python is easier than I thought.
...Working with binary in Python is easier than I thought.