refactor: Remove unused components, add Pom component
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user