equal
deleted
inserted
replaced
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"> |