Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: Camdenmil on January 17, 2012, 10:06:06 pm

Title: 4x4 sprites
Post by: Camdenmil on January 17, 2012, 10:06:06 pm
Does anyone have a fast/small way to draw 4x4 sprites?
Title: Re: 4x4 sprites
Post by: Yeong on January 17, 2012, 10:06:51 pm
What do you mean by that? Do you mean editing a sprite, or drawing them on the screen?
Title: Re: 4x4 sprites
Post by: saintrunner on January 17, 2012, 10:14:41 pm
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             
Title: Re: 4x4 sprites
Post by: leafy on January 17, 2012, 10:15:27 pm
I'm pretty sure he means drawing 4x4 sprites within a program (like displaying them).
Title: Re: 4x4 sprites
Post by: chattahippie on January 17, 2012, 10:22:14 pm
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
Title: Re: 4x4 sprites
Post by: Camdenmil on January 17, 2012, 10:52:42 pm
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.
Title: Re: 4x4 sprites
Post by: ZippyDee on January 17, 2012, 10:58:26 pm
Are you trying to draw them all aligned? That could change answers here...
Title: Re: 4x4 sprites
Post by: Juju on January 17, 2012, 11:02:11 pm
Yeah me too I usually go with Pt-On and 4x4 sprites in 8x8 sprites.
Title: Re: 4x4 sprites
Post by: Darl181 on January 18, 2012, 12:56:18 am
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.
Title: Re: 4x4 sprites
Post by: Quigibo on January 18, 2012, 03:17:17 pm
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.