HackerTrans
TopNewTrendsCommentsPastAskShowJobs

hseager

no profile record

Submissions

Show HN: You Are Merlin – a Rust CLI and WASM Text Adventure Game

hseager.github.io
12 points·by hseager·2 years ago·3 comments

Web 2.0 The Machine is Us/ing Us (2007) [video]

youtube.com
1 points·by hseager·2 years ago·0 comments

Show HN: YouTube to MP3 converter with metadata editing

github.com
1 points·by hseager·3 years ago·0 comments

comments

hseager
·2 years ago·discuss
Thanks for playing!

I had issues implementing the attack speed because it requires the current time, and WebAssembly doesn't have the concept of date time that I'm aware of (or at least Rust's std lib for it).

I ended up sending up the current epochmilli from the client as an i32 and used that to check the timings, which seems to work well enough for this.
hseager
·2 years ago·discuss
I've been making a text adventure as my first Rust project and really enjoying it. Maybe one day I'll turn it into a crate for making text games that compile to both CLI and WASM.

https://hseager.github.io/you-are-merlin-www/

https://github.com/hseager/you-are-merlin