- 💬 Texas Snake is a game built in Rust with bevy framework.
- 🌐 It's running on the browser thanks to WASM.
- 🚀 Blazing fast, completely built on Rust.
- 🌔 Runs integraly in dark mode.
- 🧮 It is inspired from the Snake game that was on my Texas Instrument calculator back in high school.
The game is deployed on here and should be compatible with any modern navigator.
Back in highschol, back in a time where games on mobile phone were starting to be popular, there was a need to kill the time during some courses.
My mates and I, who were mostly bored by courses and waiting for the evening to play online games, had to kill the time.
The only electronic stuff that was allowed during the courses were the calculators. I remember my school forced us to buy the same model, I think it was the TI 82 (mine was looking like this one).
And then someday, someone bragged about having successfully installed a Snake game on his calculator, and that he could copy this game on other calculators. It was wonderful, eventually a way to kill the time during the class hours.
Started a long period where me and my schoolmates were competiting on who will have the highest score. It was pretty fun, and at the same time, pretty tough. I moreover remember the setup with the borders as a '+', this one was particulary hard but also particulary rewarding.
This project is a tribute to this time, and also an excuse to learn how making games in Rust works :happy:.
.
├── Cargo.lock
├── Cargo.toml
├── Makefile.toml => Cargo make file, used to build the app
|── README.md
├── snake => the snake game
│ ├── assets => the assets used in the game
│ │ └── score_font.otf
│ ├── Cargo.toml => The dependencies definitions
│ └── src
│ ├── common.rs => common constants
│ ├── components => components used in the app
│ ├── main.rs => runnable entry point
│ ├── resources => resources used in the app
│ └── systems => every system per game_state
└── webapp => the webapp running the wasm exe
├── assets => the assets of the webapp
│ ├── score_font.otf
│ └── tailwind.css => style sheet
├── favicon.ico
├── games => target directory of the executable
│ ├── snake_bg.wasm
│ ├── snake.js
│ └── snake.wasm
├── index.html => entry point of the webapp
├── input.css
├── tailwind.config.js
└── wasm_loader.html => iframe called by the index
Technology/Framework | Utility | Version |
---|---|---|
Rust | Programming language | 1.65 |
bevy | Game engine | 0.7.1 |
Tailwind | Stylesheets | 3.1.18 |
My goal behind this project was to first learn about bevy and in general how to make simple games in Rust. I must say bevy is a pretty easy to use (at least for 2D games) game engine and adding the comfort of developping in Rust to make games is a pretty cool thing. x²