comparison mrjunejune/src/blog/wasm-bunny/index.md @ 184:8c74204fd362

[MD to HTML] Updated so it can be used through readme to html
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 22:20:35 -0800
parents 295ac2e5ec00
children
comparison
equal deleted inserted replaced
183:a8976a008a9d 184:8c74204fd362
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>