Skip to content

Commit

Permalink
Remove unused assets
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Jul 29, 2024
1 parent c50b630 commit 81a8ec6
Show file tree
Hide file tree
Showing 20 changed files with 8 additions and 18 deletions.
Binary file removed assets/audio/sfx/24787__young_daddy__clap-mix2.ogg
Binary file not shown.
Binary file removed assets/audio/sfx/24787__young_daddy__clap-mix2.wav
Binary file not shown.
Binary file removed assets/audio/sfx/Projectile Hits Player-02.ogg
Binary file not shown.
Binary file removed assets/audio/sfx/Projectile Hits Player-02.wav
Binary file not shown.
Binary file removed assets/audio/sfx/UI Click_1.ogg
Binary file not shown.
Binary file removed assets/audio/sfx/UI Click_1.wav
Binary file not shown.
Binary file modified assets/image/card/icon/cacophony.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/image/card/icon/triplet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/image/vfx/bubble.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/mockup/cards.aseprite
Binary file not shown.
Binary file modified assets/mockup/dance_party.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Binary file removed assets/mockup/ingame.aseprite
Binary file not shown.
Binary file removed assets/mockup/levelup.aseprite
Binary file not shown.
2 changes: 1 addition & 1 deletion src/game/actor/enemy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn enemy(key: impl Into<String>) -> impl EntityCommand {
let config = r!(config.get());
let actor = r!(config.enemies.get(&key)).clone();

(actor, game_root.enemies, assets.sfx_kick.clone())
(actor, game_root.enemies, assets.sfx_enemy_hurt.clone())
};

world
Expand Down
2 changes: 1 addition & 1 deletion src/game/actor/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn player(key: impl Into<String>) -> impl EntityCommand {
actor,
game_root.players,
camera_root.primary,
assets.sfx_movement.clone(),
assets.sfx_player_hurt.clone(),
assets.sfx_restart.clone(),
assets.bubble.clone(),
)
Expand Down
18 changes: 4 additions & 14 deletions src/screen/playing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,28 +106,18 @@ pub struct PlayingAssets {
pub sfx_restart: Handle<AudioSource>,
#[asset(path = "audio/sfx/Level Up_1.ogg")]
pub sfx_level_up: Handle<AudioSource>,
#[asset(path = "audio/sfx/Projectile Hits Player-02.ogg")]
pub sfx_hurt: Handle<AudioSource>,
#[asset(path = "audio/sfx/UI Hover.ogg")]
pub sfx_ui_click_fail: Handle<AudioSource>,
#[asset(path = "audio/sfx/UI Hover_1.ogg")]
pub sfx_ui_click: Handle<AudioSource>,
#[asset(path = "audio/sfx/UI Click.ogg")]
pub sfx_ui_hover: Handle<AudioSource>,
#[asset(path = "audio/sfx/UI Hover_1.ogg")]
pub sfx_ui_click1: Handle<AudioSource>,
#[asset(path = "audio/sfx/UI Click_1.ogg")]
pub sfx_ui_hover1: Handle<AudioSource>,
#[asset(path = "audio/sfx/Movement.ogg")]
pub sfx_movement: Handle<AudioSource>,
pub sfx_player_hurt: Handle<AudioSource>,

// CC0 assets from freesound.org:
#[asset(path = "audio/sfx/24787__young_daddy__clap-mix2.ogg")]
pub sfx_clap: Handle<AudioSource>,
#[asset(path = "audio/sfx/102130__noirpantalon__hard_subby_kick.ogg")]
pub sfx_kick: Handle<AudioSource>,
#[asset(path = "audio/sfx/137105__chaosportal__finger-snap-01.ogg")]
pub sfx_snap0: Handle<AudioSource>,
#[asset(path = "audio/sfx/444407__mootmcnoodles__slap.ogg")]
pub sfx_snap1: Handle<AudioSource>,
pub sfx_enemy_hurt: Handle<AudioSource>,
}

impl Configure for PlayingAssets {
Expand Down
2 changes: 1 addition & 1 deletion src/screen/playing/level_up_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ fn card_discard(
mut deck_query: Query<&mut Deck>,
) {
audio
.play(assets.sfx_ui_click.clone())
.play(assets.sfx_ui_click_fail.clone())
.with_playback_rate(rand::thread_rng().gen_range(0.8..1.4));
for selection in &deck_display_query {
let mut deck = c!(deck_query.get_mut(selection.0));
Expand Down
Binary file modified src/screen/splash/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/ui/interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ fn play_interaction_sfx(
},
Interaction::Pressed => {
audio
.play(assets.sfx_ui_click1.clone())
.play(assets.sfx_ui_click.clone())
.with_volume(0.6)
.with_playback_rate(rand::thread_rng().gen_range(0.7..1.6));
},
Expand Down

0 comments on commit 81a8ec6

Please sign in to comment.