Skip to content

Anton-Gasse/flask-pygbag-gamehost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-pygbag-gamehost

Flask template to host an app that was built with the pygbag module

How to use it

  1. Clone this repository

  2. Build your pygame project with pygbag (click here for further command explanation)

python3 -m pygbag --build main.py
  1. Replace the build-folder with the folder that was built in step 2

  2. Run the flask server:

python3 app.py

Edit for own usage

  • Add your own routes in app.py for more functionality e.g.:
    • Make usage of python libraries that are not compatible with wasm
    • Using files like images in the index.html
  • Change the SSL keys:
    • to your own public and private key
    • or change the ssl_context to the string "adhoc" for local testing

About

Flask template to host an app that was built with the pygbag module (see: https://github.com/pygame-web/pygbag)

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages