Skip to content

thehuglet/term-slots-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

term-slots-rs

Rust Badge CI Badge Repo Badge

Spin the slots, pick the cards and play the poker hands!

Release Header

Technical details

  • The game is tiny with no assets, sitting at less than 1MB for Linux and less than 0.5MB for Windows as of v0.3.0
  • Looks charming and unlike a terminal game according to playtesters
  • Still has thousands of frames to spare on the lowest end hardware I could find, even with CPU shaders in play.
  • It runs on a custom low level terminal renderer I wrote, some of it's notable features:
    • Utilizes double buffering to avoid flickering
    • Uses dirty rectangles to save A LOT of frame time
    • Adds support for the alpha channel
  • Features CPU frag shaders:
    • LUT Gamma correction (near zero performance impact)
    • LUT Vignette (noticeable performance impact)
    • Background noise shader (used for the green "table" parts of the UI, highest performance impact)

Running the Game

  1. Grab the latest binary from releases:
    • Windows: term-slots-windows.exe
    • Linux: term-slots-linux
  2. Run it:
    • Windows: Run term-slots-windows.exe or use .\term-slots-windows.exe in the terminal
    • Linux: chmod +x term-slots-linux && ./term-slots-linux

CLI Args

  • --fps <n>: Framerate limit. 0 = uncapped. Default: 144.

Build from Source

git clone https://github.com/thehuglet/term-slots-rs.git
cd term-slots-rs
cargo build --release

About

A "Slots meets poker" game running inside your terminal!

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages