Omnimaga

Calculator Community => TI Calculators => General Calculator Help => Topic started by: Matrefeytontias on March 23, 2012, 04:05:23 am

Title: Jetpack 8x+ background request
Post by: Matrefeytontias on March 23, 2012, 04:05:23 am
Hi guys !

I'm searching for someone who can convert a whole 96*64 image into 3 or 4 grayscales. I know that's huge, but I don't know if it's possible :-X

Here is the image (it's from Jetpack Joyride) :
(https://encrypted-tbn2.google.com/images?q=tbn:ANd9GcQR5C_Ysk15k50gFSOkEal6BWaOrumi8Pv95Aoaywnf8J1ioiL71w)

I just want the background, not all the sprites. If anyone can do this, just post the image in grayscales, I'll hand-convert it later ;)

Thanks in advance :thumbsup:
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: aeTIos on March 23, 2012, 09:04:35 am
This should go in Pixel Art and Drawing (http://www.omnimaga.org/index.php?board=8.0)
Anyways I could give it a try, if you like it then please credit me.

edit Also I just noticed the super weird topic title O.o
edit2: this made me lose the game
edit3: added a "2" for edit2
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: saintrunner on March 23, 2012, 01:28:17 pm
I don't do conversions but I do make hand drawn things....... so here is my attempt, You like? Will this work?
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: kindermoumoute on March 23, 2012, 01:32:03 pm
That's looks nice ! Matrefeytontias, I think you will need to use tiles ?
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: saintrunner on March 23, 2012, 01:37:02 pm
That's looks nice ! Matrefeytontias, I think you will need to use tiles ?
I agree....but my above sprite should be easy to divide up
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: Matrefeytontias on March 23, 2012, 01:49:36 pm
I want to use it in a different way : scroll the whole picture (saintrunner, that's awesome :thumbsup: ) using Copy(Pic+offset,L6,offset

So I think I have better to don't use tiles
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: saintrunner on March 23, 2012, 01:51:01 pm
Glad you like it :) did that in like 5 minutes though! and it feels good to be taking a break from minecraft and getting back to calc stuff :)
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: aeTIos on March 23, 2012, 01:53:22 pm
Wow saintrunner epic stuffzorz O.O
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: saintrunner on March 23, 2012, 01:54:22 pm
Wow saintrunner epic stuffzorz O.O

I know O.o it surprised me too.....it's been so long lol I forgot how good it felt to design sprites and art in general!
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: stevon8ter on March 23, 2012, 02:05:49 pm
Wow, its just an epic drawing :)

To bad I'm so bad at pixeldrawing
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: saintrunner on March 23, 2012, 02:07:00 pm
I think I did some better stuff in my thread (check my sig) but back on subject: I CAN'T WAIT FOR THIS GAME :) sounds awesome!!!
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: Matrefeytontias on March 23, 2012, 02:11:19 pm
You can have a screen here (I just start developing it three days ago ;D ) :
(http://mattias.refeyton.fr/espace-ti/jetpack/3.gif)
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: Scipi on March 23, 2012, 02:35:00 pm
That looks nice!

Kinda reminds me of Mario a bit with Bullet Bill :P
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: Nick on March 23, 2012, 03:17:21 pm
wOw great! maybe you could have some slightly vertical scrolling, because now you're at the top really fast, or decrease the size of the sprites. but that's just my opinion :)

bon, anyway, this is amazing. i like the exhaust :) maybe the rainbow and other could come too :) (yes i know that game xp )

edit: maybe you could change the topic title by now, since the game is developping :) or change thread of course..
Title: Re: Is everyone who can sprite me a 96*64 image ?
Post by: Matrefeytontias on March 23, 2012, 03:25:50 pm
Yeah, you're right, I change the title :)
Title: Re: Jetpack 8x+ background request
Post by: aeTIos on March 23, 2012, 03:31:04 pm
You'd better make the sprite a little smaller.
Title: Re: Jetpack 8x+ background request
Post by: DJ Omnimaga on March 23, 2012, 04:31:27 pm
This looks nice guys :D
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on March 23, 2012, 04:45:38 pm
In the real game, the enemies are 1.5 times bigger than mine, so it might be easily playable :)
Title: Re: Jetpack 8x+ background request
Post by: Nick on March 23, 2012, 05:42:52 pm
could be, but your screen is about 8 times smaller :)

