1 stable release
1.2.0 | May 6, 2024 |
---|
#934 in Game dev
8.5MB
2K
SLoC
brick_bird – a colorful Flappy Bird clone written in Rust
Evade obstackles ...
... in different environments
How to play?
Where to Play?
- Online: Play directly in your browser here. Note: Chrome is highly recommended due to better performance.
- Desktop: Download the desktop version. Note: Ensure the game executable is next to the "assets" folder before running.
Objective
- Aim to achieve the highest PS (Passed Sectors count) possible.
Game difficulty
Marked by MS (Movement Speed) variable. Increases with each passed sector as simulation accelerates.
Tutorial
You fly automatically.
To avoid obstackles jump.
Tip: Do it interchangably using all functional buttons.
Jump with
- Keyboard – click
<space>
button. - Mouse – click
<left button>
. - Touch screen – touch anywhere on the game viewport.
Build & run the app
Desktop version
Quick start
- Go to the folder where you want to install (put) the game.
- Use the following bash commands:
These obviously requires having these bash commands installed.git clone github.com/siiir/brick_bird cd brick_bird git switch stable cargo build --release
- When you want to run the game:
- go to instalation folder
- enter command
cargo run -r
Better installation (optimizations, click-to-run)
- Ask AI model for help. Show it this README.md file & "Cargo.toml" file. It should help you to compile this project with best optimizations. These improvements are neither obvious nor necessary for everyone.
- See build profiles in "Cargo.toml".
Browser version
- Go to the folder where you want to install (put) the game.
- Use the following bash commands:
These obviously requires having these bash commands installed.git clone github.com/siiir/brick_bird cd brick_bird git switch web-stable
- When you want to run the game:
- Serve the game using a static file server
Using Node.js http-server
Or using Python3http-server . -p 8000
python -m http.server 8000
- Access the game in a browser at
http://localhost:8000
.
- Serve the game using a static file server
How this educational project stands out?
Own physic engine.
{collisions, gravity, acceleration, turbulence} have been coded from scrath using math.
Parallel execution
Will utilize or your cores, when running outside of browser. ECS design allows this game to scale with number of CPUs.
Professional and Unique
- Highly modular and scalable architecture.
- Leverages unique capabilities of the Rust programming language.
Pure Coding
- Developed entirely through coding without the use of any graphical editors.
Dependencies
~47–85MB
~1.5M SLoC