YAY
- Mask functionality - Rehandled Animations (now consistent)
This commit is contained in:
@@ -6,11 +6,7 @@ function Entity:New(x,y)
|
||||
o.pos = {x = x, y = y}
|
||||
o.vel = {x = 0, y = 0}
|
||||
o.class = "Entity"
|
||||
o.anim = {}
|
||||
o.anim.subframe = 0
|
||||
o.anim.frame = 1
|
||||
o.anim.imgs = {}
|
||||
o.animations = {}
|
||||
|
||||
o.sprite_offset = {x = 0, y = 0}
|
||||
o.sprite_scale = {x = 1, y = 1}
|
||||
o.sprite_rotation = math.rad(0)
|
||||
@@ -25,7 +21,7 @@ function Entity:Move(target, speed) -- target = {tx int, ty int} / speed = int
|
||||
|
||||
end
|
||||
|
||||
function Entity:Draw()
|
||||
--[[function Entity:Draw()
|
||||
if self.sprite ~= nil then
|
||||
local relative_position_x = self.pos.x - Camera.pos.x
|
||||
local relative_position_y = self.pos.y - Camera.pos.y
|
||||
@@ -148,6 +144,7 @@ function Entity:LoadAnimation(anim,frames,speed)
|
||||
self.anim.imgs = anim.imgs
|
||||
end
|
||||
end
|
||||
]]--
|
||||
|
||||
require "data/scripts/entities/kupo"
|
||||
require "data/scripts/entities/arrow"
|
||||
|
||||
Reference in New Issue
Block a user