Porting your C/C++ SDL2 game to the web with Emscripten

  Рет қаралды 13,265

Avery

Avery

Күн бұрын

Пікірлер: 17
@adityaiyengar152
@adityaiyengar152 Жыл бұрын
This is gold. I've been struggling to port from sdl to emscripten for 2 days now. THANK YOU!!!
@jarreed0
@jarreed0 Жыл бұрын
Feel free to share your project wants you've got it working. I'd love to check it out
@superryan2697
@superryan2697 10 ай бұрын
Can you use SFML instead of SDL2?
@mmujtabah
@mmujtabah 8 ай бұрын
Have you figure it out anything?
@Karttibone
@Karttibone 2 жыл бұрын
Does it work with both sdl run on gpu and cpu? Edit: Ok saw the accelerated tag. Thx man!
@dsnahogaragames
@dsnahogaragames Жыл бұрын
Awesome video!! I wonder if this could work with glfw 😮
@levshx
@levshx 19 күн бұрын
Yes, glfw works. imgui output works too :D
@SrAzion
@SrAzion 2 жыл бұрын
Very cool
@jabahuntercrypto
@jabahuntercrypto Жыл бұрын
Guy, i like this
@OriginRow
@OriginRow 2 жыл бұрын
Will it work UE games made with blueprints?
@jarreed0
@jarreed0 2 жыл бұрын
Sorry, I'm not sure
@niorad
@niorad 2 жыл бұрын
There are some community efforts to make web-export/wasm etc. work for UE but nothing official. If you want to export projects for web, Unreal is not the first choice.
@OriginRow
@OriginRow 2 жыл бұрын
@@niorad Thank you for giving some vibes. I will give it a try. And one question Will emsdk or wasm whatever it is....will it detect graphics libraries automatically WebGL 2 ?
@DzwiekiOtchlani
@DzwiekiOtchlani Жыл бұрын
Seems interesting but for simple games it would be easier for me to just rewrite it to js/ts than to play with this toolchain 💀
@coolcodingcat
@coolcodingcat 6 ай бұрын
I am trying this, but I get these errors: index.js:940 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'. index.js:941 falling back to ArrayBuffer instantiation index.js:4249 emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up. What am I doing wrong? I am using nginx, and I think first of all I have to update mime.types, but I am not sure what to put, but I want to make it recognaize wasm files properly
@coolcodingcat
@coolcodingcat 6 ай бұрын
I fixed the first 2 errors by adding 'application/wasm wasm' as a line inside /etc/nginx/mime.types
Compiling PGE For Web Browsers!
23:14
javidx9
Рет қаралды 43 М.
Compile C/C++ raylib game Into WebAssembly
16:07
Programming With Nick
Рет қаралды 19 М.
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 34 МЛН
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 145 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 9 МЛН
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 34 МЛН
Writing 2D Games in C using SDL by Thomas Lively
47:32
CS50
Рет қаралды 189 М.
Why do developers hate Rust?
8:20
Let's Get Rusty
Рет қаралды 139 М.
Google - C/C++ in the browser with WebAssembly + Emscripten
9:49
Open Design Alliance
Рет қаралды 10 М.
Why do we use SDL with C & C++?
16:26
pikuma
Рет қаралды 45 М.
how Google writes gorgeous C++
7:40
Low Level
Рет қаралды 939 М.
Raylib Game Development Tools -- Work With Any Game Engine!
11:54
Gamefromscratch
Рет қаралды 37 М.
C++ Bonus [047] - C++ im Browser - WebAssembly mit Emscripten
15:56
Brotcrunsher
Рет қаралды 2,2 М.
Learning SDL2 in 48 Hours - GMTK Game Jam 2020
9:19
PolyMars
Рет қаралды 3,1 МЛН
I Made The Ultimate Cheating Device
9:39
ChromaLock
Рет қаралды 1,4 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 34 МЛН