feat: make charDir customizable

This commit is contained in:
Kazhnuz 2021-03-22 19:21:27 +01:00
parent ddc1933b40
commit 50eb613a53

View file

@ -38,6 +38,7 @@ function Gizmo:applyProperties()
self.needButton = self.properties.needButton self.needButton = self.properties.needButton
self.charId = self.properties.charId or 1 self.charId = self.properties.charId or 1
self.charset = self.properties.charset or nil self.charset = self.properties.charset or nil
self.charDir = self.properties.charDir or "down"
self.cantTurn = self.properties.cantTurn or self.cantTurn self.cantTurn = self.properties.cantTurn or self.cantTurn
if (self.properties.event ~= nil) then if (self.properties.event ~= nil) then
local data = require("datas.gamedata.events." .. self.properties.event) local data = require("datas.gamedata.events." .. self.properties.event)