alpha 0.1
This commit is contained in:
@@ -12,7 +12,7 @@ function Player:init(x, y)
|
||||
self.animation:addState("down", 1, 7)
|
||||
self.animation.down.frameDuration = 6
|
||||
self.animation:addState("boom", 15, 21)
|
||||
self.animation.boom.frameDuration = 10
|
||||
self.animation.boom.frameDuration = 6
|
||||
self.animation.boom.loop = false
|
||||
|
||||
self.animation:setState("down")
|
||||
@@ -173,7 +173,7 @@ function Player:handleMovementAndCollisions()
|
||||
self:boom()
|
||||
return
|
||||
elseif collisionTag == 154 then -- Baleba
|
||||
--self:boom(collisionObject)
|
||||
self:boom(collisionObject)
|
||||
return
|
||||
elseif collisionTag == 2 then -- Tank
|
||||
self:boom()
|
||||
|
18
source/scripts/selectionSprite.lua
Normal file
18
source/scripts/selectionSprite.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
Selection = {}
|
||||
class("Selection").extends(NobleSprite)
|
||||
|
||||
function Selection:init(x, y)
|
||||
Selection.super.init(self, "assets/sprites/selectionanim", true)
|
||||
|
||||
-- Animation properties
|
||||
self.animation:addState("run", 1, 11)
|
||||
self.animation.run.frameDuration = 1
|
||||
|
||||
self.animation:setState("run")
|
||||
|
||||
-- Collision properties
|
||||
self:setZIndex(ZIndex.alert)
|
||||
self:setSize(41, 40)
|
||||
self:add()
|
||||
self:moveTo(x or 0, y or 0)
|
||||
end
|
Reference in New Issue
Block a user