Skip to content

Commit

Permalink
Stand animation name fallback (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
neolao authored Apr 11, 2020
1 parent 82d788d commit 5044bdc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.30.2] - 2020-04-11
### Added
- Add a file name pattern "images/anim_*" for stand animations

## [0.30.1] - 2020-04-10
### Fixed
- Change the default scale for stand animation

## [0.30.0] - 2020-04-10
### Added
- Scale the stand animation when resizing the window
Expand Down Expand Up @@ -42,7 +50,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Random character includes styles
- Random character select the first color automatically

[Unreleased]: https://github.com/mugen-launcher/quick-versus/compare/0.30.1...HEAD
[Unreleased]: https://github.com/mugen-launcher/quick-versus/compare/0.30.2...HEAD
[0.30.2]: https://github.com/mugen-launcher/quick-versus/compare/0.30.1...0.30.2
[0.30.1]: https://github.com/mugen-launcher/quick-versus/compare/0.30.0...0.30.1
[0.30.0]: https://github.com/mugen-launcher/quick-versus/compare/0.29.1...0.30.0
[0.29.1]: https://github.com/mugen-launcher/quick-versus/compare/0.29.0...0.29.1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mugen-quick-versus-launcher",
"author": "neolao",
"license": "MIT",
"version": "0.30.1",
"version": "0.30.2",
"description": "Mugen launcher for Quick Versus",
"keywords": [
"mugen",
Expand Down
1 change: 1 addition & 0 deletions src/character/useCharacterStandAnimation.hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default function useCharacterStandAnimation(character, colorIndex = 1) {
const directoryPath = path.dirname(definitionPath);
const imagePathsByPriority = [
path.resolve(directoryPath, "images", `export_anim_${colorIndex}.gif`),
path.resolve(directoryPath, "images", `anim_${colorIndex}.gif`),
path.resolve(directoryPath, `stand${colorIndex}.gif`),
path.resolve(directoryPath, "stand.gif")
];
Expand Down

0 comments on commit 5044bdc

Please sign in to comment.