dev tools init
This commit is contained in:
parent
dcca424406
commit
950451938f
3 changed files with 15 additions and 2 deletions
BIN
assets/music/fostral.wav
Normal file
BIN
assets/music/fostral.wav
Normal file
Binary file not shown.
7
src/dev_tools/mod.rs
Normal file
7
src/dev_tools/mod.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
use bevy::prelude::*;
|
||||
|
||||
pub struct DevToolsPlugin;
|
||||
|
||||
impl Plugin for DevToolsPlugin {
|
||||
fn build(&self, app: &mut App) {}
|
||||
}
|
||||
10
src/main.rs
10
src/main.rs
|
|
@ -1,18 +1,24 @@
|
|||
use bevy::{audio::Volume, prelude::*};
|
||||
|
||||
mod card;
|
||||
mod dev_tools;
|
||||
mod turns;
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
.add_plugins((DefaultPlugins, turns::TurnSystemPlugin, card::CardPlugin))
|
||||
.add_plugins((
|
||||
DefaultPlugins,
|
||||
turns::TurnSystemPlugin,
|
||||
card::CardPlugin,
|
||||
dev_tools::DevToolsPlugin,
|
||||
))
|
||||
.add_systems(Startup, setup)
|
||||
.run();
|
||||
}
|
||||
|
||||
fn setup(asset_server: Res<AssetServer>, mut commands: Commands) {
|
||||
let background = asset_server.load::<Image>("sprites/field.png");
|
||||
let music = asset_server.load("music/glorx.wav");
|
||||
let music = asset_server.load("music/fostral.wav");
|
||||
|
||||
commands.spawn(Camera2d);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue