corbamico / bevy-tetris

clone tetris by using rust and bevy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

clone tetris by using rust and bevy

License:GNU General Public License v3.0


Languages

Language:Rust 96.1%Language:Shell 3.5%Language:Dockerfile 0.4%