Skip to content

NightsWatchGames/tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English

tetris

俄罗斯方块游戏。

  • 游戏基础玩法(随机四格骨牌、骨牌旋转、骨牌移动、消除行、计分)
  • 游戏UI
  • 游戏音效
  • 支持暂停、恢复和重新开始游戏
  • 支持web
  • 展示下一个骨牌
  • bag7随机算法

在线游玩:点这里(电脑版Chrome/Firefox/Edge打开)

运行

  1. 本地运行
cargo run
  1. WASM运行
rustup target install wasm32-unknown-unknown
cargo install wasm-server-runner
cargo run --target wasm32-unknown-unknown
cargo install wasm-bindgen-cli
cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --out-dir ./out/ --target web ./target/wasm32-unknown-unknown/release/tetris.wasm

游戏展示

视频演示:B站

main menu game playing game paused game over

参考资料

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages