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 git@github.com:diraneyya/sdl2-game-starter.git cd sdl2-game-starter- Run
make webto 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.htmlin the shell.
- Run
make macosto make the Mac OS X target.
- Artifact:
index.app(at the root of the repository). - How to run: double click in Mac OS X

