Most important modules
This commit is contained in:
parent
4782a37f94
commit
52c98da1fd
6 changed files with 66 additions and 1 deletions
9
src/casting/mod.rs
Normal file
9
src/casting/mod.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
use bevy::prelude::*;
|
||||||
|
|
||||||
|
pub struct CastingPlugin;
|
||||||
|
|
||||||
|
impl Plugin for CastingPlugin {
|
||||||
|
fn build(&self, app: &mut App) {
|
||||||
|
//todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
9
src/collision/mod.rs
Normal file
9
src/collision/mod.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
use bevy::prelude::*;
|
||||||
|
|
||||||
|
pub struct CollisionPlugin;
|
||||||
|
|
||||||
|
impl Plugin for CollisionPlugin {
|
||||||
|
fn build(&self, app: &mut App) {
|
||||||
|
//todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
9
src/enemy/mod.rs
Normal file
9
src/enemy/mod.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
use bevy::prelude::*;
|
||||||
|
|
||||||
|
pub struct EnemyPlugin;
|
||||||
|
|
||||||
|
impl Plugin for EnemyPlugin {
|
||||||
|
fn build(&self, app: &mut App) {
|
||||||
|
//todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
9
src/health/mod.rs
Normal file
9
src/health/mod.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
use bevy::prelude::*;
|
||||||
|
|
||||||
|
pub struct HealthPlugin;
|
||||||
|
|
||||||
|
impl Plugin for HealthPlugin {
|
||||||
|
fn build(&self, app: &mut App) {
|
||||||
|
//todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
22
src/main.rs
22
src/main.rs
|
|
@ -1,5 +1,25 @@
|
||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
|
|
||||||
|
use collision::CollisionPlugin;
|
||||||
|
use casting::CastingPlugin;
|
||||||
|
use health::HealthPlugin;
|
||||||
|
use enemy::EnemyPlugin;
|
||||||
|
use player::PlayerPlugin;
|
||||||
|
|
||||||
|
mod collision;
|
||||||
|
mod casting;
|
||||||
|
mod health;
|
||||||
|
mod enemy;
|
||||||
|
mod player;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
App::new().run();
|
App::new()
|
||||||
|
.add_plugins(DefaultPlugins)
|
||||||
|
.add_plugins((
|
||||||
|
CollisionPlugin,
|
||||||
|
CastingPlugin,
|
||||||
|
HealthPlugin,
|
||||||
|
EnemyPlugin,
|
||||||
|
PlayerPlugin))
|
||||||
|
.run();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
9
src/player/mod.rs
Normal file
9
src/player/mod.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
use bevy::prelude::*;
|
||||||
|
|
||||||
|
pub struct PlayerPlugin;
|
||||||
|
|
||||||
|
impl Plugin for PlayerPlugin {
|
||||||
|
fn build(&self, app: &mut App) {
|
||||||
|
//todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue