Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

Repository files navigation

fluid-game

A native, pixel-rendered multiplayer game for two or more players: two on one keyboard plus one on the mouse (network play planned). Each player steers a cursor that their neon fluid follows. Encircle enemy fluid to turn it your color. Be the last color standing, or be ahead when time runs out.

Built with Rust + Bevy (see architecture/0001-native-language.md). See MISSION.md for the full vision and architecture/ for design decisions.

Development setup (Ubuntu/Debian)

  1. Install the Rust toolchain via rustup:
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. That's it for now. The game builds with Bevy's X11 backend only (no audio, no gamepads), so no extra system packages are needed. On a Wayland desktop it runs through XWayland.

The first build compiles Bevy and takes several minutes. Later builds are fast.

Layout

  • crates/fluid_sim: the deterministic simulation core (ADR 0002). Plain Rust, no Bevy. Tests are in crates/fluid_sim/tests/.
  • crates/fluid_game: the Bevy desktop app: input, rendering, fixed-timestep loop. Tests (grid layout, input devices) are in crates/fluid_game/tests/.

Run

cargo run -p fluid_game

The game opens on the setup screen: choose the grid size, match length, map, number of players (2–3) and each player's device (WASD, arrow keys or mouse). The grid behind the menu previews your choices. Start or Enter begins the match.

A match ends early when only one colour is left; otherwise the most cells wins when the clock runs out. Enter then returns to the setup screen with your choices kept. During a match with a mouse player, the pointer is hidden and held inside the window; it's released when the match ends, the game is paused, or the window loses focus.

Esc during a match pauses and offers Continue (or Esc again), Back to setup and Quit. On the setup screen, Esc quits.

Test

cargo test --workspace           # simulation rules and app input
cargo clippy --workspace --all-targets
cargo fmt --all --check

Contributing

See AGENTS.md for the workflow (tracer-bullet slices) and task tracking (Gitea issues).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages