dorkhub

bevy-tetris

clone tetris by using rust and bevy

corbamico
Rust537 forksGPL-3.0updated 3 weeks ago
git clone https://github.com/corbamico/bevy-tetris.gitcorbamico/bevy-tetris

bevy-tetris

GitHub Action dependency status Github license

bevy-tetris clone tetris game using rust/bevy

Some Notes in Coding

  • Keyboard::Up is roration
  • Game Board as 10x20
  • Each Dot is drawed as sprit_bundle 20px*20px, with Child 16px*16px (and with Child 12px*12px)
  • Board Dot(0,0) as Pixel location (13px,13px) as code in consts.rs
  • bricks type as : I,J,L,Z,S,T,O as code in consts.rs
  • rotation system use as simple as Nintendo here
  • tetris speeding use delay = 725 * .85 ^ level + level from dwhacks, refer to src/main.rs
  • tetris scoring use Original Nintendo Scoring System, refer to src/main.rs

Snapshoot

screen

Try Online here

WASM GAME Online Here

Thanks

inspired by flappy_bevy and bevy-snake

License

  • GPLv3, Copyright by corbamico@163.com
  • Assets digital7mono.ttf: True Type Fonts: DIGITAL-7 version 1.02 (by Sizenko Alexander,Style-7)

more like this

anne-key

Firmware for Anne Pro Keyboard written in Rust

Rust572

TachiSnap

TachiSnap — Pixel Snapper for animation pixel artists. Rust + WebAssembly client-side tool for cleaning up AI-generated…

HTML50

bit_gossip

Pathfinding library for calculating all node pairs' shortest paths in an unweighted undirected graph.

Rust50

search

search projects, people, and tags