Giter Site home page Giter Site logo

playing through the browser about masendor HOT 4 OPEN

remance avatar remance commented on May 16, 2024
playing through the browser

from masendor.

Comments (4)

remance avatar remance commented on May 16, 2024

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.

from masendor.

remance avatar remance commented on May 16, 2024

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

from masendor.

coppermouse avatar coppermouse commented on May 16, 2024

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

from masendor.

remance avatar remance commented on May 16, 2024

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 :)

from masendor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.