LuaDrawing.wiki
changeset 262 4d5c4b93efb2
parent 261 4c759fad66cf
child 269 3282541a4491
equal deleted inserted replaced
261:4c759fad66cf 262:4d5c4b93efb2
     1 #summary Drawing maps with Lua.
     1 #summary Drawing maps with Lua.
     2 
     2 
     3 = Drawing Maps With Lua =
     3 = Drawing Maps With Lua =
     4 
     4 
     5 Starting in 0.9.18 it is possible to reliably use drawn map mode to draw maps with scripts.
     5 Starting in 0.9.18 it is possible to reliably use drawn map mode to draw maps with scripts.
     6 A simple example is given below.  Note that Drawn maps use an area of 2048x4096
     6 A simple example is given below.  Note that Drawn maps use an area of 2048x4096.  The examples below are static, but obviously this could be used for a random map variation - for example, simulating the Cave map by doing the fill below, then drawing random tunnels using circles that shift their course smoothly.
     7 
     7 
     8 = Details =
     8 = Details =
     9 
     9 
    10 First, a couple of convenience functions for drawing to the map.
    10 First, a couple of convenience functions for drawing to the map.
    11 <code lang="lua">
    11 <code lang="lua">