Ok,
This is the most real thing I can do.
ventana = Window:Create()
lienzo = Context:Create(ventana)
mundo = World:Create()
x = 0
mapa = 0
function Loading()
lienzo:DrawText("Loading Map...",lienzo:GetWidth()/2,lienzo:GetHeight()/2+75)
lienzo:Sync()
end
while x <= 200 do
x = x + 1
if x == 100 then
cargar = true
end
lienzo:DrawRect(lienzo:GetWidth()/2-50,lienzo:GetHeight()/2-25.5, x, 25, 0 )
lienzo:DrawRect(lienzo:GetWidth()/2-50,lienzo:GetHeight()/2-25, 200, 26, 1 )
lienzo:SetBlendMode(Blend.Alpha)
lienzo:DrawText("Loading",lienzo:GetWidth()/2,lienzo:GetHeight()/2+25)
lienzo:Sync()
if cargar == true then
mapa = Map:Load("Maps/07-AI and Events.map","Loading")
cargar = false
end
end
-- Level 1 Render.
while true do
if ventana:Closed() or ventana:KeyDown( Key.Escape )then return false end
mundo:Update()
mundo:Render()
lienzo:SetBlendMode(Blend.Alpha)
lienzo:SetColor(1,0,0)
lienzo:DrawText("HOLA",0,0)
lienzo:Sync()
end