Skip to content

NightsWatchGames/rubiks-cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English

Rubik's Cube 魔方

  • 3阶魔方
  • 随机打乱魔方
  • 重置魔方
  • 鼠标拖拽魔方旋转
  • 游戏UI
  • 相机视角控制(缩放、移动)
  • WASM支持

在线游玩:点这里(电脑版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/rubiks-cube.wasm

游戏展示

视频演示:B站

playing cube

参考资料