Skip to content

Commit

Permalink
Merge pull request #22 from kmu-system-newest-tech-23-team-b/feature/…
Browse files Browse the repository at this point in the history
…assets_issue

ADD : embed asset folder inside binary for releases
  • Loading branch information
minwook-shin authored May 1, 2023
2 parents b5e2aad + 1bd936d commit dca64a3
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 dca64a3

Please sign in to comment.