No Description

Redo 63f434dec0 add readme 1 year ago
png2map 50f93dc184 add external png reader 2 years ago
.gitignore fd58d91775 add maps to gitignore 2 years ago
description.txt 8eb0088cae initial commit - working 2 years ago
map.lua 98be9dc6c2 fix include tree to start from test.lua 1 year ago
readme.txt 63f434dec0 add readme 1 year ago
server.cs 98be9dc6c2 fix include tree to start from test.lua 1 year ago
terrain.lua 98be9dc6c2 fix include tree to start from test.lua 1 year ago
test.lua 98be9dc6c2 fix include tree to start from test.lua 1 year ago

readme.txt


Requires https://notabug.org/redo/luainc

terrain.lua provides
GenerateTerrain(
position {x, y, z} - Real world position of southwest corner of map
box - {minX, minY, maxX, maxY} - Range of positions to query height/color for and build
cubeHeight - 0.25, 0.5, 0.75, 1, or 2 - modter height ratio
getHeight(x, y) - function that returns height (in cubes) at a given position
getColor(x, y) - function that returns colorID at a given position
printName - name of print to apply to modter bricks i.e. "letters/A"
) - Creates a terrain object
BuildTerrain(terrain) - Plant bricks for terrain object
DeleteTerrain(terrain) - Remove bricks that were planted for terrain object
ReplaceTerrain(oldTerrain, newTerrain) - Replace one terrain object's bricks with another, preserving unmodified bricks