A faithful Rust port of the classic QBasic Gorillas game from 1991.
Two gorillas stand atop buildings in a city skyline, taking turns hurling explosive bananas at each other. Adjust your angle and velocity, account for wind and gravity, and try to hit your opponent before they hit you.
Play in your browser (WebAssembly)
Grab the latest release for your platform from Releases:
| Platform | Download |
|---|---|
| Linux (x86_64) | gorillas-linux-amd64.tar.gz |
| Linux (ARM64) | gorillas-linux-arm64.tar.gz |
| macOS (Intel) | gorillas-macos-amd64.tar.gz |
| macOS (Apple Silicon) | gorillas-macos-arm64.tar.gz |
| Windows (x86_64) | gorillas-windows-amd64.zip |
| Windows (ARM64) | gorillas-windows-arm64.zip |
| Web | gorillas-web.zip |
# Clone the repository
git clone https://github.com/jimmystridh/gorilla.rs.git
cd gorilla.rs
# Build and run
cargo run --releaserustup target add wasm32-unknown-unknown
cargo build --release --target wasm32-unknown-unknown
cp target/wasm32-unknown-unknown/release/gorillas.wasm .
python3 -m http.server 8000
# Open http://localhost:8000- Enter player names (or press Enter for defaults)
- Set number of games to play
- Set gravity (9.8 for Earth, try lower for Moon-like physics)
- Press P to play or V to view the intro animation
| Key | Action |
|---|---|
0-9, . |
Enter angle/velocity |
Enter |
Confirm input |
Backspace |
Delete character |
Cmd/Ctrl + Enter |
Toggle fullscreen |
Escape |
Quit game |
- Enter an angle (0-90 degrees) for your throw
- Enter a velocity (power of your throw)
- Watch the banana fly through the air
- Account for wind (shown by arrow at bottom of screen)
- Hit your opponent to score a point
- First to reach the target score wins
This is a port of GORILLA.BAS, which shipped with MS-DOS 5.0 and QBasic in 1991. The original was created by IBM Corporation and became one of the most iconic games of the early PC era.
- Written in Rust using macroquad for cross-platform graphics
- Compiles to native binaries for Linux, macOS, and Windows
- Compiles to WebAssembly for browser play
- Faithful recreation of original 640x350 EGA graphics, scaled to any resolution
- Original physics and gameplay mechanics preserved
This is a fan recreation of the original QBasic Gorillas for educational and nostalgic purposes.
- Original Game: IBM Corporation (1991)
- Rust Port: Created with assistance from Claude
"Your mission is to hit your opponent with the exploding banana by varying the angle and power of your throw, taking into account wind speed, gravity, and the city skyline."
