refactor: Remove unused components, add Pom component

This commit is contained in:
demenik
2025-11-17 18:56:42 +01:00
parent fc180ce085
commit a25ac24e07
2 changed files with 3 additions and 18 deletions

View File

@@ -1,21 +1,4 @@
use bevy::prelude::*;
#[derive(Component)]
pub struct GameRootNode;
#[derive(Component)]
pub struct GameScreenRoot;
#[derive(Component)]
pub struct StartScreenRoot;
#[derive(Component)]
pub struct DynamicMenuText {
pub text: String,
}
#[derive(Component)]
pub struct StartButtonText;
#[derive(Component)]
pub struct FpsText;
pub struct Pom;

View File

@@ -1,3 +1,4 @@
use crate::components::*;
use crate::states::*;
use bevy::prelude::*;
use bevy_aseprite_ultra::prelude::*;
@@ -13,6 +14,7 @@ impl Plugin for GameScreenPlugin {
fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
commands.spawn((
Pom,
AseAnimation {
aseprite: asset_server.load("pom-sleep.aseprite"),
animation: Animation::tag("sleep-sit-start").with_repeat(AnimationRepeat::Loop),