Resize sprites, tighten player hitbox, implement smarter collision.
This commit is contained in:
parent
eb6d37f99c
commit
9a26eb4b3a
5 changed files with 11 additions and 5 deletions
|
@ -53,7 +53,8 @@ function Kani:init(ui)
|
|||
self.type = 'kani'
|
||||
self:setGroupMask(0x2)
|
||||
self:setCollidesWithGroupsMask(0xd)
|
||||
|
||||
self:setCollideRect(1,12,25,24)
|
||||
|
||||
self.reserveCharge = 100
|
||||
|
||||
-- controls the speed the crank recharges the player's reserves. A lower number allows faster charging.
|
||||
|
@ -155,6 +156,6 @@ end
|
|||
function Kani:runReady()
|
||||
local collisions = Kani.super.runReady(self)
|
||||
for i=0, #collisions, 1 do
|
||||
-- handle player-triggered collisions
|
||||
-- TODO: handle player-triggered collisions
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue