-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFAQ
More file actions
27 lines (13 loc) · 781 Bytes
/
FAQ
File metadata and controls
27 lines (13 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"Preguntas Frecuentes Respondidas acerca de 8BPL"
1. ¿Que formatos de imagen soporta Tilengine?
Todas las imágenes deben ser de formato PNG de 8-bit indexado. Por ejemplo
tenemos una imagen llamada 'arbol.png', miramos de qué formato es:
$ file arbol.png
PNG image data, 64 x 64, 16-bit/color RGBA, non-interlaced
Por lo tanto no es un formato válido para el motor Tilengine pero podemos
convertirla con ImageMagick, aquí un ejemplo (sobreescribe el original):
$ magick arbol.png -colors 256 -background black -alpha background PNG8:arbol.png
$ file arbol.png
PNG image data, 64 x 64, 8-bit colormap, non-interlaced
Puede ver que dice "8-bit colormap"; ahora sí es un formato válido para
Tilengine.