it really is too big i think, since the field is only like 3 guys high...

but ok, if you don't want to change it, it stays an extremely nice game :)
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on March 24, 2012, 04:33:52 am
Sorry, but the field is like 5 guys high : my chara is high of only 12 pxls :)

EDIT : I saw a problem in your sprite, saintrunner : still my screen is little, the ground where the chara runs might be at the real bottom of the screen, can you change it ? Else I'll use it as it is.

EDIT 2 : I finished convert all in hexa (saintrunner, I'll hate you for that >:D ), and here is the result :
(http://mattias.refeyton.fr/espace-ti/jetpack/background.gif)

As you can see, that's awesome ! :thumbsup:

EDIT 3 : I paste the ground and the bottom of the screen :
(http://mattias.refeyton.fr/espace-ti/jetpack/backgroundFinal.gif)

I think I can fill the blank on the top of the screen by inserting 25% gray between the bottom and the top of the image.
Title: Re: Jetpack 8x+ background request
Post by: aeTIos on March 24, 2012, 09:12:14 am
You really should make your guy smaller.
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on March 25, 2012, 05:00:34 am
I have some scrolling issues : I want to scroll my pic but I don't really know how to do that. The bitmap() functions is really too slow, and I think of use Horizontal -(BUF) then Copy(BUF), but I don't know how to reblit the same pic at the right of the first (to scroll).

Right now, I have this :
Code: [Select]
:prgmJTPKBG
:Buff(768)->A
:Buff(768)->B
:Copy(Pic1BG,A
:Copy(Pic1BKG,B
:
:Repeat getkey(15)
:Horizontal -(A
:Horizontal -(B
:
:Copy(A
:Copy(B,L3
:DispGraphrr
:End

It works, but only scrolls the pic once. How can I blit the second pic at the right of this ?
Title: Re: Jetpack 8x+ background request
Post by: kindermoumoute on March 25, 2012, 05:55:53 am
You're trying to make a pixelmapping (http://ourl.ca/15124/283447), good luck on that. :P

PS : you don't need thoses buffers. :o
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on March 25, 2012, 07:11:41 am
Actually that's ok, I found 2 hours ago ;D

Yes, I need these buffers because I clear both buffers each cycle, so I use them to keep the pic displayed somewhere (in order to apply Horizontal - on it)

EDIT : Here is what I reach :
(http://mattias.refeyton.fr/espace-ti/jetpack/scroll.gif)

That's not really pixelmapping, though
Title: Re: Jetpack 8x+ background request
Post by: kindermoumoute on March 25, 2012, 01:16:28 pm
So if you use a 1536 bytes buffers, please use it outside the game. Eg. in an appvar that can be deleted at the end of the program. ;)
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on March 25, 2012, 01:20:38 pm
Yeah, but I just saw something : in game, it's slooooooooow <_<

Now, I have this (bit checking) :
Code: [Select]
:.X2t is the buffer 1, Y2t the buffer 2
:.There are 8 empty pixels at the top of the image
:
:DS<(C,2)
:For(r1,7,63)
: {r1*12+X2t}e0→{r1+L2
: {r1*12+Y2t}e0→{r1+L2+64
:End
:
:Horizontal -(X2t
:Horizontal -(Y2t
:
:For(r1,7,63
: {r1+L2} or {r1*12+11+X2t→r2}→{r2
: {r1+L2+64} or {r1*12+11+Y2t→r2}→{r2
:End
:End
:
:Copy(X2t
:Copy(Y2t,L3
That leave the game at an normal speed, but now that's the background which is too slow :banghead: how can I have fast speed and fast scrolling ?
Title: Re: Jetpack 8x+ background request
Post by: Darl181 on March 25, 2012, 04:06:58 pm
I'm not exactly sure how you're doing it, but the way I'm doing the scrolling backgrounds in Essence is I horizontal +/- the buffer, then look through a stored image and copy a column to the screen.
However in your case you might be able to get away with not having a stored copy because it's the same size as the screen.

I'm assuming you can only scroll to the left...
Maybe try this: First check the part of the buffer that's about to be scrolled off the screen.
So if it's scrolling leftthen you'd check the leftmost bit in each row ( {[row#]*12}e0 ), and store the results somewhere.
Horizontal - as needed
Then go back through the bits you checked earlier and effectively copy the column that was scrolled off the screen (on the left) to the other side of the screen (the right), giving the impression of scrolling :) ( this should be possible by working down what you stored earlier and doing pxl-on to the buffer)
Title: Re: Jetpack 8x+ background request
Post by: kindermoumoute on March 25, 2012, 04:10:03 pm
He wants probably update screen to display rockets and jetpack every loop.
Title: Re: Jetpack 8x+ background request
Post by: Darl181 on March 25, 2012, 04:12:50 pm
Then he'll probably a stored copy...which he could modify on-the-fly to scroll.
Maybe when he goes to Clrdraw, he could just copy the background to the screen because that writes over whatever's on the buffer in the process ;D
Title: Re: Jetpack 8x+ background request
Post by: DJ Omnimaga on March 25, 2012, 06:22:34 pm
Actually that's ok, I found 2 hours ago ;D

Yes, I need these buffers because I clear both buffers each cycle, so I use them to keep the pic displayed somewhere (in order to apply Horizontal - on it)

EDIT : Here is what I reach :
(http://mattias.refeyton.fr/espace-ti/jetpack/scroll.gif)

That's not really pixelmapping, though
That looks awesome. I'm curious how this will look like :)
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on March 26, 2012, 11:11:29 am
@Darl181 : that's exactly what I did O.O
I just implemented the scrolling in the game and reduce the size of the sprite ( ;D ), and effectively, it's still a bit fast

EDIT : eye candy (it's not that bad on a real calc ;D ) :
(http://mattias.refeyton.fr/espace-ti/jetpack/4.gif)
Title: Re: Jetpack 8x+ background request
Post by: Nick on March 26, 2012, 12:11:17 pm
that's excellent to see, but i hope that the sprites and the background are better distinguishable..

and i think the size of the sprites is perfect now, you have a better moving area, and it seems more natural with the environment being quite big.
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on March 26, 2012, 12:14:21 pm
Yeah, that's a bit confused, especially with the missile sprite, but I will use Pt-Mask instead of Pt-On in order to have solid white :thumbsup: and as I said, that's better on a real calc.
Title: Re: Jetpack 8x+ background request
Post by: shmibs on March 26, 2012, 12:19:51 pm
you should draw something in up at the top of the screen. right now, when you're starting, it's drawing left over data from whatever was in L1/6 before you started, and to make the sprites better distinguishable you could add white outlines. is this game going to have any more enemies? oh, and you should make the background larger so the two sections of wall are the same size and are seamless.
and it does look pretty good =)
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on March 26, 2012, 12:24:33 pm
Still I have one big image written in hexa (768 bytes hand-wrote >_<) I prefer keep this ;D

Yes of course, there will be 3 enemies : missiles, lasers and zappers, sort of electric bows you'll have to avoid.

And yes, I'll add some 25% grey in the image in order to fill the whole screen.
Title: Re: Jetpack 8x+ background request
Post by: shmibs on March 26, 2012, 01:58:32 pm
you don't need to hand-write it. sourcecoder (http://www.cemetech.net/projects/basicelite/sourcecoder2.php) does a fine job of converting to hex, and then you can paste that into the online editor, export it as a program, send it to your calculator, and recall it to whatever program you like =)

EDIT:
a palette swap, like this, would also help to make your sprites more visible.
Title: Re: Jetpack 8x+ background request
Post by: DJ Omnimaga on March 26, 2012, 03:06:51 pm
Does SourceCoder support grayscale? Otherwise I guess first you would need to separate both layers (have one pic with only black and light gray and the other pic with only black and dark gray). Basically get rid of the dark gray and change light to black in the first, and get rid of light gray and change dark to black in the second (photofiltre lets you do that easily, but I don't know if Gimp and Paint.net have that feature). Save both pics separately then convert to hex.

Also this looks great Matrefeytontias. :D You might want to refresh the grayscale multiple times per frame though so it doesn't look too flickery.
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on March 26, 2012, 03:34:50 pm
I can't refresh several times per frame (with DispGraphrr, right ?), it speeds down too much the whole program :-/

EDIT : what's the ? O.O sourcecoder throws me an error (template file or something) when I load your image, shmibs
Title: Re: Jetpack 8x+ background request
Post by: DJ Omnimaga on March 26, 2012, 06:22:58 pm
Ah ok, sorry to hear. :(

And does the SourceCoder site gives you the error or something? Maybe Kerm messed something up. But it could also be that SourceCoder only supports monochrome (non-grayscale) images.
Title: Re: Jetpack 8x+ background request
Post by: Darl181 on March 26, 2012, 08:16:51 pm
It's working for me, and always has in the past 0.o
For the image shmibs posted, it put this out:
Spoiler For big:
PART_1:
000000000000000000000000
000000000000000000000000
000000000000000000000000
000000000000000000000000
000000000000000000000000
000000000000000000000000
FFFFFFFFFFFFFFFFFFFFFFFF
210842108421084210842108
210842108421084210842108
210842108421084210842108
FFFFFFFFFFFFFFFFFFFFFFFF
080000400000400000800002
FFFFFFFFFFFFFFFFFFFFFFFF
000000000000000000000000
000000000000000000000000
000000000000000000000000
000000000000000000000000
FFFFFFFFFFFFFFFFFFFFFFFF
000000000000000000000000
000000000000000000000000
E00FFFFFFFFFFFFFF803FFFF
101008000002000104044000
082008000002000102084000
04400807E002800501104000
0440083FFC02000101104000
044008200401FFFE01104000
0440083FFC02000101104000
044008200402800541104000
0440083FFC02000101104000
0440082004020000FF104000
0440083FFC02000101104000
044008200402000141104000
1440083FFC02000101104000
04400807E002000101104000
FC4008000002000101104000
044028000002000101104000
144008000002000101104000
047FF0000002000101104000
044008000002000101104000
044028000002000101104000
044008000002000101114000
044008000002000101104000
04400A00000A0001011F8000
044008000002000101104000
044007FFFFFC000101114000
044008000002800501105000
04400A00000A000101104000
044008000001FFFE01103FFF
044008000002000101104000
044008000002800501105000
044008000002000101104000
044008000002000101104000
044008000002000101104000
082008000002000102084000
101008000002000104044000
E00FFFFFFFFFFFFFF803FFFF
000000000000000000000000
000000000000000000000000
FFFFFFFFFFFFFFFFFFFFFFFF
800004000004000008000020
400002000002000004000010
200001000001000002000008
100000800000800001000004
FFFFFFFFFFFFFFFFFFFFFFFF

PART_2:
000000000000000000000000
000000000000000000000000
000000000000000000000000
000000000000000000000000
000000000000000000000000
000000000000000000000000
FFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF
080000400000400000800002
FFFFFFFFFFFFFFFFFFFFFFFF
000000000000000000000000
000000000000000000000000
000000000000000000000000
000000000000000000000000
FFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF
1FF008000002000107FC4000
0FE008000002000103F84000
07C00807E002800501F04000
07C0083FFC02000101F04000
07C008200401FFFE01F04000
07C0083FFC02000101F04000
07C008200402800541F04000
07C0083FFC02000101F04000
07C0082004020000FFF04000
07C0083FFC02000101F04000
07C008200402000141F04000
17C0083FFC02000101F04000
07C00807E002000101F04000
FFC008000002000101F04000
07C028000002000101F04000
17C008000002000101F04000
07FFF0000002000101F04000
07C008000002000101F04000
07C028000002000101F04000
07C008000002000101F14000
07C008000002000101F04000
07C00A00000A000101FF8000
07C008000002000101F04000
07C007FFFFFC000101F14000
07C008000002800501F05000
07C00A00000A000101F04000
07C008000001FFFE01F03FFF
07C008000002000101F04000
07C008000002800501F05000
07C008000002000101F04000
07C008000002000101F04000
07C008000002000101F04000
0FE008000002000103F84000
1FF008000002000107FC4000
FFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF
800004000004000008000020
400002000002000004000010
200001000001000002000008
100000800000800001000004
FFFFFFFFFFFFFFFFFFFFFFFF
Unfortunately you have to go in yourself and put brackets around it yourself..
Title: Re: Jetpack 8x+ background request
Post by: DJ Omnimaga on March 26, 2012, 10:12:23 pm
Maybe SourceCoder got cross-browser compatibility issues or Surpasshosting was overloaded?
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on March 27, 2012, 01:08:29 am
With the new image (thanks shmibs :thumbsup: ) :
(http://mattias.refeyton.fr/espace-ti/jetpack/5.gif)
Title: Re: Jetpack 8x+ background request
Post by: shmibs on March 27, 2012, 03:56:34 am
oh, i didn't think you were actually going to use that. it was just a quick suggestion. here are a couple of versions that actually loop properly, so there's no edge. making it 3 level grey would probably be a better idea, because it would flicker less ad things would be easier to see.
Title: Re: Jetpack 8x+ background request
Post by: DJ Omnimaga on March 27, 2012, 04:12:41 am
Actually I like the second animated screenshot better, since it looks less flickery. 3 LV gray might be a better idea if you go with that one, though.
Title: Re: Jetpack 8x+ background request
Post by: aeTIos on March 27, 2012, 05:56:41 am
What happened to the top of the pictures? O.O
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on March 27, 2012, 11:04:10 am
I changed DispGraphrr to DispGraphr, no other changes :
(http://mattias.refeyton.fr/espace-ti/jetpack/6.gif)
You're right, that's really better like that :thumbsup:
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on April 04, 2012, 07:09:41 am
Up !

I had a great progress ! Just see ;D :
(http://mattias.refeyton.fr/espace-ti/jetpack/7.gif)

Now all the things I already had are working perfectly, and there aren't no bug at all :thumbsup:
Title: Re: Jetpack 8x+ background request
Post by: Nick on April 04, 2012, 07:29:31 am
wow, nice :) it really looks great!

can you walk on the upper "bar" of that new obstacle? cause i've seen it walking on it it seemed.. it's really amazing
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on April 04, 2012, 08:24:09 am
Of course you can't, still it's electrized (nor in the real game, as I remember)
Title: Re: Jetpack 8x+ background request
Post by: DJ Omnimaga on April 04, 2012, 01:55:33 pm
Looks really great. I like the enemies and projectiles. That will make a great arcade-style game :)
Title: Re: Jetpack 8x+ background request
Post by: Yeong on April 05, 2012, 08:43:08 pm
I really love the sprite! :D
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on April 11, 2012, 11:21:08 am
Lasers added : I think it's quite playable now, but I have to add scores, title screen and transition. Also, I have collision bugs with the lasers :
(http://mattias.refeyton.fr/espace-ti/jetpack/8.gif)
Title: Re: Jetpack 8x+ background request
Post by: aeTIos on April 11, 2012, 11:36:35 am
Is it that blurry oncalc too? D:
(dont get me wrong: it looks epic!!)
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on April 11, 2012, 11:50:17 am
No, of course it looks better on a real calc ;)
Title: Re: Jetpack 8x+ background request
Post by: Yeong on April 12, 2012, 04:51:22 am
Come to think of it, the game reminds me of the balloon fighter.
Title: Re: Jetpack 8x+ background request
Post by: leafy on April 12, 2012, 06:15:34 am
I personally think the gravity is set a bit too high - if you look at the actual game the fysix are a bit floatier.
Title: Re: Jetpack 8x+ background request
Post by: Matrefeytontias on April 12, 2012, 08:05:35 am
I made a title screen image : what do you think of it ?
(http://mattias.refeyton.fr/espace-ti/jetpack/titleScreenCalcFinal.gif)
Title: Re: Jetpack 8x+ background request
Post by: aeTIos on April 12, 2012, 09:50:14 am
Woah that is pretty cool O.o