42_so_long/dev/HOW_TO_IMPORT_ASSETS.md
2024-03-06 16:19:34 +01:00

289 B

How to import assets?

  1. sudo apt install magickimage
  2. cd to a directory where there is only .png files (or subdirectories)
  3. Execute
for PNG in $(find . -type f)
do
	convert "$PNG" "${PNG%.png}.xpm"
	convert "$PNG" -alpha export "${PNG%.png}.alpha.xpm"
	rm "$PNG"
done