bevy-tetris
clone tetris by using rust and bevy
Rust★ 53⑂ 7 forksGPL-3.0updated 3 weeks ago
git clone https://github.com/corbamico/bevy-tetris.gitcorbamico/bevy-tetrisREADME.mdfork it — it’s yours
bevy-tetris
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
Try 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
TachiSnap
TachiSnap — Pixel Snapper for animation pixel artists. Rust + WebAssembly client-side tool for cleaning up AI-generated…
HTML★ 50
bit_gossip
Pathfinding library for calculating all node pairs' shortest paths in an unweighted undirected graph.
Rust★ 50
