MCPcopy Index your code
hub / github.com/GaspardCulis/slint-tetris

github.com/GaspardCulis/slint-tetris @1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0 ↗ · + Follow
40 symbols 67 edges 6 files 1 documented · 2% updated 3y ago1.0 · 2023-05-01★ 44
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Tetris Slint

A Tetris remake that's using Slint for the user interface.

Showcase

V1 v1

V2-light v2 Light

V2-light v2 Dark

Usage

cargo run

Controls

  • Move right and left: Q - D / ← - →
  • Rotate right: Z / ↑ / C
  • Rotate left: X
  • Drop: S / ↓
  • Hard-drop: <Space>
  • Hold: H

Next Steps

  • Add a level system to gradually increase speed
  • Add touch buttons

Credits

Thanks to Wimble for this amazing Tetris UI design

Core symbols most depended-on inside this repo

move_and_collide
called by 8
src/game.rs
col2col
called by 7
src/controller/game_controller.rs
get_shape
called by 4
src/pieces.rs
spawn_new
called by 2
src/game.rs
get_held
called by 2
src/game.rs
piece_to_model
called by 2
src/controller/game_controller.rs
duration_since
called by 1
src/game.rs
update
called by 1
src/game.rs

Shape

Method 28
Function 6
Class 5
Enum 1

Languages

Rust100%

Modules by API surface

src/game.rs20 symbols
src/pieces.rs10 symbols
src/utils.rs4 symbols
src/controller/game_controller.rs4 symbols
src/main.rs1 symbols
build.rs1 symbols

For agents

$ claude mcp add slint-tetris \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact