https://github.com/thebracket/gravity_well
A simple two-player (shared keyboard) game in which you collect salvage and try not to fall into a black hole.
https://github.com/thebracket/gravity_well
bevy gamedev gravity particles rust two-player
Last synced: 4 months ago
JSON representation
A simple two-player (shared keyboard) game in which you collect salvage and try not to fall into a black hole.
- Host: GitHub
- URL: https://github.com/thebracket/gravity_well
- Owner: thebracket
- License: mit
- Created: 2022-05-06T13:47:10.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-06T14:31:43.000Z (about 4 years ago)
- Last Synced: 2025-08-16T22:32:57.426Z (10 months ago)
- Topics: bevy, gamedev, gravity, particles, rust, two-player
- Language: Rust
- Homepage:
- Size: 125 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gravity Well
[Play online here](https://bfnightly.bracketproductions.com/gravity_well/)
> When I'm working on book proposals, I typically prototype a lot of projects. Not all of them make the cut. This is a project from the cutting room floor.

*Gravity Well* is a simple two-player (shared keyboard) game. Fly around a gravity well, collecting salvage. Bounce one another, accelerate and rotate. Whomever collects the most salvage wins.
This isn't intended to be a finished game; I'm hoping that someone finds the source code useful/instructive. Elements in the code:
* **Assets**: a basic asset manager to specify your sprite atlases up-front (with the builder pattern), and combine them into a single `Assets` resource.
* **Menu Framework**: a simple framework for displaying a main menu and game over screen, as well as a "Loading, please wait" message while your assets finish loading.
* **Physics**: some very primitive collision detection, velocity and gravity code.
* **Centered Text**: I added a bundle for centered text, just because I find the normal Bevy code verbose.
* **Particles**: a very simple particle system. Not at all optimized.