Skip to main content

main

This is a starter file that is automatically added when a new project is created. Unlike the standard framework files, which are read-only, this file is intended for you to edit as you develop your program.

module main
func start()
engine::init()
if symbols::scenes <> null and symbols::scenes.size > 0
do symbols::scenes[0].load()

console::init(io::tilemap_a)
if art::fonts.size > 0
do engine::tile_layer_a.load_tileset(art::fonts[0])

sound::init()

loop
engine::render()
engine::wait_for_paint()
engine::think()
sound::think()
console::think()
end loop
end func
end module