Not only the right decision, the right reasoning too.
It might be worth considering basing it on Matrix. You’ll get a lot of things for free (e.g. auth and identity) and you can create your own dialect on top of the fundamental protocol.
One feature that I did add to Smolpxl for this game, and will add to others gradually, is the ability to save your config on the local device. If you give it permission, Tron saves the list of players and their controls for you.
The code is here: https://gitlab.com/smolpxl/tron
Is it OK if I mention my own channels?
Andy Balaam’s programming videos: https://diode.zone/c/andybalaam_programming
Category Theory by Bartosz Milewski: https://diode.zone/c/category_theory
Gaming: Trials Rising and Trials Fusion: https://peertube.social/accounts/trials/video-channels
That issue: https://github.com/LemmyNet/lemmy/issues/721
I think this sounds possible. If you don’t use a Box<> or similar container (and instead using something like a dyn trait), you know that the compiler knows the real size of the instance you are passing, so no dynamic polymorphism is being used.
If you post some code here, someone might be able to suggest a Rustish way of doing it?
I had always thought it looked cool, and tried to play a couple of times, but when I really started playing was when a friend at work agreed to play with me every day (about 2008 I guess). It was intense, but really fun. Now I play mostly online on Dragon Go Server, and look forward to in-person games again one day…
For more news and details on Smolpxl development, follow https://mastodon.social/@andybalaam on Mastodon.
220 lines of code: short enough to be fairly easy to contribute to?
This is web-based - works on Firefox and Chrome on Windows, Linux and Android. Hopefully other platforms too.
Controls are laid out like arrow keys, they change to meaningful names if you use touch, and they can be minimised if they take up too much screen.
After some feedback, I’ve made some updates:
Wow, thanks for becoming the first ever patron!
Awesome! I’ve been following with interest the work on speeding up the compiler itself e.g. https://blog.mozilla.org/nnethercote/2020/04/24/how-to-speed-up-the-rust-compiler-in-2020/
https://www.artificialworlds.net/blog/2021/07/01/why-write-an-entire-game-including-graphics-in-a-single-hand-coded-javascript-file/