Masendor
Masendor copied to clipboard
playing through the browser
Can it be used in something in the cloud online for everyone? like heroku provider which is partially free?
Then available through the browser
- Implementation idea-
Quite an interesting question. I am not quite sure how pygame really work in browser or maybe it may work with some sort of emulator? The issue with online complier/virtual/cloud may be the amount of ram (about at 1.4 GB - 2 GB in the current version) require to run the game.
I will have a look for this potential adaption later.
Here is one way to run pygame on browser but the free version only allow 500 MB ram: https://replit.com/
The game could work there if it disable animation function
I been using pygbag and I got some of my games to work on web.
It can be a bit tricky because not everything is working there. For example the pygame.PixelArray does not seem to exist there (yet?) so if we are depended on it, it can be hard.
If using pygbag all the resources are done locally, there is not "cloud" in that sense.
If you want multiplayer in cloud it whole other complexity
Well seem like the pygbag project is a good choice since it also has mobile port. Consider that the project is still active. Probably worth waiting for them to catch up with newer pygame update. It will take time for this game to be ready anyway.
The game multiplayer probably would best be done via IP connection or something I guess since it is probably the most simple method. (Unless we want to add matchmaking server or something but that is another issue entirely)
Thanks for the suggestion :)