Omnimaga

General Discussion => Art => Topic started by: _player1537 on August 29, 2010, 12:07:27 pm

Title: Ship Sprite
Post by: _player1537 on August 29, 2010, 12:07:27 pm
Can one of the awesome spriters here make a sprite for a space ship?  The specs are:
24x24
16 level greyscale
Pointing upwards

And if its not too much trouble (in other words, if someone can get BMPtoC.exe to work), could someone post the C code for it?
Title: Re: Ship Sprite
Post by: SirCmpwn on August 29, 2010, 01:43:34 pm
Thought I'd try my hand at spriting for once :)
I'm afraid I don't know anything about BMPtoC, though.
So here you go:
Title: Re: Ship Sprite
Post by: _player1537 on August 29, 2010, 01:59:08 pm
Wow, that looks really really nice :D  BMPtoC is something that either bwang or apcalc use to create their sprites, it takes the .bmp and turns into code like:
15,15,15,00,10,4,
2,6,8,12,<etc>
Title: Re: Ship Sprite
Post by: Magic Banana on August 29, 2010, 02:08:10 pm
Had a little bit of free time.

Ah, back to work now.  :P

Nah, it's not from Raiden X, although most shoot em ups use similar styled ships.
Title: Re: Ship Sprite
Post by: Raylin on August 29, 2010, 02:30:54 pm
RAIDEN X!?!

EDIT: 800th post!
Title: Re: Ship Sprite
Post by: _player1537 on August 29, 2010, 02:32:49 pm
RAIDEN X!?!

EDIT: 800th post!

raiden??
Title: Re: Ship Sprite
Post by: fb39ca4 on August 29, 2010, 04:32:56 pm
Here's both the ships in C code:
Title: Re: Ship Sprite
Post by: apcalc on August 29, 2010, 04:39:01 pm
You can get "BMPtoC.exe" in the Nspire picture viewer on TI Bank:

http://ti.bank.free.fr/index.php?mod=archives&ac=voir&id=1630

Open the command prompt, cd to the folder that contains BMPtoC.exe, and type "BMPtoC.exe".

The instructions are in french.  For the first input, enter the name of the image with the file extension.  For the second, enter the name of the file you want the converted code to appear in.

As calc84 said yesterday in the IRC, sprites defined using this tool take up a LOT of memory.  Right now, I am working on a little tool that will convert sprites to hex code, making the arrays half the size.  This should save a bit of memory.  I can't give a time when I will have this tool done because school starts for me tomorrow and I am expecting to be killed with work.  It shouldn't take too long to write, so hopefully I will be done soon!
Title: Re: Ship Sprite
Post by: _player1537 on August 29, 2010, 11:32:45 pm
If it wouldn't be too much hastle, could I get one more sprite?  Same dimensions, just facing downwards.  This will be for the enemy ship sprite, so it would be nice if it looked more like an enemy :D
Title: Re: Ship Sprite
Post by: DJ Omnimaga on August 30, 2010, 12:11:57 am
I like those two sprites, especially the 2nd one. Nice job. Also good luck Apcalc. How much mem does the sprites take now, btw?
Title: Re: Ship Sprite
Post by: Builderboy on August 30, 2010, 12:39:54 am
Epic Ship Magic Banana!! That looks totally epic :)
Title: Re: Ship Sprite
Post by: KermMartian on August 30, 2010, 12:43:54 am
You can get "BMPtoC.exe" in the Nspire picture viewer on TI Bank:

http://ti.bank.free.fr/index.php?mod=archives&ac=voir&id=1630

Open the command prompt, cd to the folder that contains BMPtoC.exe, and type "BMPtoC.exe".

The instructions are in french.  For the first input, enter the name of the image with the file extension.  For the second, enter the name of the file you want the converted code to appear in.

As calc84 said yesterday in the IRC, sprites defined using this tool take up a LOT of memory.  Right now, I am working on a little tool that will convert sprites to hex code, making the arrays half the size.  This should save a bit of memory.  I can't give a time when I will have this tool done because school starts for me tomorrow and I am expecting to be killed with work.  It shouldn't take too long to write, so hopefully I will be done soon!
Just so you know, SourceCoder can generate nibble-packed 16-level gray arrays suitable for use in Nspire C programs now.
Title: Re: Ship Sprite
Post by: Magic Banana on September 07, 2010, 02:17:42 pm
If it wouldn't be too much hastle, could I get one more sprite?  Same dimensions, just facing downwards.  This will be for the enemy ship sprite, so it would be nice if it looked more like an enemy :D
Hey, I hope I'm not too late.  ;)  I've got some free time today so I figured I'd do a little spriting.
Title: Re: Ship Sprite
Post by: DJ Omnimaga on September 07, 2010, 02:18:20 pm
Nice to see you still around Magic Banana. I hope you are not overhelmed with school work for too long anymore x.x

Nice sprite btw, although I wonder if it wouldn't be a bit too dark if Player decides to go with a dark background?
Title: Re: Ship Sprite
Post by: apcalc on September 07, 2010, 03:48:56 pm
Another thing you have to remember is that the difference between the 16 shades of grayscale is not very smooth on calc, and the two darkest shades (0 and 1) are the same on the calculator.  When you look at all colors at the same time on the hardware, it looks very different than the smooth transition between all the shades you can see in the emulator.
Title: Re: Ship Sprite
Post by: bwang on September 07, 2010, 05:05:39 pm
If you stare at my bmpviewer source code long enough, you can probably figure out how to use it to directly load bitmaps.
I'm afraid it's a bit messy, though :(
Title: Re: Ship Sprite
Post by: meishe91 on September 07, 2010, 05:29:04 pm
That looks very sweet Magic Banana!