- [FIX] Hi ha que proveïr de una surface amb tiles al tilemap
This commit is contained in:
2
lua.cpp
2
lua.cpp
@@ -178,6 +178,8 @@ extern "C" {
|
||||
uint8_t celw = luaL_checknumber(L, 5);
|
||||
uint8_t celh = luaL_checknumber(L, 6);
|
||||
uint8_t layer = luaL_optinteger(L, 7, 0);*/
|
||||
uint8_t surface = luaL_checkinteger(L, 1);
|
||||
setsource(surface);
|
||||
map(); //celx, cely, sx, sy, celw, celh, layer);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -87,8 +87,9 @@ function tilemap.save(filename) end
|
||||
---Set surface as the current tilemap
|
||||
function tilemap.set(surface) end
|
||||
|
||||
---Draw the tilemap
|
||||
function tilemap.draw() end
|
||||
---@param surface number
|
||||
---Draw the tilemap, using the provided surface as tile graphics source
|
||||
function tilemap.draw(surface) end
|
||||
|
||||
---@param x number
|
||||
---@param y number
|
||||
|
||||
Reference in New Issue
Block a user