- VERSIÓ 1.1
- [NEW] map.surf() per a obtindre i fixar la surface que usa el tilemap - [NEW] Llevats map.new, map.load i map.save. Es fa des de les surfaces.
This commit is contained in:
@@ -62,22 +62,13 @@ function surf.pixel(x, y, color) end
|
||||
---@class map
|
||||
map = {}
|
||||
|
||||
---@param w number
|
||||
---@param h number
|
||||
---Create new map specifying width and height
|
||||
function map.new(w, h) end
|
||||
|
||||
---@param filename string
|
||||
---Load a tilemap from a file and set it as current tilemap
|
||||
function map.load(filename) end
|
||||
|
||||
---@param filename string
|
||||
---Save the current tilemap in a file
|
||||
function map.save(filename) end
|
||||
---@return number surface
|
||||
---Get tilemaps current surface
|
||||
function map.surf() end
|
||||
|
||||
---@param surface number
|
||||
---Set surface as the current tilemap
|
||||
function map.set(surface) end
|
||||
function map.surf(surface) end
|
||||
|
||||
---Draw the tilemap, using the source surface as tile graphics source
|
||||
function map.draw() end
|
||||
|
||||
Reference in New Issue
Block a user