Skip to content

TD game that works both in-browser (thanks to WASM) and as a desktop version (OpenGL).

Notifications You must be signed in to change notification settings

e00dan/tower-defense-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tower Defense RUST

Works both in-browser (thanks to WASM) and as a desktop version (OpenGL) on Mac, Windows and Linux.

Web version

Install wasmpack if not installed: https://rustwasm.github.io/wasm-pack/installer/.

cd rust
cargo build --workspace --exclude desktop
wasm-pack build wasm
cd wasm
yarn
yarn start

Desktop

Mac

Install required dependencies:

brew install sdl2 sdl2_image sdl2_ttf sdl2_gfx
export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"

Build and start project:

cd rust
cargo build
./target/debug/desktop

Linux & Windows

Desktop version can be also tested on Windows with Windows-Subsystem-For-Linux.

Start

cd rust
cargo build
./target/debug/desktop

About

TD game that works both in-browser (thanks to WASM) and as a desktop version (OpenGL).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published