Skip to content

Commit

Permalink
refactor: Small cleanup and renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
uggla committed Apr 30, 2024
1 parent 52bcf59 commit 96dea15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

4 changes: 2 additions & 2 deletions src/collision.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ pub struct CollisionState;

impl Plugin for CollisionPlugin {
fn build(&self, app: &mut App) {
app.add_systems(Update, player_ground.in_set(CollisionState));
app.add_systems(Update, player_collision.in_set(CollisionState));
}
}
fn player_ground(
fn player_collision(
controllers: Query<(Entity, &KinematicCharacterControllerOutput), With<Player>>,
state: Res<State<PlayerState>>,
mut next_state: ResMut<NextState<PlayerState>>,
Expand Down
2 changes: 1 addition & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub struct ForState<T> {
pub states: Vec<T>,
}

// Main state enum, differianting, Menu from Game 'scenes'
// Main state enum
#[derive(States, Debug, Copy, Clone, Hash, Eq, PartialEq, Default, Sequence)]
pub enum AppState {
#[default]
Expand Down

0 comments on commit 96dea15

Please sign in to comment.