Adjust terrible offsets
This commit is contained in:
parent
d4b08d7196
commit
850a5486bf
|
@ -65,9 +65,9 @@ export class AnimalEntity extends Entity {
|
||||||
if (this.puddleTimer >= 600) {
|
if (this.puddleTimer >= 600) {
|
||||||
if (ctx) {
|
if (ctx) {
|
||||||
let p = this.position
|
let p = this.position
|
||||||
p[0] += (this.sprite.frame?.originX??0) + ((this.sprite.frame?.width??0)/2??0)
|
p[0] += ((this.sprite.frame?.width??0)/2??0) - 4
|
||||||
p[1] += (this.sprite.frame?.originY??0) + ((this.sprite.frame?.height??0)/2??0)
|
p[1] += ((this.sprite.frame?.height??0)/2??0)
|
||||||
ctx.addEntity(new PuddleEntity('effects.water.ripple.small.0'), 'ground', p[0]+4, p[1]+6)
|
ctx.addEntity(new PuddleEntity('effects.water.ripple.small.0'), 'ground', p[0], p[1])
|
||||||
}
|
}
|
||||||
this.puddleTimer = 0
|
this.puddleTimer = 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user