Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/talandar99/raylib_web_game_template
This is template for running raylib games and building them for web using emscripten
https://github.com/talandar99/raylib_web_game_template
c emscripten emsdk example game-development raygui raylib raylib-c template wasm web-assembly
Last synced: about 2 months ago
JSON representation
This is template for running raylib games and building them for web using emscripten
- Host: GitHub
- URL: https://github.com/talandar99/raylib_web_game_template
- Owner: Talandar99
- Created: 2024-01-23T08:38:53.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-23T20:46:16.000Z (12 months ago)
- Last Synced: 2024-01-23T22:08:23.480Z (12 months ago)
- Topics: c, emscripten, emsdk, example, game-development, raygui, raylib, raylib-c, template, wasm, web-assembly
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# raylib_web_game_template
This is template for running raylib games and building them for web using emscripten
##### side note
i use raylib with raygui but it's fully optional## How to setup for development
- `cd setup_scripts`
- `./setup_raylib_for_desktop.sh`
- now you can use `./run.sh` for running your game## How to setup for web build
- `cd setup_scripts`
- `./setup_raylib_for_web.sh`
- if you will try to use `./run.sh` it will cause an error. You should use setup for desktop setup for development process
- now you can use `./build_web.sh`## How to build for web
- setup for web first
- `cd setup_scripts`
- `./build_web.sh`
- all files will be in `web_build` directory## Running web build using python
- `cd web_build`
- `python -m http.server`## Why 2 setups?
- raylib have to be build first before using it for development or web## Dependancies
- gcc with all libraries needed to build code
- git
- bash
- UNIX based operating system