Inspiration
I was inspired by the classic board game Connect Four.
What it does
This project's aim is to emulate the amazing experience of playing Connect Four.
How I built it
I built it in Rust using the pixels library for rendering, which is based on wgpu, an implementation of the WebGPU standard that also runs natively. I also used the winit windowing library.
Challenges I ran into
Solving the puzzle of detecting winning moves took me quite some time and a few attempts, but it all worked out in the end. There were also some early rendering bugs that I was able to pin down to some incorrect math.
Accomplishments that I'm proud of
I can't believe it works at all!
What we learned
I learned a lot about pixels, winit, and even a little bit of Nix. I still have a long way to go with Nix, though.
What's next for Connect Four
Audio? Real spritework?? Online multiplayer???!! Who knows.
How to play
You can find the controls in the README file in the repo.
As for downloads, you can check the CI if you're on Linux. If you're on Windows or macOS, you'll have to build it yourself.
And if you're looking to build it on NixOS, just do the build process after running nix develop. You probably need to enable flakes, I don't know.
this used to be much better but i accidentally deleted all of it
Built With
- nix
- pixels
- rust
- wgpu
- winit
Log in or sign up for Devpost to join the conversation.