Skip to content

Add snake terminal example#105

Open
joshka wants to merge 1 commit into
mainfrom
joshka/add-snake-example
Open

Add snake terminal example#105
joshka wants to merge 1 commit into
mainfrom
joshka/add-snake-example

Conversation

@joshka

@joshka joshka commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary

  • add a multi-file terminal Snake example using Bevy resources/messages/systems and Ratatui rendering
  • include board sizing, HUD/controls, pause and game-over overlays, buffered input, crash grace, level-based speed, high score, restart, and smooth partial-block head/tail movement
  • document the example structure and fix nearby Rustdoc links that pointed at the old input translation path

Validation

  • cargo fmt --all --check
  • cargo check --example snake
  • cargo test --example snake
  • cargo check --workspace --all-targets
  • cargo doc --example snake --no-deps
  • markdownlint-cli2 --config ~/.markdownlint-cli2.yaml README.md examples/snake/README.md

Notes

Manual terminal smoke testing is still worth doing during review for controls, resize behavior, and animation feel.

Add a multi-file terminal snake example that demonstrates how to build a game loop, input handling, pure game rules, and Ratatui rendering with bevy_ratatui.
@joshka

joshka commented Jun 22, 2026

Copy link
Copy Markdown
Member Author
CleanShot 2026-06-22 at 15 48 44

@gold-silver-copper

Copy link
Copy Markdown
Contributor

love this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants