Skip to content

Commit

Permalink
feat(level_sprite_design): Loop audio and update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
MadMed677 committed Sep 4, 2022
1 parent 7d11cdf commit 451aefe
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## [0.1.13] - 2022-09-04

| New HuD | New level with new ladders |
| ------------------------------------ | ------------------------------------------------ |
| ![0_1_13_hud](./docs/0_1_13_hud.gif) | ![0_1_13_new_layer](./docs/0_1_13_new_layer.gif) |

### Changed

#### HuD

- Update player HuD. Now the HuD for the player visualized not above the player
but on the top-left corner
- Update not only health count but also health bar
- Decrease player health from `10` to `5`

#### Audio

- Update player background audio file and add extra ones.
- Loop audio when it ends

#### Font

- Update default font color

---

## [0.1.12] - 2022-08-29

| Animation | Animation name |
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

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

Binary file added docs/0_1_13_hud.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/0_1_13_new_layer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/audio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ fn start_bg_music(
match audio_state.bg_state {
// If the song is stopped or never played before we just need to start it
BackgroundMusicState::Stopped => {
background_audio.play(audio_state.bg_handle.clone());
background_audio
.play(audio_state.bg_handle.clone())
.looped();
audio_state.bg_state = BackgroundMusicState::Playing;
}

Expand Down

0 comments on commit 451aefe

Please sign in to comment.