I might've gave somebody an idea on making a PP-like engine, but for the Sega Master System or even a PP converter. What do you think of that? Because I would like PP games to run on platforms other than just the internet browser.
There are tools out there that can convert an HTML into an APK, like webintoapp , or similar.
One way to make it easier to convert to other platforms/engines could be the ability to export the game data into something that can be read by other platforms, like, for example:
- A JSON or a YAML with all the data: easy to implement, but the graphics may have to be represented in an akward way;
- A PNG containing the graphics, plus a set of Tiled-compatible TMX and TSX files: would require more implementation work, but would load on Tiled without any additional effort, and many engines have plugins for importing those, or may even be able to work with them out of the box.
The idea would be that, if someone ever wanted to migrate their game to other engine, it would be as painless as it could possibly be. Of course, the various behaviours would have to be implemented from scratch on the target engine.
Starting to experiment with data extraction: https://github.com/haroldo-ok/pocket-platformer-exporter
The work-in-progress script above extracts the level/sprite data from the exported HTML into a JSON file.
Example exported JSON: https://github.com/haroldo-ok/pocket-platformer-exporter/blob/07180426cd61af45f6...
Now, the script can also generate a Tiled-compatible TSX file, including custom properties and animations.
Example TSX file: https://github.com/haroldo-ok/pocket-platformer-exporter/blob/71daea0e84569760a9...The tileset opened in Tiled:
The script now exports the levels into Tiled-compatible TMX files (only map layer for now; objects will be next):
https://github.com/haroldo-ok/pocket-platformer-exporter/blob/bb766f5f469b8c7ea8...
Original level:
Converted to Tiled (so far):