e
This commit is contained in:
parent
f657b6a4a4
commit
d163ceb291
76 changed files with 1385 additions and 524 deletions
|
|
@ -275,8 +275,12 @@ function tarinaiSpriteReversesFacing(sprite) {
|
|||
drawH *= 1.32;
|
||||
}
|
||||
if (sprite === "birth_ritual") {
|
||||
drawW *= 0.64;
|
||||
drawH *= 0.64;
|
||||
// The ritual source image has a larger source canvas than ordinary tarinai
|
||||
// sprites. Normalize its displayed bounds to the regular smile sprite so
|
||||
// entering the ritual does not make the actor visibly grow.
|
||||
const normalMetrics = getImageMetrics("smile") || { w: 512, h: 468 };
|
||||
drawW = (normalMetrics.w || 512) * visualScale * 0.30;
|
||||
drawH = (normalMetrics.h || 468) * visualScale * 0.30;
|
||||
}
|
||||
if (fallPose > 0) {
|
||||
drawW *= 1 + fallPose * 0.08;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue