Skip to content

python-wasm / pyodide #1

@pmp-p

Description

@pmp-p

Hi, saw your wonderings at end of readme. Since i have ported a number of game engines to python+wasm already, let me try to help a bit there :

todo in order, the first being the key and maybe the hardest :

  • decompose app.main() infinite loop into a stepping function that you will connect later directly to requestAnimationFrame().
  • once done get rid of threads, use asyncio instead : it will also solve your problem of drawing outside main thread.
  • pyodide could use normal SDL2 build (ie without wajic) since SDL2 is present into pyodide initially for supporting pyxel and pygame-ce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions