π Try this Example
View the complete source code on GitHub. Steps to run:- Install fal:
- Authenticate:
- Clone the demos repo and install dependencies:
- Run the backend (local dev):
- Run the frontend:
myuser/myapp/webrtc).
Deploy to fal
To host the backend, deploy the app and use the resulting endpoint in the UI:your-username/your-app/webrtc.
Game modes and seed image
The backend defaults to theuniversal mode in MatrixGame2.setup(). Other
supported modes include universal and gta_drive. To switch modes, update
self._default_mode and self._mode_seed_dirs in matrix.py.
The seed image path is derived in MatrixGame2.setup() from the selected mode.
If you want a different seed, update self._default_seed_path in matrix.py.