Skip to content

antoineMoPa/emscripten-sdl-sample-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Emscripten + SDL basic example

This project is contains very basic sample code to get started with Emscripten and SDL.

Let this Readme guide you from installing emscripten to actually running this project!

Step 1: Installing Emsdk

First install emsdk

# Fetch the latest version of the emsdk (not needed the first time you clone)
git pull

# Download and install the latest SDK tools.
./emsdk install latest

# Make the "latest" SDK "active" for the current user. (writes .emscripten file)
./emsdk activate latest

# Activate PATH and other environment variables in the current terminal
source ./emsdk_env.sh

Source: https://emscripten.org/docs/getting_started/downloads.html

Step 2 and 3: Building and running

Run:

make build-and-serve

See Makefile to see what is happening.

Then visit: http://localhost:8000/hello.html

You should see a blue square!

About

Very basic sample code to get started with Emscripten and SDL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published