Author Topic: Sprite 2 hex  (Read 3639 times)

0 Members and 1 Guest are viewing this topic.

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Sprite 2 hex
« 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
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Dragon__lance

  • Guest
Sprite 2 hex
« Reply #1 on: July 03, 2006, 05:09:00 am »
sweet! can't wait to try it out! :)smile.gif

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
Sprite 2 hex
« Reply #2 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.

Offline Speler

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 857
  • Rating: +6/-2
    • View Profile
Sprite 2 hex
« Reply #3 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.

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
Sprite 2 hex
« Reply #4 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.

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Sprite 2 hex
« Reply #5 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.
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Dragon__lance

  • Guest
Sprite 2 hex
« Reply #6 on: July 05, 2006, 02:59:00 pm »
cool! can't wait to try it out! :)smile.gif

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Sprite 2 hex
« Reply #7 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.
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Sprite 2 hex
« Reply #8 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
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

elfprince13

  • Guest
Sprite 2 hex
« Reply #9 on: July 07, 2006, 12:14:00 pm »
I will test this tonight as soon as I stop feeling nauseous/

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Sprite 2 hex
« Reply #10 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Sprite 2 hex
« Reply #11 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...
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Sprite 2 hex
« Reply #12 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*
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Sprite 2 hex
« Reply #13 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
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Sprite 2 hex
« Reply #14 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)