Skip to content

Get sample working with wasm#10

Open
SlateyDev wants to merge 2 commits intoBooklordofthedings:mainfrom
SlateyDev:main
Open

Get sample working with wasm#10
SlateyDev wants to merge 2 commits intoBooklordofthedings:mainfrom
SlateyDev:main

Conversation

@SlateyDev
Copy link
Copy Markdown

By combining the wasm functionality in SpaceGame with the SDL3 library this now works on wasm32 target.

@Booklordofthedings
Copy link
Copy Markdown
Owner

Nice, I likelx wont have time to review it before saturday though

@Booklordofthedings
Copy link
Copy Markdown
Owner

Did you actually compile this ?
grafik
From what ive found emscripten currently does not have a sdl3 port.
Instead users can build the libSDL3.a file and link it from the library file.
Also the linker flags dont seem to be required.

@Booklordofthedings
Copy link
Copy Markdown
Owner

okay the emscripten repo has it available, just the version downloaded by BeefIDE doesnt

@SlateyDev
Copy link
Copy Markdown
Author

SlateyDev commented Jul 20, 2025

yes, I possibly could have mentioned that so you didn't have to do the runaround yourself. i downloaded a newer version of emscripten which included SDL3 support.

@Booklordofthedings
Copy link
Copy Markdown
Owner

I will be leaving this hanging here until the version distributed by BeefIDE gets updated.
Until then users who want to build sdl3 to wasm should manually install the newest emscripten version and can then use this pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants