122 |
r:delete() |
r:delete() |
123 |
end |
end |
124 |
|
|
125 |
|
|
126 |
|
-- Generate multiple image models by tiling a big image into many |
127 |
|
-- smaller subimages. The parameters are currently hardcoded, see |
128 |
|
-- "items.png" for an example image. |
129 |
function def_tiles(big_image, modelnames) |
function def_tiles(big_image, modelnames) |
130 |
local xoff = 0 |
local xoff = 0 |
131 |
local yoff = 0 |
local yoff = 0 |
155 |
function def_stone2(model, shmodel) |
function def_stone2(model, shmodel) |
156 |
shmodel = shmodel or "sh-solid" |
shmodel = shmodel or "sh-solid" |
157 |
display.DefineShadedModel (model, model.."#", shmodel) |
display.DefineShadedModel (model, model.."#", shmodel) |
|
-- def_alias (model, model.."#") |
|
|
-- def_alias (model.."-sh", shmodel) |
|
158 |
end |
end |
159 |
|
|
160 |
function def_stones(names) |
function def_stones(names) |