mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 02:24:05 +09:00
player sprite to turn around even when airbourne
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user