Skip to content

Commit

Permalink
chore: finishing touches before game jam release
Browse files Browse the repository at this point in the history
  • Loading branch information
ProspectPyxis committed Mar 4, 2022
1 parent 12625b2 commit bee6fc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
4 changes: 0 additions & 4 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ pub struct MainCamera;
#[derive(Component)]
pub struct Player;

#[derive(Component)]
pub struct BlockableProjectile;

pub enum EnemyAI {
ChasesPlayer { speed: f32 },
Archer { target_y: f32 },
Expand Down Expand Up @@ -183,7 +180,6 @@ pub struct Animated {
pub enum MainMenuButton {
Start,
Credits,
Exit,
}

#[derive(Component)]
Expand Down
6 changes: 1 addition & 5 deletions src/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::common::{
CurrentDay, DayEndReason, EndDayEvent, EnemyMorale, GameAudio, GameFonts, GameOverButton,
GameSprites, GameState, MainMenuButton, NarrationViewed, OpeningNarration, Ui,
};
use bevy::{app::AppExit, prelude::*};
use bevy::prelude::*;
use bevy_ecs_tilemap::prelude::*;
use bevy_kira_audio::Audio;

Expand Down Expand Up @@ -59,7 +59,6 @@ pub fn button_main_menu(
mut current_day: ResMut<CurrentDay>,
audio: Res<GameAudio>,
audio_player: Res<Audio>,
mut app_exit: EventWriter<AppExit>,
mut narration_viewed: ResMut<NarrationViewed>,
) {
for (interaction, mut color, button_type) in q_interaction.iter_mut() {
Expand All @@ -80,9 +79,6 @@ pub fn button_main_menu(
MainMenuButton::Credits => {
state.set(GameState::Credits).unwrap();
}
MainMenuButton::Exit => {
app_exit.send(AppExit);
}
}
}
Interaction::Hovered => {
Expand Down
10 changes: 4 additions & 6 deletions src/player.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use crate::common::{
get_cursor_position, BlockableProjectile, ChangeSpellEvent, CurrentDay, DamagePlayerEvent,
DamagesEnemy, DayEndReason, DespawnTimer, EndDayEvent, EnemyMorale, GameAudio, GameFonts,
GamePhysicsLayer, GameSprites, GameState, Health, InGameUI, InvisTimer, LightningStrikeBolt,
MainCamera, Player, PlayerSpell, PlayerSpellData, SpellCooldowns, Ui, Vec3Utils, SCREEN_HEIGHT,
SCREEN_WIDTH,
get_cursor_position, ChangeSpellEvent, CurrentDay, DamagePlayerEvent, DamagesEnemy,
DayEndReason, DespawnTimer, EndDayEvent, EnemyMorale, GameAudio, GameFonts, GamePhysicsLayer,
GameSprites, GameState, Health, InGameUI, InvisTimer, LightningStrikeBolt, MainCamera, Player,
PlayerSpell, PlayerSpellData, SpellCooldowns, Ui, Vec3Utils, SCREEN_HEIGHT, SCREEN_WIDTH,
};
use bevy::{input::keyboard::KeyCode, prelude::*};
use bevy_kira_audio::Audio;
Expand Down Expand Up @@ -131,7 +130,6 @@ pub fn player_shoot(
},
..Default::default()
})
.insert(BlockableProjectile)
.insert(RigidBody::KinematicVelocityBased)
.insert(Velocity::from_linear(
(cursor_pos - player_t.translation.truncate())
Expand Down

0 comments on commit bee6fc7

Please sign in to comment.