reduce animation framerate

This commit is contained in:
Pascal Batty 2019-04-29 13:27:09 +02:00
parent 998fbe485a
commit be5154ded3

View file

@ -50,7 +50,7 @@ anis={
} }
function drawActor(self) function drawActor(self)
self.spr=self.ani[(((t)//3)% #self.ani)+1] self.spr=self.ani[(((t)//4)% #self.ani)+1]
local flip local flip
if self.isFlipped then flip = 1 else flip = 0 end if self.isFlipped then flip = 1 else flip = 0 end
spr(self.spr, self.x, self.y, 0, 1, flip) spr(self.spr, self.x, self.y, 0, 1, flip)