Want to get a map on-screen as soon as possible? Just follow these instructions and you'll be using Dusk in no time.
Download the ZIP archive from GitHub, expand, and copy the engine folder (named "Dusk") into your project's root directory (the one with main.lua
in it).
In your scene, add the following line:
local dusk = require("Dusk.Dusk")
Make a Tiled map and export it as JSON, then load it with the following:
local map = dusk.buildMap("path/to/map.json")
Make sure you include your extension, even if it's a Lua map!
Run it in the Corona Simulator! Presto! A map.
map.layer["layer name"]
or map.layer[index]
map.layer[whatever]:insert(obj)
)map.updateView()
in your enterFrame
listener to make the camera system and culling work, otherwise, it'll appear that any part of the map that's off the screen has disappeared (it has, due to Dusk's culling algorithm)