buildat/share/init.lua

8 lines
209 B
Lua
Raw Normal View History

2014-09-16 15:27:57 +03:00
print("foo")
require "Polycode/Core"
scene = Scene(Scene.SCENE_2D)
scene:getActiveCamera():setOrthoSize(640, 480)
label = SceneLabel("Hello from Lua!", 32)
label:setPosition(-50, -50, 0)
scene:addChild(label)