add size to character
This commit is contained in:
parent
9a9b40748d
commit
7587395d2c
@ -13,6 +13,7 @@ local ANIMATION_SPEED = 0.1
|
|||||||
--- @field skills table
|
--- @field skills table
|
||||||
--- @field class "warrior"|"mage"
|
--- @field class "warrior"|"mage"
|
||||||
--- @field position Vec3
|
--- @field position Vec3
|
||||||
|
--- @field size Vec3
|
||||||
local character = {}
|
local character = {}
|
||||||
character.__index = character
|
character.__index = character
|
||||||
|
|
||||||
@ -35,6 +36,7 @@ local function spawn(name, spriteDir, level)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char.position = Vec3({})
|
char.position = Vec3({})
|
||||||
|
char.size = Vec3({})
|
||||||
|
|
||||||
char.state = "idle"
|
char.state = "idle"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user