Skip to content

Piturnah/war-sheep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

War sheep

A game of sheep and war machines made for Bevy Jam #2. It prioritizes learning of the framework over actual playability of the game. A web version is available here and on itch.io.

Playing

It works best on Chrome. You have to enable sound for the site.

Drag a sheep on top of the other sheep to combine them into a stronger sheep. Every sheep starts as a level 1 basic sheep that can be combined into sheep with different traits:

  • spear: long attack range
  • tank: more health points, stronger attack
  • medic: heals other sheep in the area of effect

The traits are currently not working, but the sheep stats should increase. Every sheep has a basic attack.

When you are ready press SPACE to fight the evil war machines. If all your sheep are killed, it will be game over. Otherwise you have to kill the war machines before the timer reaches 0. You get new sheep, if you kill the war machine.

Deploy

Run in browser

cargo install wasm-server-runner 

Add to ~/.cargo/config.toml:

[target.wasm32-unknown-unknown]
runner = "wasm-server-runner"

Run:

cargo run --target wasm32-unknown-unknown

Go to http://127.0.0.1:1334/.

Deploy on itch.io

rustup target add wasm32-unknown-unknown 
cargo build --release --target wasm32-unknown-unknown 
wasm-bindgen --out-dir out --target web target/wasm32-unknown-unknown/release/war-sheep.wasm
cp -r assets out
cp index.html out
zip -r war-sheep.zip out/

Attribution

License

Licensed under either of

at your option.

About

Bevy Jam #2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published