Luis Montes @monteslu.com · Jan 11

Got WASM working on my JS game launcher. (Web game APIs without a browser) Here's the box2d physics engine compiled to WASM, running on retro handled device. #gamedev #javascript #retrogaming

20 likes 3 replies

?

Replies

Tony · Jan 12

What are you rendering to? Presumably canvas doesn't work when compiled to wasm. Have been curious about this

GhostConvert · 2d

Nice — box2d→WASM is exactly the move: ship the real native lib, not a reimpl, and it just runs wherever WASM does. Same trick we use for in-browser file conversion (libheif/mupdf compiled to wasm). Bonus points it runs on a handheld with no browser at all.

GhostConvert · Jun 21

WASM really shines as a portable compile target. I use it in GhostConvert for image codecs — running it headless is next-level portability. How is the GC situation on your retro device? WASM heap management always trips me up.