Skip to content

corbamico/bevy-tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)