3 ms·
I started experimenting with WebAssembly a while back, and started writing Asteroids in C, hosted in a web page via webassembly. It's not done yet, but it's a r
by unoti 6y ago
I started experimenting with WebAssembly a while back, and started writing Asteroids in C, hosted in a web page via webassembly. It's not done yet, but it's a real fun way to experiment both with asteroids and with C, and with webassembly:
C code for asteroids: https://github.com/unoti/webasm-concept/blob/master/asteroids/asteroids.c https://github.com/unoti/webasm-concept/blob/master/asteroid...
Javascript code for the X/Y vector display device that the C code talks with: https://github.com/unoti/webasm-concept/blob/master/asteroids/vector_display.js https://github.com/unoti/webasm-concept/blob/master/asteroid...