Omnimaga
Calculator Community => TI Calculators => Axe => Topic started by: Camdenmil on January 17, 2012, 10:06:06 pm
-
Does anyone have a fast/small way to draw 4x4 sprites?
-
What do you mean by that? Do you mean editing a sprite, or drawing them on the screen?
-
use the sprite editor that comes with the axe parser package, and only draw in the top right corner your 4x4 picture, then convert to hex code and recall into your program
-
I'm pretty sure he means drawing 4x4 sprites within a program (like displaying them).
-
You could use Rect, RectI, and the Pxl commands,
but I think just using Pt-On with sprites similar to [F0F0F0F000000000] would be your best option
-
Is there any faster way than drawing them with the pt commands? While I'm asking, what about other sizes like 5x5? I've tried drawing using nibs and by having the program make 8x8 sprites by multiplying [first 4 bits] * 16 + [last 4 bits] but those method's haven't been performing well and they don't work for sizes other than 4x4.
-
Are you trying to draw them all aligned? That could change answers here...
-
Yeah me too I usually go with Pt-On and 4x4 sprites in 8x8 sprites.
-
Yeah, there aren't any specialized 4*4 sprite commands. Normally I use Pt-Etc and have the right and bottom halves empty. You end up wasting 6 bytes for every sprite :/ but I'm not aware of another way.
-
If the 4x4 sprites are aligned to the grid (always drawn at points where the x and y are multiples of 4), you can write a decently fast displayer in pure Axe.