Convert BMX files to SPRITE

For posting library code and examples.
Post Reply
User avatar
ahenry3068
Posts: 1082
Joined: Tue Apr 04, 2023 9:57 pm

Convert BMX files to SPRITE

Post by ahenry3068 »

The included example program is another BMX file viewer. But it runs in Hi-Res mode.

It will first load the BMX into VRAM and then "carve it up" into a series of Sprites.

These are first saved into seperate files then concatenated into a BMX.SPRITES file.

A BMX.SPRITES.PAL file is also created.

The image is then loaded and displayed and the individual temporary files and folder are deleted.

On subsequent runs if the same BMX file is chosen the BMX.SPRITES file is just loaded and displayed.

This program opens the BMX file everytime, BUT if the BMX.SPRITES file is available then the algorithm DOES NOT require the original BMX file.

This program works best for 240 (or less) color BMX file's created with my convertor: viewtopic.php?p=30702#p30702. It will work with any valid 8 bit BMX file but there is no other provision to preserve the user interface colors if such a BMX is loaded. BMX files created with my convertor will preserve the VERA text palette.


HERES THE CODE:
New version with optimized "GrabSprite" Machine Language Helper
SPRITEPROJ2.zip
(270.33 KiB) Downloaded 63 times

Old version using general purpose BASIC BITBLT routine
SPRITEPROJ.zip
(267.64 KiB) Downloaded 64 times

ANIMATED GIF (optimized version)
SPRITE.GIF
SPRITE.GIF (20.96 MiB) Viewed 1055 times
User avatar
ahenry3068
Posts: 1082
Joined: Tue Apr 04, 2023 9:57 pm

UPDATE: Convert BMX files to SPRITE

Post by ahenry3068 »

Program updated. See above post
Post Reply