Skip to content

ThomasFisherSE/RAT-PONG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAT-PONG

A retro pong game for your terminal, built with Rust and ratatui.

Rust ratatui License: MIT

RAT-PONG.mp4

Features

  • Local 2-player — grab a friend and settle the score
  • 60 FPS game loop — smooth paddle and ball movement
  • Ball trail — fading trail effect that tracks the ball's path (toggleable)
  • Collision sparks — paddle hits produce a burst of yellow sparks
  • Render modes — switch between block and dot markers on the fly
  • Adaptive layout — the play area scales to your terminal size

Controls

Key Action
W / S Move left paddle up / down
/ Move right paddle up / down
T Toggle ball trail
M Toggle marker style (block / dot)
Q / Esc Quit

Getting Started

# clone it
git clone https://github.com/tetra/RAT-PONG.git
cd RAT-PONG

# run it
cargo run --release

Requires Rust (2024 edition).

Project Structure

src/
├── main.rs    # entry point — sets up the terminal and launches the app
├── app.rs     # game loop, rendering chrome, input dispatch
├── pong.rs    # all game logic — paddles, ball, collisions, scoring, rendering
└── input.rs   # key event handling and input action mapping

License

MIT

About

TUI pong game written in Rust using ratatui

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages