Closed erlend-sh closed 3 years ago
Thanks for interest and advice! I agree that the input method and overall styling of the page needs to change. TBH, the web demo is running an older version of Kingslayer until I remove the compilation of rayon from WASM builds. After I fix this, I'll be sure to take a look at using iced or something like yew or seed.
EDIT: The website now has the updated version of Kingslayer
It's not complete yet of course, but the new web interface at kingslayer-web is well underway and uses input fields and divs to accept user input and output the game instead of prompt
and alert
.
First of all, congrats on a fully working Rust game, even running seamlessly in any browser, including mobile đź‘Ź
I don’t know exactly how you’re doing it but you appear to be using a browser-native window feature. While I appreciate the minimalism, there does appear to be a lot to gain with an alternative, richer interface that could live behind a feature flag:
Probably there are far more lightweight ways to accomplish this, but you might wanna check out https://github.com/hecrj/iced which has a demo of its web runtime here: https://iced.rs/