Load

This function loads a Leadwerks map (*.map) file.

Syntax

Parameters

Returns

Returns true if the scene was successfully loaded, otherwise false is returned.

Example

--Create a window
window = Window:Create()
context = Context:Create(self.window)
world = World:Create()

--Load a map
Map:Load("Maps/start.map")

while true do
if self.window:Closed() or self.window:KeyHit(Key.Escape) then return false end

Time:Update()
self.world:Update()
self.world:Render()
self.context:Sync()

return true
end