Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LinusCDE/retris
Implementation of rust tetris_core on the reMarkable using libremarkable
https://github.com/LinusCDE/retris
game remarkable-tablet rust
Last synced: 25 days ago
JSON representation
Implementation of rust tetris_core on the reMarkable using libremarkable
- Host: GitHub
- URL: https://github.com/LinusCDE/retris
- Owner: LinusCDE
- License: mit
- Created: 2020-08-14T16:31:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-25T12:07:40.000Z (almost 3 years ago)
- Last Synced: 2024-08-03T17:09:38.161Z (4 months ago)
- Topics: game, remarkable-tablet, rust
- Language: Rust
- Homepage:
- Size: 1.02 MB
- Stars: 30
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-reMarkable - retris - Play a clone of the popular block stacking game with either buttons or swipe guestures. (Applications / Games)
README
# retris
[![rm1](https://img.shields.io/badge/rM1-supported-green)](https://remarkable.com/store/remarkable)
[![rm2](https://img.shields.io/badge/rM2-supported-green)](https://remarkable.com/store/remarkable-2)
[![opkg](https://img.shields.io/badge/OPKG-retris-blue)](https://github.com/toltec-dev/toltec)
[![launchers](https://img.shields.io/badge/Launchers-supported-green)](https://github.com/reHackable/awesome-reMarkable#launchers)
[![Mentioned in Awesome reMarkable](https://awesome.re/mentioned-badge.svg)](https://github.com/reHackable/awesome-reMarkable)Implementation of rust tetris_core on the reMarkable using libremarkable
The patterns are some totally random functions. If someone wants to do something better (not just functions) or just loves math, [go ahead](https://github.com/LinusCDE/retris/blob/929a597acbb9215dcb53663a4a9a415fb7bbc175/src/scene/game_scene.rs#L50).
## Controlling
- Move Left and Right: Hardware and Software buttons or swipe left and right
- Move down: Swipe down
- Rotate: Middle hardware button or tap anywhere## Installation
### Prebuilt binary/program
- Go the the [releases page](https://github.com/LinusCDE/retris/releases)
- Get the newest released "retris" file and copy it onto your remarkable, using e.g. FileZilla, WinSCP or scp.
- SSH into your remarkable and mark the file as executable with `chmod +x retris`
- Stop xochitl (the interface) with `systemctl stop xochitl`
- Start the game with `./retris`
- After you're done, restart xochitl with `systemctl start xochitl`### Compiling
- Make sure to have rustup and a current toolchain (nightly might be needed)
- Install the [oecore toolchain](https://remarkable.engineering/).
- If you're not using linux, you might want to adjust the path in `.cargo/config`
- Compile it with `cargo build --release`. It should automatically cross-compile.## reMarkable 2 support
This app cant actually drive the rM 2 framebuffer. It needs [rm2fb](https://github.com/ddvk/remarkable2-framebuffer/) for that.
If you execute retris from ssh, be sure to have followed rm2fb steps to enable the support. When launching through a launcher (from toltec) it should just work but have more ghosting on the rM2.