Skip to content

Commit

Permalink
Merge pull request #2 from michael-jaquier/feat/bevy-fun
Browse files Browse the repository at this point in the history
Feat/bevy fun
  • Loading branch information
michael-jaquier authored May 8, 2024
2 parents 98aad8a + cdc438a commit 5a634a2
Show file tree
Hide file tree
Showing 55 changed files with 5,081 additions and 880 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

[target.wasm32-unknown-unknown]
runner = "wasm-server-runner"
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"rust-analyzer.showUnlinkedFileNotification": false
}
64 changes: 56 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ opt-level = 1
[profile.dev.package."*"]
opt-level = 3

[dependencies]
[profile.wasm-release]
inherits = "release"
opt-level = "z"
lto = "fat"
codegen-units = 1

bevy = "0.13.0"
[dependencies]
bevy = { version = "0.13.0" }
bevy_xpbd_2d = "0.4.2"
leafwing-input-manager = "0.13.3"
enum-iterator = "2.0.0"
rand = "0.8"
bevy_egui = "0.25"
bevy_egui = "0.25"
pathfinding = "4.9.1"
bevy_ecs_tilemap = { git = "https://github.com/StarArawn/bevy_ecs_tilemap" }
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
wasm-build: ## ⚙️ Build wasm version
RUST_LOG=off cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --out-dir ./www/public/out --target web ./target/wasm32-unknown-unknown/release/rusty-apple.wasm

wasm-opt: ## 🔩 Optimize wasm file size
wasm-opt -Os -o ./www/public/out/rusty-apple_bg.wasm ./www/public/out/rusty-apple_bg.wasm

wasm-build-opt: ## ⚙️ Build wasm version with optimized file size
$(MAKE) wasm-build
$(MAKE) wasm-opt

copy-assets: ## 📂 Copy assets to the output directory
cp -r ./assets ./www/public/out/

## Run cargo with info level logging
dev: ## 🚀 Run dev server
RUST_LOG=info cargo run
101 changes: 0 additions & 101 deletions README.md

This file was deleted.

Binary file added assets/Pawn_Blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/basic_tower.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bw-tile-square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fire_tower.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/firework.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/FiraSans-Bold.ttf
Binary file not shown.
Binary file added assets/ice_tower.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ice_tower.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ice_tower.webp
Binary file not shown.
Binary file added assets/sniper_tower.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/tiles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5a634a2

Please sign in to comment.