- [NEW] tilemap.new(x,y)

- [CHG] tilemap.new i tilemap.load alliberen la surface anterior (si hi havia) del mapa
This commit is contained in:
2025-02-19 10:40:14 +01:00
parent 5306e82897
commit 45d31579d2
3 changed files with 20 additions and 2 deletions

View File

@@ -69,6 +69,11 @@ function surface.getPixel(x, y) end
---@class tilemap
tilemap = {}
---@param w number
---@param h number
---Create new map specifying width and height
function tilemap.new(w, h) end
---@param filename string
---@return number surface
---Load a tilemap from a file and set it as current tilemap
@@ -403,7 +408,7 @@ function window.setResolution(w, h) end
config = {}
---@param key string
---@param value string
---@param value any
---Sets the value of a key in the configuration file
function config.setKey(key, value) end