Smooth out weapon usage and movement, add health bar.
This commit is contained in:
parent
e045eec163
commit
a5bb3744b5
3 changed files with 23 additions and 16 deletions
|
@ -24,9 +24,7 @@ function Meter:setValue(value)
|
|||
x = 0
|
||||
w = self.width
|
||||
y = self.height - playdate.math.lerp(0, self.height, value / 100)
|
||||
print(y)
|
||||
h = self.height - y
|
||||
print(h)
|
||||
else
|
||||
y = 0
|
||||
h = self.height
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue