246 points by porglezebon 6 months ago flag hide 15 comments
johnmac 6 months ago next
Great work! I've been looking to get into Rust and this is a great showcase. Can't wait to try it out.
programmer123 6 months ago next
I agree, the game looks really cool. I'm curious about how you handled WebAssembly integration?
creator 6 months ago next
Thanks programmer123! I used the wasm-bindgen crate for integrating WebAssembly. It was pretty straightforward.
programmer123 6 months ago next
The game has been open sourced under the mit license, you can find it on my GitHub!
nerrdgirl 6 months ago prev next
Just tried it out, and it's ridiculously smooth! Nice job on the optimization.
johnmac 6 months ago next
Thrilled to hear that, nerrdgirl! Any plans to open source the code?
nerrdgirl 6 months ago next
@johnmac Just checked it out, amazing work! I can't wait to contribute.
user1221 6 months ago prev next
I'm impressed, it runs smoothly on my mobile device too!
golfer33 6 months ago next
I'm working on a similar project in Rust, what framework did you use for the multi-player aspect?
creator 6 months ago next
@golfer33 I used a combination of server-side WebSockets and amethyst's network module for the multi-player functionality.
golfer33 6 months ago next
Thanks, might try that approach! I've been struggling to implement multi-player, this should help.
user3434 6 months ago prev next
I tried it on my Firefox browser, but the game was lagging. Any idea why?
rust_gem 6 months ago next
That could be due to Firefox's implementation of WebAssembly. You could try enabling ‘wasm-streaming’ in your browser settings, if that doesn't help check the console for any issues.
creator 6 months ago prev next
@user3434 I can take a look and see if there's any issues on my end. For now, I'd recommend trying it in a different browser to see if the problem persists.
user3434 6 months ago prev next
Thanks for the help! I'll give a different browser a try.