Many of you have attended the Python contest and created nice games. The editor has really lower the barrier to start coding for Pokitto.
Now I would like to hear how we could make the editor even more amazing. How would you like the editor be improved to make creating games still easier?
I think it would be helpful to have a ānew projectā button in the project tab. I know that you can just rename an existing project to make a new one, but before I figured that out, I was looking through every menu for how to make a new project.
Another thing I would like is a way to pause the emulator, because it feels like my low-powered laptop is working hard emulating the game when Iām not testing it.
Also, this isnāt a direct request about the editor itself, but it would be great if it would be possible to flip images horizontally in python.
The editor is really easy to prototype things with, really great job! This is a big development for Pokitto.
How is Mrs Clause? I hope she is well. I have been a good boy this year and I want a grid view on the sprite editing and a way to resize a sprite or create a new sprite at a specific size.
My main suggestions are already issues on the GitHub repo but Iāll reiterate them here for the beneefit of people who havenāt seen the issues.
Firstly, a way to make the editor colour image pixels without any additional restrictions on the identifiers that people can use.
(E.g. by using special comments.)
Iād be nice if we can get sound in the emulator, not sure how thatād work online. I think I remember needing the users āpermisionā in some way to do sound, like tying the audio playback to a button or something (itās been a long time since I looked at sound, pre-html5 days).
No need to ask for permission. The problem with sound is that the current HTML5 API is CPU-intensive and deprecated. The replacement API is still being designed and not available yet.
It should be easier for the offline emulator, but I have to look into how audio works in SDL first.
You have to load in wav data and then use a callback to populate a buffer.
Iām pretty sure Iāve got an example somewhere, but it might be in C# rather than C++ and Iād have to dig it out.
(A long time ago I wrote a C# wrapper for SDL, but I never published it because then people would expect me to maintain it. :P)
Iāve found the example I was thinking of and it is in C#.
I can PM it to you if you think it will be useful.
(And explain any C#-specific stuff that you might not be familiar with, but most of it speaks for itself, itās only the Marshal class that I think might be a bit confusing.)
Iāll have a dig around to see if Iāve got a C++ example of doing SDL audio, but Iām not sure if I do or not.
(Iāve got an SDL+OpenGL demo if it helps. :P)
Looks like I donāt have any C++ examples, just the C# example.
I was going to ask for a āTilemap.get_tile_id(x, y)ā but noticed itās has already been added. Iām not sure about the purpose of the ātileSizeā argument thoughā¦
Another thing concerning the API. A way to read/write data on Pokittoās EEPROM would be nice.