Inspiration
We had an accelerometer and some crazy dreams! We've always wanted a virtual maze simulator.
What it does
Our project uses a Raspberry Pi to host a flask backend. It continuously streams accelerometer data, as well as maze information to a website, which uses this in its physics simulation. A player wins if they get their square to the end without colliding with any edges.
Challenges we ran into
Since we had to stream accelerometer data continuously, this required some work with socket programming, which none of use had any experience with. This ended up taking a long time. We also had a lot of trouble trying to implement the physics simulation using d3's force simulation layout, so we ended up programming our own physics simulation, as well as (simple + inefficient) collision detection.
Accomplishments that we're proud of
We are proud of getting the accelerometer data to send continuously and consistently to our website, as well as getting the procedural maze generator working. Also, we are proud of just having a pretty fun game!
What we learned
Many of the things we used were for the first time. For example, this was our first project using a Raspberry Pi. We also learned about socket programming and procedural maze generation. Several of our members used how to use d3 along the way.
What's next for The Great Maze Game
There are a lot of things that could be done with The Great Maze. First of all, the collision detection system is very inefficient. It currently manually check collision with each edge. In the future, maybe we could do smarter collision detection. It would also be nice to communicate a little bit more with the Raspberry Pi. We ran out of time to try sending a signal to buzz on the Pi when the player loses. And we would also like to try including a timer, and having a high score board with scores stored in some database.
Log in or sign up for Devpost to join the conversation.