In this video we're looking at how to compile SDL3, SDL_image, SDL_mixer and a couple of other libraries with Emscripten. We then use those libraries in order to compile and run a game developed with SDL3 in the web browser. This is a tutorial for those who'd like to share their game development projects on the web.
#gamedev #webdevelopment
If you enjoy my videos, please consider supporting me via ko-fi
https://ko-fi.com/constref
Making a game from scratch with C/C++, CMake, SDL3, SDL_image, SDL_mixer
• How to Make a 2D Game in C++ and SDL3
Join us on Discord to discuss:
/ discord
00:00 Introduction
00:59 Install Enscripten
02:24 Using Python
03:37 How to Compile and Run Emscripten Programs
06:06 Compiling SDL with Emscripten
08:48 Compiling SDL_image with Emscripten
10:18 Compile SDL_mixer with Emscripten
11:21 Setup game-loop for Emscripten
15:30 Resource Files and Data Loading
17:28 Build the Game and Run in the Browser!