Inspiration
My journey with the snake game project began with a fascination for classic arcade games and a desire to explore blockchain technology. I was inspired by the simplicity yet addictive nature of the original Snake game, combined with the innovative potential of Starknet. The idea of building "Snake Attack," a decentralized version of the game where player scores and challenges are stored on-chain, came from wanting to merge nostalgia with cutting-edge tech. I also drew inspiration from online gaming communities on X, where developers shared their experiments with smart contracts, motivating me to create something interactive and unique.
What it does
Bascially, a player controls the snake to eat as many apples as possible while avoiding the enemy snakes who also want to eat the snake. The more apples the snake eats, the more the point earned and the longer the snake get. The more points a player score the higher his place on the leaderboard. This is for fun with so much potentials to earn while playing the game you love.
How we built it
We built it with Javascript, HTML, CSS, while we integrated it with Starknet using Cairo for the smart contraact. We also integrated a Rust Backend with it to manage the backend of the project with PostgreSQL for the database managed by Diesel ORM. The frontend is built with React.
Challenges we ran into
The biggest challenge of this project for us was the building of the game. The other challenge is the integration with the blockchain. We intended to integrate Cartridge for the smooth wallet management but we could not resolve that so we resolved to using the normal wallet. We intend to integrate Cartridge eventually as we build this project to scale.
Accomplishments that we're proud of
We are proud of ourselves as we challenged ourselves to embark on this big project and we are so proud that we have a working project to submit for this hackathon while we also continue to build it.
What we learned
We learnt that we can achieve whatever we set our hearts to do. We also learnt that you become stronger by doing hard things.
What's next for Snake Attack
We want to continue to work on this project as we push it to the next level and hopefully, we can be market ready before December.
Built With
- axum
- cairo
- css
- diesel
- docker
- html
- javascript
- postgresql
- react
- rust
Log in or sign up for Devpost to join the conversation.