Add bs offsets to puddles
This commit is contained in:
parent
5395cf4d61
commit
4e18f933f0
|
@ -67,7 +67,7 @@ export class AnimalEntity extends Entity {
|
||||||
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?.originX??0) + ((this.sprite.frame?.width??0)/2??0)
|
||||||
p[1] += (this.sprite.frame?.originY??0) + ((this.sprite.frame?.height??0)/2??0)
|
p[1] += (this.sprite.frame?.originY??0) + ((this.sprite.frame?.height??0)/2??0)
|
||||||
ctx.addEntity(new PuddleEntity('effects.water.ripple.small.0'), 'ground', p[0], p[1])
|
ctx.addEntity(new PuddleEntity('effects.water.ripple.small.0'), 'ground', p[0]+4, p[1]+6)
|
||||||
}
|
}
|
||||||
this.puddleTimer = 0
|
this.puddleTimer = 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user