Hmm weird. What happens when you try the first tutorial (no flowgraph):
local pos
--This function will be called once when the program starts
function App:Start()
--Set the application title
self.title="_1_GettingStarted"
--Create a window
self.window=Window:Create(self.title)
self.window:HideMouse()
--Create the graphics context
self.context=Context:Create(self.window,0)
if self.context==nil then return false end
--Create a world
self.world=World:Create()
pos = Vec3(2, 2)
return true
end
--This is our main program loop and will be called continuously until the program ends
function App:Loop()
--If window has been closed, end the program
if self.window:Closed() or self.window:KeyDown(Key.Escape) then return false end
--Update the x position of the pos vector
pos.x = pos.x + (1 * Time:GetSpeed())
--Update the app timing
Time:Update()
--Update the world
self.world:Update()
--Render the world
self.world:Render()
self.context:Clear();
--Draw yellow rectangle
self.context:SetColor(120,120,0)
self.context:DrawRect(0, 0, 100, 60)
-- Draw red text
self.context:SetColor(255,0,0)
self.context:SetBlendMode(Blend.Alpha)
self.context:DrawText("Hello world!",pos.x, 500 )
self.context:SetBlendMode(Blend.Solid)
-- Set background color to black
self.context:SetColor(0,0,0)
--Refresh the screen
self.context:Sync()
--Returning true tells the main program to keep looping
return true
end