Skip to content

Commit

Permalink
ADD : embed asset folder inside binary for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
minwook-shin committed May 1, 2023
1 parent b5e2aad commit 1bd936d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ bevy_ggrs = { version = "0.12", features = ["wasm-bindgen"] }
bevy_matchbox = { version = "0.6.0", features = ["ggrs"] }
bevy_asset_loader = "0.16.0"
chrono = "0.4"
bevy_embedded_assets = "0.7.0"

[dependencies.uuid]
version = "1.3.1"
features = [
"v4", # Lets you generate random UUIDs
"fast-rng", # Use a faster (but still sufficiently random) RNG
"macro-diagnostics", # Enable better diagnostics for compile-time UUIDs
]
]
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use bevy_asset_loader::prelude::*;
use bevy_ggrs::*;
use bevy_matchbox::prelude::*;
use bevy::math::Vec3Swizzles;
use bevy_embedded_assets::EmbeddedAssetPlugin;

use crate::component::{GameState, GameDuration, Playerid};
use crate::system_module::network::{GgrsConfig, wait_socket};
Expand Down Expand Up @@ -39,7 +40,7 @@ fn main() {
..default()
}),
..default()
}))
}).build().add_before::<AssetPlugin, _>(EmbeddedAssetPlugin))
.add_plugin(GameOverPlugin)
.insert_resource(ClearColor(Color::WHITE))
.insert_resource(GameDuration { game_time: Stopwatch::new() })
Expand Down

0 comments on commit 1bd936d

Please sign in to comment.