Preview link: https://diraneyya.github.io/sdl2-game-starter/
This is a minimal C program that can be built into web and native targets (currently, only Mac OS X is supported).
-
Install the Emscripten SDK using the instructions below:
https://emscripten.org/docs/getting_started/downloads.html -
Clone this repository and cd into it:
git clone [email protected]:diraneyya/sdl2-game-starter.git
cd sdl2-game-starter
- Run
make web
to make the web target.
- Artifact:
index.html
(at the root of the repository) - How to run: using the live-server extension in vscode or the emrun command by typing
emrun index.html
in the shell.
- Run
make macos
to make the Mac OS X target.
- Artifact:
index.app
(at the root of the repository). - How to run: double click in Mac OS X