player sprite to turn around even when airbourne

This commit is contained in:
minjaesong
2024-08-12 16:17:46 +09:00
parent 9c9806f622
commit fdbfad9633
2 changed files with 17 additions and 17 deletions

View File

@@ -839,18 +839,6 @@ open class ActorHumanoid : ActorWithBody, Controllable, Pocketed, Factionable, L
throw e throw e
} }
} }
// flipping the sprite
if (walkHeading == LEFT) {
sprite?.flip(true, false)
spriteGlow?.flip(true, false)
spriteEmissive?.flip(true, false)
}
else {
sprite?.flip(false, false)
spriteGlow?.flip(false, false)
spriteEmissive?.flip(false, false)
}
} }
else { else {
@@ -868,6 +856,18 @@ open class ActorHumanoid : ActorWithBody, Controllable, Pocketed, Factionable, L
(spriteEmissive as? SheetSpriteAnimation)?.switchRow(SPRITE_ROW_IDLE) (spriteEmissive as? SheetSpriteAnimation)?.switchRow(SPRITE_ROW_IDLE)
} }
} }
// flipping the sprite
if (walkHeading == LEFT) {
sprite?.flip(true, false)
spriteGlow?.flip(true, false)
spriteEmissive?.flip(true, false)
}
else {
sprite?.flip(false, false)
spriteGlow?.flip(false, false)
spriteEmissive?.flip(false, false)
}
} }
override fun reload() { override fun reload() {

View File

@@ -63,9 +63,9 @@ Worlds must overwrite new Actor's position to make them spawn in right place.
### Remarks ### Remarks
* Making `inventory` transient is impossible as it would render Storage Chests unusable. * Making `inventory` transient is impossible as it would render Storage Chests unusable.
* `genver` used in World and Player have different meaning * `genver` used in World and Player JSON has different meaning:
* in World, the value is the version of the game the world is generated first, so that the future version of the game with different worldgen algorithm would still use old algorithm for the savegames made from the old version * in World, the value is the version of the game **the world was generated with**, so that the future version of the game with different worldgen algorithm would still use old algorithm for the world made from the old version
* in Player, the value is the version the game has been saved, should be equal to or larger than the World genver * in Player, the value is the version the game **the player was recently saved with**, should be equal to or larger than the World genver
## Prerequisites ## Prerequisites
1. Player ID must not be strictly 9545698 (0x91A7E2) 1. Player ID must not be strictly 9545698 (0x91A7E2)
@@ -75,8 +75,8 @@ Worlds must overwrite new Actor's position to make them spawn in right place.
## To-dos After the Initial Implementation ## To-dos After the Initial Implementation
1. Modify Savegame Crackers and Disk Crackers to work with the new scheme [x] Modify Savegame Crackers and Disk Crackers to work with the new scheme
2. Create Player Creator Tool for avatar-makers [ ] Create Player Creator Tool for avatar-makers
## Goals ## Goals