comparison mrjunejune/src/blog/wasm-bunny/index.md @ 185:dfdd66825396

Merged in keep alive changes and mrjunejune changes.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 22:22:30 -0800
parents 8c74204fd362
children
comparison
equal deleted inserted replaced
182:d6ab5921fedc 185:dfdd66825396
82 ``` 82 ```
83 83
84 Overall, this was an interesting project to spend a few hours on, and maybe in the future, I’ll explore compiling the C3 standard library to WASM. 84 Overall, this was an interesting project to spend a few hours on, and maybe in the future, I’ll explore compiling the C3 standard library to WASM.
85 85
86 Below are the results! 86 Below are the results!
87
88 <canvas id='bunnies'></canvas>
89 <script src='/public/raylib.js'></script>
90 <script>
91 async function startRaylib() {
92 if (typeof RaylibJs !== 'undefined') {
93 const raylibjs = new RaylibJs();
94 raylibjs.start({
95 wasmPath: '/public/bunny.wasm',
96 canvasId: 'bunnies',
97 });
98 } else {
99 console.error('RaylibJs is not loaded');
100 }
101 }
102 window.addEventListener('load', startRaylib);
103 </script>