Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: tifreak on July 03, 2006, 04:39:00 am

Title: Sprite 2 hex
Post by: tifreak on July 03, 2006, 04:39:00 am
Well, I decided to make up a Sprite 2 Hex program, that would allow a programmer to easily make sprites for the Hex 2 Sprite system.

This program will allow a person to make 8x8, 16x16, and 32x32 sprites within a defined area. Once the person presses ENTER, then the calc will convert the entire pic into binary, and then finish it off with hex.

I am guessing this program to be less than 2000 bytes, hopefully around 1000 being the max, but we shall see.


First things first, update for AODR and Hex2Sprite is underway... :)smile.gif
Title: Sprite 2 hex
Post by: Dragon__lance on July 03, 2006, 05:09:00 am
sweet! can't wait to try it out! :)smile.gif
Title: Sprite 2 hex
Post by: kalan_vod on July 03, 2006, 08:02:00 pm
It is possible to make such a useful utility, as you have done with the hex to sprite program. What I would do is make options for the user to select the part of the image they want to convert to hex, like a mapmaker but where you can select 8x8, 16x16, 8x16 etc. up to the whole image. I would then take that part of the picture and do the usual and have a for loop with the conditions for the area being stored to hex. In the loop I would simply do, str1 + pixel-test(X,Y->str1 . In such a way I would then go through the string and convert into hex.

Sorry if you have thought of this already, but I just thought I would give my two cents. Also if you wanted to you could convert straight to hex on the go, but I would suspect that being slower.
Title: Sprite 2 hex
Post by: Speler on July 04, 2006, 04:39:00 am
QUOTE
str1 + pixel-test(X,Y->str1

That doesn't work.  How about:  str1+sub("01",pxl-Test(X,Y),1->str1.  That should work.  You would put it in two for( loops X and Y (I recomend using different variables in it's place though since this program is run using graph screen).  Good luck on this, it could be very useful.
Title: Sprite 2 hex
Post by: kalan_vod on July 04, 2006, 04:50:00 am
QuoteBegin-Super Speler+Jul 4 2006, 10:39 AM-->
QUOTE (Super Speler @ Jul 4 2006, 10:39 AM)
QUOTE
str1 + pixel-test(X,Y->str1

That doesn't work.  How about:  str1+sub("01",pxl-Test(X,Y),1->str1.  That should work.  You would put it in two for( loops X and Y (I recomend using different variables in it's place though since this program is run using graph screen).  Good luck on this, it could be very useful.  

 Yeah I figured it would not work, as I was typing this after getting home from work at a late time. Thanks for the correction.
Title: Sprite 2 hex
Post by: tifreak on July 04, 2006, 11:47:00 am
Things are moving along with it, I have to simply set up the drawing part, and the conversion, and it will be done.
Title: Sprite 2 hex
Post by: Dragon__lance on July 05, 2006, 02:59:00 pm
cool! can't wait to try it out! :)smile.gif
Title: Sprite 2 hex
Post by: tifreak on July 05, 2006, 03:14:00 pm
So very close now, I had seperated the parts of the program, to make it easier to edit (cause I am impatient, scrolling through 1000 bytes worth of code) and now as far as I can tell, there are only two things left:

-Make it draw sprites in Str4
-Integrate test prog into actual prog.

And of course, test the program. :)smile.gif


Edit: Here be the prog, with all its loving bugs... <_<dry.gif

http://www.tifreakware.calcgames.org/tifreak8x/SPR2HEX.8xp

I am optimizing it as it goes.
Title: Sprite 2 hex
Post by: tifreak on July 07, 2006, 11:06:00 am
http://www.tifreakware.calcgames.org/tifreak8x/SPR2HEX.8xp

This is the (hopefully) bug free version. Please let me know what you think, and if you run across any bugs. :)smile.gif

Keys:

2nd: Select/Pixel on
Alpha: pixel off
d-pad: move cursors
Title: Sprite 2 hex
Post by: elfprince13 on July 07, 2006, 12:14:00 pm
I will test this tonight as soon as I stop feeling nauseous/
Title: Sprite 2 hex
Post by: DJ Omnimaga on July 07, 2006, 02:05:00 pm
@tifreak8x I saw the screenies and it looked very cool!

@elfprince I hope you feel better soon :(sad.gif
Title: Sprite 2 hex
Post by: tifreak on July 09, 2006, 04:15:00 pm
http://www.calcgames.org/cgi-bin/files/files.cgi?ID=1172

It has been released on calcgames thus far. We shall see how long it takes them to get it up on ticalc.org...
Title: Sprite 2 hex
Post by: DJ Omnimaga on July 10, 2006, 12:33:00 pm
next year, hopefully.

Hopefully I'll get some time to upload it on Omnimaga *pokes tifreak8x or tenniskid to do it*
Title: Sprite 2 hex
Post by: tifreak on July 11, 2006, 01:18:00 am
hehe, I would upload it here, I just dont have any ftp clients yet. >.<

And I still need to upload it to my site... I dont think I ever put hex2sprite online on my site O_Oshocked2.gif
Title: Sprite 2 hex
Post by: DJ Omnimaga on July 11, 2006, 01:21:00 am
lol

for ftp get filezilla its the only one that can access unitedti hosting spaces, also remember the files goes in public_html
Title: Sprite 2 hex
Post by: Liazon on July 11, 2006, 02:37:00 am
I wish this could solve me current problem.  Formatting greyscale 48x48 sprites.  Glad it's done though! :thumb:thumb.gif
Title: Sprite 2 hex
Post by: DJ Omnimaga on July 11, 2006, 02:37:00 am
what's asm/c format for hex sprites?