Compare commits

...

2 commits

Author SHA1 Message Date
52c98da1fd Most important modules 2026-05-04 23:52:04 +05:00
4782a37f94 Bevy basics 2026-05-04 23:40:58 +05:00
6 changed files with 68 additions and 1 deletions

9
src/casting/mod.rs Normal file
View 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
View 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
View 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
View file

@ -0,0 +1,9 @@
use bevy::prelude::*;
pub struct HealthPlugin;
impl Plugin for HealthPlugin {
fn build(&self, app: &mut App) {
//todo!()
}
}

View file

@ -1,3 +1,25 @@
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() {
println!("Hello, topchejak!");
App::new()
.add_plugins(DefaultPlugins)
.add_plugins((
CollisionPlugin,
CastingPlugin,
HealthPlugin,
EnemyPlugin,
PlayerPlugin))
.run();
}

9
src/player/mod.rs Normal file
View file

@ -0,0 +1,9 @@
use bevy::prelude::*;
pub struct PlayerPlugin;
impl Plugin for PlayerPlugin {
fn build(&self, app: &mut App) {
//todo!()
}
}