aduermael commited on
Commit
962500b
1 Parent(s): bfcc5da

Add world.lua

Browse files
Files changed (1) hide show
  1. world.lua +11 -0
world.lua ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Client.OnStart = function()
2
+ Camera:SetParent(World)
3
+
4
+ local ui = require("uikit")
5
+
6
+ local text = ui:createText("hello world!", Color.Black)
7
+ text.parentDidResize = function(self)
8
+ self.pos = { Screen.Width * 0.5 - self.Width * 0.5, Screen.Height * 0.5 - self.Height * 0.5 }
9
+ end
10
+ text:parentDidResize()
11
+ end