Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 1.33 KB

readme.md

File metadata and controls

71 lines (48 loc) · 1.33 KB

Slatchhammer

Idea: A webassembly 1v1 football game on one machine.

Play it

You can play it live: slatchhammer.yguenduez.dev

Player 1: WASD
Player 2: Arrow keys

Have fun!

Docs

Run this game as webassembly.

First compile it to wasm:

cargo build --release --target wasm32-unknown-unknown

Then build the gluecode for the web to load the wasm:

wasm-bindgen --out-dir out --target web target/wasm32-unknown-unknown/release/slatchhammer.wasm --no-typescript

Then load the init() function from the gluecode


<script type="module">
    import init from './out/slatchhammer.js'
    init()
</script>

Run natively

cargo run (--release)

How to continue from here

Todo (MVP):

  • Arena: Bounderies, Floor
  • To WebAssembly to play in the web with e.g. vercel
  • Goals: to achieve points
  • Points
  • Reset After goal - initial position of players
  • Add a timer for one game
  • Win game after time is up (Timer)
  • Sprint, which depletes, when using
  • Ingame Menu - to manually start a match

Further Ideas:

  • Choose character with different properties (mass,velocity,restitution,...)

  • Items like:

    • Power-ups
    • Items to handicap oponent
  • Ranking System:

  • Online 1v1

  • Online 3v3

  • Skins to buy to support this game