Skip to content

Commit

Permalink
整理代码
Browse files Browse the repository at this point in the history
菜单仍然有bug
  • Loading branch information
cloudhu committed Nov 9, 2024
1 parent 65ffc50 commit 9fcfa7d
Show file tree
Hide file tree
Showing 65 changed files with 3,529 additions and 1,402 deletions.
2 changes: 1 addition & 1 deletion .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added assets/fonts/AnonymousPro-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/DejaVuLGCSansMono.ttf
Binary file not shown.
Binary file removed assets/fonts/kenvector_future.ttf
Binary file not shown.
Binary file removed assets/fonts/kenvector_future_thin.ttf
Binary file not shown.
Binary file removed assets/images/bolt.png
Binary file not shown.
26 changes: 0 additions & 26 deletions assets/images/bolt.xml

This file was deleted.

Binary file removed assets/images/button.png
Binary file not shown.
27 changes: 0 additions & 27 deletions assets/images/button.xml

This file was deleted.

Binary file removed assets/images/damage.png
Binary file not shown.
32 changes: 0 additions & 32 deletions assets/images/damage.xml

This file was deleted.

Binary file removed assets/images/ducky.png
Binary file not shown.
Binary file removed assets/images/enemy.png
Binary file not shown.
43 changes: 0 additions & 43 deletions assets/images/enemy.xml

This file was deleted.

Binary file removed assets/images/lifeLogo.png
Binary file not shown.
35 changes: 0 additions & 35 deletions assets/images/lifeLogo.xml

This file was deleted.

Binary file removed assets/images/numbers.png
Binary file not shown.
33 changes: 0 additions & 33 deletions assets/images/numbers.xml

This file was deleted.

Binary file removed assets/images/pill.png
Binary file not shown.
27 changes: 0 additions & 27 deletions assets/images/pill.xml

This file was deleted.

Binary file removed assets/images/powerup.png
Binary file not shown.
52 changes: 0 additions & 52 deletions assets/images/powerup.xml

This file was deleted.

Binary file removed assets/images/shield.png
Binary file not shown.
26 changes: 0 additions & 26 deletions assets/images/shield.xml

This file was deleted.

Binary file removed assets/images/ships.png
Binary file not shown.
33 changes: 0 additions & 33 deletions assets/images/ships.xml

This file was deleted.

Binary file removed assets/images/ufo.png
Binary file not shown.
6 changes: 6 additions & 0 deletions src/components/health.rs → src/components/common.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
use bevy::prelude::*;

#[derive(Component)]
pub struct Seeker(pub Entity);

#[derive(Reflect, Component)]
pub struct Owner(pub Entity);

#[derive(Component)]
pub struct Health {
pub health: i32,
Expand Down
2 changes: 1 addition & 1 deletion src/components/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub mod health;
pub mod common;
Loading

0 comments on commit 9fcfa7d

Please sign in to comment.