A simple (cough cough) example on a tic-tac-toe game with wgpu.
Because I didn't find that many small applications which use wgpu as their rendering interface, which is understandable with wgpu being quite verbose. Nevertheless, I wanted to create one, also just to step into real water for the first time without a tutorial.
You can just use cargo install
for that, assuming you installed Rust already
(If you didn't, check out rustup):
cargo install --git https://github.com/MultisampledNight/tic-tac-gpu.git
This will by default install to $HOME/.cargo/bin
, or whatever the equivalent
on your OS is. Either put that path on $PATH
, or just run the tic-tac-gpu
binary directly.
These were more of a reminder to myself what components of wgpu actually do. I happen to learn things better if I try to formulate them out.
The final look didn't matter to me, more about the rendering itself. This is not a full-featured super accessible tic-tac-toe game with multiple AI modes and beautiful text rendering.
See rust-windowing/winit#944. TLDR: No one seems to have time to implement it in winit, the windowing library I use, and I don't know anything about X11, evdev, Wayland and Quartz, so I can't implement it either.
Was it really worth it?