Update map.surf
17
map.new.md
17
map.new.md
@@ -1,17 +0,0 @@
|
|||||||
# map.new(width, height)
|
|
||||||
Crea un nou tilemap del tamany especificat.
|
|
||||||
|
|
||||||
### Paràmetres
|
|
||||||
|
|
||||||
`width`, `height`
|
|
||||||
Un nombre enter especificant el ample o el alt del tilemap.
|
|
||||||
|
|
||||||
### Exemple
|
|
||||||
```
|
|
||||||
-- TODO
|
|
||||||
```
|
|
||||||
|
|
||||||
### Vore també
|
|
||||||
* [map.load](map.load)
|
|
||||||
* [map.set](map.set)
|
|
||||||
* [map.save](map.save)
|
|
||||||
19
map.surf.md
Normal file
19
map.surf.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# map.surf(surface)
|
||||||
|
Especifica la surface que conté els tiles per al mapa.
|
||||||
|
|
||||||
|
### Paràmetres
|
||||||
|
|
||||||
|
`surface`
|
||||||
|
Una surface carregada amb [surf.load](surf.load) o creada amb [surf.new](surf.new). Els tiles se corresponen amb els pixels de la surface.
|
||||||
|
|
||||||
|
### Exemple
|
||||||
|
```
|
||||||
|
local surf = surf.load("mapa.gif")
|
||||||
|
map.surf(surf)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Vore també
|
||||||
|
* [surf.load](surf.load)
|
||||||
|
* [surf.new](surf.new)
|
||||||
|
* [map.draw](map.draw)
|
||||||
|
* [map.tile](map.tile)
|
||||||
Reference in New Issue
Block a user