Camoy/ISO — Issue #5: Map Constructor API
Author: Camoy
Created: 2012-01-13 02:46:56+00:00
State: open

The Map object should have a constructor. Whether this will replace map:load or map:generate is beyond me. I think it should probably replace map:generate and take sources and the map table as arguments. Proposed API as follows.

local map = love.iso.map:new({'grass.png'}, {1, 0, 1});

Perhaps generate shouldn't even be included with map. Generate isn't really practical since you should be creating maps with Tiled in the first place. However, it is nice to have as a quick and dirty map.