Тёмный

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

Avery
Подписаться 6 тыс.
Просмотров 13 тыс.
50% 1

Code: github.com/jar...
emscripten.org...
Play the sheep game:
thechamps.co/s...

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@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 9 месяцев назад
Can you use SFML instead of SDL2?
@mmujtabah
@mmujtabah 7 месяцев назад
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 😮
@ariondeno
@ariondeno 2 года назад
Very cool
@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 ?
@jabahuntercrypto
@jabahuntercrypto Год назад
Guy, i like this
@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
Далее
Load OBJ Files - Raylib Tutorial
13:45
Просмотров 14 тыс.
Compile C/C++ raylib game Into WebAssembly
16:07
Просмотров 18 тыс.
Nah, if that's me? I'm tapping. 😤 #nocommentary
00:45
Why do we use SDL with C & C++?
16:26
Просмотров 44 тыс.
how Google writes gorgeous C++
7:40
Просмотров 914 тыс.
Making a Game With C++ and SDL2
5:34
Просмотров 637 тыс.
Compilers, How They Work, And Writing Them From Scratch
23:53
Giving Personality to Procedural Animations using Math
15:30
Game Development with SDL 2.0 (Steam Dev Days 2014)
51:11