2D shoot 'em up game, written in Rust.
- Arrow key : Move left or right
- Space key : Shoot a bullet
- Rust, Cargo
- SDL2
brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer
- Set SDL2, SDL2_image, SDL2_mixer lib paths to LIBRARY_PATH environment variable.
SDL2=/opt/homebrew/Cellar/sdl2/2.0.X
SDL2_IMAGE=/opt/homebrew/Cellar/sdl2_image/2.0.X
SDL2_MIXER=/opt/homebrew/Cellar/sdl2_mixer/2.0.X
export LIBRARY_PATH="$LIBRARY_PATH:$SDL2/lib:$SDL2_IMAGE/LIB:$SDL2_MIXER/lib"
- Download
SDL2-devel-2.0.x-VC.zip
from SDL2,SDL2_image-devel-2.0.x-VC.zip
from SDL2_image, andSDL2_mixer-devel-2.0.x-VC.zip
from SDL2_mixer libraries - Unpack zip files and copy libraries into
C:\Users\{Your Username}\.rustup\toolchains\{current toolchain}\lib\rustlib\{current toolchain}\lib
- See README
$ cargo build --release
$ cargo run --release
- -s : Specify window scale (default: 3)
- -f : Use fullscreen
- --oo : Run object-oriented version
$ cd galangua-wasm
$ make # wasm-pack build
$ make start-server # Start local server on port 8080
$ cd www
$ npm install
$ npm run build
Files are generated in galangua-wasm/www/dist
- SE
- 効果音はスキップモアの物を使用しています