How to make sprites without the use of HEXPIC

Submitted By: pimathbrainiac Date: December 07, 2012, 04:22:33 pm Views: 361
Summary: HEXPIC is a BASIC sprite editing prog that comes with AXE parser... but what if your Calc RAM clears, HEXPIC is gone, and you can't link to your computer? This Tutorial will help!

HEXPIC is a BASIC sprite editing prog that comes with AXE parser... but what if your Calc RAM clears, HEXPIC is gone, and you can't link to your computer? This Tutorial will help!

To do this... I suggest you draw your sprite on an 8x8 grid

Each Hex value (nibble) represents four pixels in a horizontal line, so [val1 val2 val3...] translates to

val1 val2
val3 val4
val5 val6
val7 val8
val9 val10
val11 val12
val13 val14
val15 val16

Each pixel is a binary value (1 for true or 0 for false)

example sprite:

1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1

1 1 0 1 1 0 1 1

1 1 1 1 1 1 1 1

1 0 1 1 1 1 0 1

1 1 0 0 0 0 1 1

1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1

Each group of 4 binary values is one binary number that can be used

example: (grouped by parentheses)

(1 1 1 1) (1 1 1 1)

(1 1 1 1) (1 1 1 1)

(1 1 0 1) (1 0 1 1)

(1 1 1 1) (1 1 1 1)

(1 0 1 1) (1 1 0 1)

(1 1 0 0) (0 0 1 1)

(1 1 1 1) (1 1 1 1)

(1 1 1 1) (1 1 1 1)

convert these values to hex as [val1 val2 val3...] is equal to

val1 val2
val3 val4
val5 val6
val7 val8
val9 val10
val11 val12
val13 val14
val15 val16

So the example sprite becomes

F F
F F
D B
F F
B D
C 3
F F
F F

aka [FFFFDBFFBDC3FFFF]

Try it! (Try putting your sprites on an 8x8 grid, drawn out, before conversion.

Have Fun!  ;D

Rating: This article has not been rated yet.

Comments



Powered By SMF Articles by CreateAForum.com