Hacker News new | ask | show | jobs
by pcostesi 765 days ago
Played it in LotR mode. The attack speed system was quite interesting!
1 comments

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.