Jump to content
  • entries
    657
  • comments
    2,692
  • views
    898,672

2X vector sprite tool


SpiceWare

1,510 views

The sprite tool for creating 2x sized sprites with HMOVE shifting is ready.
http://www.spiceware...ri/vector2x.php

 

To use it, enter a GIF image that's available online via URL
blogentry-3056-0-64961800-1336517253_thumb.png

 

Tell it which color is the background color, color numbers are in the top-right, and an image using those numbers is at the bottom. (Tip: click CHANGE COLORS if screen color conflicts with any sprite color) Pairs of pixels are grouped inside of braces {} to show how it'll convert 2 pixels in the image into as single pixel in the sprite. Some lines start with a half pixel 1} which is valid for shifting a 2x sprite left/right at 1 pixel resolution.
blogentry-3056-0-00384200-1336517262_thumb.png

 

And get the results (it spans more than 1 screen, so I just copied the text here).

ImageA:		.byte zz__XXXX__ ; 0		.byte zz__XXXX__ ; 1		.byte zz_XXXXXX_ ; 2		.byte zz_XXXXXX_ ; 3		.byte zz_XXXXXXX ; 4		.byte zzXXXXXXXX ; 5		.byte zzXXXXXXXX ; 6		.byte zzXXXXXXXX ; 7		.byte zzXXXXXXXX ; 8		.byte zzXXXXXXXX ; 9		.byte zzXXXXXXXX ; 10		.byte zzXXXXXXXX ; 11		.byte zzXXXXXXX_ ; 12		.byte zzXXXXXXX_ ; 13		.byte zzXXXXXXX_ ; 14		.byte zzXXXXXXX_ ; 15		.byte zzXXXXXXX_ ; 16		.byte zzXXXXXXX_ ; 17		.byte zzXXXXXXX_ ; 18		.byte zzXXXXXXX_ ; 19		.byte zz_XXXXXX_ ; 20		.byte zz_XXXXXX_ ; 21		.byte zz__XXXXX_ ; 22		.byte zz__XXXXX_ ; 23		.byte zz__XXXXX_ ; 24		.byte zz__XXXXX_ ; 25		.byte zz___XXX__ ; 26		.byte zz___XXX__ ; 27ImageAHeight = * - ImageAImageA_Vector:		.byte zz__XXXX__ ; 0 0		.byte zz__X__X__ ; 1 0		.byte zz_X____X_ ; 2 0		.byte zz_X____X_ ; 3 0		.byte zz_X_____X ; 4 0		.byte zzX______X ; 5 2		.byte zzX______X ; 6 4		.byte zzX______X ; 7 3		.byte zzX______X ; 8 2		.byte zzX______X ; 9 1		.byte zzX______X ; 10 0		.byte zzX______X ; 11 0		.byte zzX_____X_ ; 12 0		.byte zzX_____X_ ; 13 0		.byte zzX_____X_ ; 14 0		.byte zzX_____X_ ; 15 0		.byte zzX_____X_ ; 16 1		.byte zzX_____X_ ; 17 1		.byte zzX_____X_ ; 18 1		.byte zzX_____X_ ; 19 1		.byte zz_X____X_ ; 20 1		.byte zz_X____X_ ; 21 1		.byte zz__X___X_ ; 22 0		.byte zz__X___X_ ; 23 0		.byte zz__X___X_ ; 24 0		.byte zz__X___X_ ; 25 0		.byte zz___X_X__ ; 26 0		.byte zz___XXX__ ; 27 0ImageA_VectorHeight = * - ImageA_VectorShift_ImageA:		.byte HMOVE_0  |  0		.byte HMOVE_0  |  0		.byte HMOVE_0  |  0		.byte HMOVE_0  |  0		.byte HMOVE_0  |  0		.byte HMOVE_R2 |  2		.byte HMOVE_R2 |  4		.byte HMOVE_L1 |  3		.byte HMOVE_L1 |  2		.byte HMOVE_L1 |  1		.byte HMOVE_L1 |  0		.byte HMOVE_0  |  0		.byte HMOVE_0  |  0		.byte HMOVE_0  |  0		.byte HMOVE_0  |  0		.byte HMOVE_0  |  0		.byte HMOVE_R1 |  1		.byte HMOVE_0  |  1		.byte HMOVE_0  |  1		.byte HMOVE_0  |  1		.byte HMOVE_0  |  1		.byte HMOVE_0  |  1		.byte HMOVE_L1 |  0		.byte HMOVE_0  |  0		.byte HMOVE_0  |  0		.byte HMOVE_0  |  0		.byte HMOVE_0  |  0		.byte HMOVE_0  |  0

It also does some validation of the 2x pixels and will point out problems.
blogentry-3056-0-72675900-1336517268_thumb.png

 

I've company coming for this year's Art Car Parade (the blog entries from prior years) so I don't think there to be any more updates this week as I'll be busy cleaning house over the next few days.

0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...