Author Topic: Sprite Maker  (Read 14285 times)

0 Members and 1 Guest are viewing this topic.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Sprite Maker
« on: August 10, 2010, 09:34:49 pm »
So finally I am getting a version that I'm quite satisfied with. As far as I know this there are no known bugs so please inform me if any are found.

So this spriter is quite revolutionary, I think and have been told. Some of the features may run a bit slow but that is only due to the limitations of TI-BASIC. These programs, depending which one you use, will pad the side/s of the sprite to the nearest multiple of eight. This means that if you are making a 5*7 sprite and happen to use the one that pads both sides then it will give you a hexadecimal code for a 8*8 sprite, padding zeros on. If you use the one that only pads width then it will give the hexadecimal code for a 8*7 sprite.

Features for this program include:
-Any sprite size (well from 1*1 to 88*63 (padding width only) or 88*56 (padding both sides))
-Gray cursor.
-Cursor wrap around.
-Invert the sprite.
-Clear the sprite.
-Rotate the sprite 90º to right and left.
-Flip the sprite horizontally or vertically.
-Single row or column filling or deleting.
-Single row or column inverting.
-Supports sprites from one pixel in size to a size of fifty-six pixels.

Arrows - Move the cursor around.
[2ND] - Turns the current pixel on or off.
[MODE] - Rotates the sprite 90º to the left.
[DEL] - Rotates the sprite 90º to the right.
[X,T,Θ,n] - Flips the sprite horizontally.
[STAT] - Flips the sprite vertically.
[ALPHA] - Inverts the sprite.
[MATH] - Inverts the current column.
[X-1] - Inverts the current row.
[APPS] - Turns the whole row on.
[SIN] - Turns the whole row off.
[PRGM] - Turns the whole column on.
[COS] - Turns the whole column off.

They Sprite2Hex_PadBothSides.8xp stands at 877 bytes and Sprite2Hex_PadWidthOnly.8xp is 868 bytes. (Unfortunately with the new updates them made it bigger :()
« Last Edit: September 01, 2010, 03:59:00 am by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Sprite Maker
« Reply #1 on: August 11, 2010, 09:55:48 am »
cool
add in a few more tools (mebbe rotation/flipping and saving the previous sprite) and that could be rather useful, especially because it's pure basic so anyone can use it

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Sprite Maker
« Reply #2 on: August 11, 2010, 10:07:08 pm »
Ok, I added in rotation and flipping horizontally. Any other features before I release the next version?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Sprite Maker
« Reply #3 on: August 12, 2010, 06:05:29 pm »
Ok, here is the next release of my sprite maker. If anyone thinks of more features I will add them, or at least try to.

[2ND] - Turns a pixel on or off.
[ALPHA] - Inverts the sprite.
[MODE] - Rotates the sprite 90º (or π/2 radians :P)to the left.
[X,T,Θ,n] - Flips the sprite horizontally.
[CLEAR] - Clears the sprite.
[ENTER] - The "finish" button to get the hexadecimal code.

P.S. The only feature I can think of right now is making it so you can create multiple sprites in one go.
« Last Edit: August 12, 2010, 06:12:42 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Sprite Maker
« Reply #4 on: August 12, 2010, 07:04:12 pm »
Wow, looks great!

SirCmpwn

  • Guest
Re: Sprite Maker
« Reply #5 on: August 12, 2010, 07:07:07 pm »
If you are starved for features, how about 16x16 and vertical flipping?

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Sprite Maker
« Reply #6 on: August 12, 2010, 07:20:23 pm »
Wow, looks great!

Thanks :)

If you are starved for features, how about 16x16 and vertical flipping?

Ya, I've thought about doing 16*16. I haven't decided though for sure yet but I might just make it so you can make any size sprite you want from 4*1 to 62*94 sprites (if you really needed). I don't know how possible that is but I could probably figure something similar out.

I can add vertical flipping it just will add that much more code when you can make the sprite any direction between the flipping and rotating in it right now. But I can if people want it. Thanks.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Sprite Maker
« Reply #7 on: August 12, 2010, 07:23:14 pm »
What about grayscale? Is it written in axe or basic? I can't tell :P

SirCmpwn

  • Guest
Re: Sprite Maker
« Reply #8 on: August 12, 2010, 07:24:03 pm »
If you are going to support 62*94 sprites, you need a different calculator ;).  However, if you meant 94*62 sprites, you will probably want to turn off the axis.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Sprite Maker
« Reply #9 on: August 12, 2010, 07:35:06 pm »
What about grayscale? Is it written in axe or basic? I can't tell :P

It's pure 100% TI-BASIC. Look at the sub-forum ;)

If you are going to support 62*94 sprites, you need a different calculator ;).  However, if you meant 94*62 sprites, you will probably want to turn off the axis.

Psh...details, details :P And ya I know. The axes are just always off on my calculator so I didn't think about turning it off.

I'm thinking I will make a plan with features tonight or something and then rewrite it all or something. I just would like to know what all I'm implementing before I do that. So, I would like to invite you all still to make suggestions :)

Features as of now:
-Rotation in both directions.
-Flip horizontally and vertically.
-Invert the sprite.
-Clear the sprite.

Possible features:
-Multiple sprite support.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

SirCmpwn

  • Guest
Re: Sprite Maker
« Reply #10 on: August 12, 2010, 07:37:36 pm »
The axes are just always off on my calculator so I didn't think about turning it off.
That's exactly the opposite of my calculator :P mine are almost always off.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Sprite Maker
« Reply #11 on: August 12, 2010, 07:38:49 pm »
The axes are just always off on my calculator so I didn't think about turning it off.
That's exactly the opposite of my calculator :P mine are almost always off.

Isn't that what I said I about mine? ??? Or did you mean on?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

SirCmpwn

  • Guest
Re: Sprite Maker
« Reply #12 on: August 12, 2010, 07:39:21 pm »
Oh, my mistake x.x

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Sprite Maker
« Reply #13 on: August 12, 2010, 07:49:45 pm »
Yeah. Who needs axes? Heck, when i graph stuff at school i never turn the axes back on, since I end up needing trace for anything that I can't solve in my head.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Sprite Maker
« Reply #14 on: August 16, 2010, 10:16:25 am »
Looks nice.  How about using this code:
If K=45
Text(-1,0,0,"  // 2 spaces

Regardless, nice job! :)