Open timleg002 opened 2 years ago
I think there is a lot of helpful information in this github issue:
https://github.com/aduros/wasm4/issues/238
and this PR:
https://github.com/christopher-kleine/wasm-4-tutorial-games/pull/17
I hope it helps you some!
This code produces a cartridge that has a size of 78 kB (with the lazy static crate (as per the official tutorial) it has over 100 kB).
(The other files/modules are just some one-off functions, I also haven't included
alloc.rs
andwasm4.rs
)(with the
strip = true
option it doesn't even want to start, but the size is reduced to 38 kB). Zig has a size of 4kB with the snake game. What is Rust doing? Thank you for your help!