ai-npcs / world.lua
aduermael's picture
Add world.lua
962500b verified
raw
history blame
308 Bytes
Client.OnStart = function()
Camera:SetParent(World)
local ui = require("uikit")
local text = ui:createText("hello world!", Color.Black)
text.parentDidResize = function(self)
self.pos = { Screen.Width * 0.5 - self.Width * 0.5, Screen.Height * 0.5 - self.Height * 0.5 }
end
text:parentDidResize()
end