Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Waridley committed Feb 8, 2024
1 parent b1f37e0 commit 308958c
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion rs/src/enemies/copter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use bevy::prelude::*;
pub struct QuadCopterPlugin;

impl Plugin for QuadCopterPlugin {
fn build(&self, app: &mut App) {
fn build(&self, _app: &mut App) {
//todo
}
}
2 changes: 1 addition & 1 deletion rs/src/enemies/mine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use bevy::prelude::*;
pub struct MinePlugin;

impl Plugin for MinePlugin {
fn build(&self, app: &mut App) {
fn build(&self, _app: &mut App) {
//todo
}
}
4 changes: 2 additions & 2 deletions rs/src/mats/fog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub struct DistanceDither {
/// Distance from the camera at which the mesh is fully discarded.
#[uniform(100)]
pub far_end: f32,

/// Distance from the camera at which the mesh starts to fade away.
#[uniform(100)]
pub near_start: f32,
Expand All @@ -109,7 +109,7 @@ impl DistanceDither {
far_end: end,
near_start: 32.0,
near_end: 0.0,
matrix
matrix,
}
}
}
Expand Down
1 change: 1 addition & 0 deletions rs/src/nav.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use std::{collections::HashSet, sync::Weak};
pub mod alg;
pub mod heightmap;

/// TODO: Issue [#33](https://github.com/Waridley/hack-and-slash/issues/33)
#[derive(Resource, Debug)]
pub struct NavGraph {
heightmaps: HashMap<ChunkIndex, Weak<HeightField>>,
Expand Down
4 changes: 2 additions & 2 deletions rs/src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -841,8 +841,8 @@ pub fn orbs_follow_arms(

#[derive(Event, Clone, Debug)]
pub struct PlayerSpawnEvent {
id: PlayerId,
died_at: PlanetVec2,
pub id: PlayerId,
pub died_at: PlanetVec2,
}

pub fn countdown_respawn(
Expand Down
8 changes: 7 additions & 1 deletion rs/src/player/abilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,13 @@ pub fn trigger_player_abilities(

if state.just_pressed(Dash) && *boost_charge >= dash_cost {
**boost_charge -= *dash_cost;
dash(state.clamped_axis_pair(Move), dash_vel, &mut vel.linvel, &*audio, &*sfx);
dash(
state.clamped_axis_pair(Move),
dash_vel,
&mut vel.linvel,
&*audio,
&*sfx,
);
}

if state.just_pressed(FireA) {
Expand Down
2 changes: 1 addition & 1 deletion rs/src/ui/game_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ pub fn plugin(app: &mut App) -> &mut App {
app.add_systems(Update, setup)
}

pub fn setup(mut cmds: Commands) {}
pub fn setup(_cmds: Commands) {}
2 changes: 1 addition & 1 deletion sond-bevy-particles

0 comments on commit 308958c

Please sign in to comment.