Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: Hayleia on May 15, 2014, 05:13:20 am

Title: [Ndless] Jetpack Impossible
Post by: Hayleia on May 15, 2014, 05:13:20 am
Yeah, it's written "Hayleia" on the left and you are in the Nspire board, you are not hallucinating.

So, here's my first real Nspire project. Jetpack Impossible, based on the game on smartdevices (https://play.google.com/store/apps/details?id=com.nitako.jetpackImpossible).

Your goal is to help the astronaut get a lot of gems before dying from hitting a meteorite (why do you need a scenario ? just play). You have a Jetpack with only two buttons: up-left and up-right. You'll have to rely on gravity to go down (yeah, gravity when there's nothing beneath you is completely logical, especially when meteorites are not affected by it). Note that you are invincible as long as you didn't pick up any gem (who wants to play the 7 illogical things game ?) and you edgewrap (I wanted to say it in one word, I don't know if that's correct and understandable).

One animated screenshot is better worth than >9000 words so here's one.
(http://tiplanet.org/modules/archives/captures/JetpackImpossible.GIF)

To do
-highscore saving
-displaying score and medal after dying ?
-a menu ? (what for ?)

By the way, I thank pierrotdu18 for his Flappy Bird source code from which I learnt a lot about nSDL, Lepzulnag for his work on nSDL fonts and of course Hoffa for nSDL and Extended and the others for Ndless.

Download: http://ti-pla.net/a59790 (http://ti-pla.net/a59790)
Title: Re: [Ndless] Jetpack Impossible
Post by: Streetwalrus on May 15, 2014, 05:33:04 am
Yeah, it's written "Hayleia" on the left and you are in the Nspire board, you are not hallucinating.
Wait, I thought it was a bad LSD trip ? O.O
/me runs

Anyway, nice to see it ported, I like this game since you shown it to me. :P
Title: Re: [Ndless] Jetpack Impossible
Post by: Matrefeytontias on May 15, 2014, 07:14:59 am
By the way, I thank pierrotdu18 for his Flappy Bird source code from which I learnt a lot about nSDL, Lepzulnag for his work on nSDL fonts and of course Hoffa for nSDL and Extended and the others for Ndless.

Why am I not on that list ? What about the help with the bitmaps ? :mad:

Seriously though :P that looks real nice, but you should consider using real meteor sprites. SDL_gfx can handle arbitrary sprite rotations, so you could even make them rotate about their origin to make it look like actual meteors.
Title: Re: [Ndless] Jetpack Impossible
Post by: Hayleia on May 15, 2014, 11:00:10 am
Yeah, it's written "Hayleia" on the left and you are in the Nspire board, you are not hallucinating.
Wait, I thought it was a bad LSD trip ? O.O
/me runs

Anyway, nice to see it ported, I like this game since you shown it to me. :P
Thanks :)
And in fact, if my graphics weren't so ugly, I'd like my version better than the Android version because I don't like playing with a touchscreen.

By the way, I thank pierrotdu18 for his Flappy Bird source code from which I learnt a lot about nSDL, Lepzulnag for his work on nSDL fonts and of course Hoffa for nSDL and Extended and the others for Ndless.

Why am I not on that list ? What about the help with the bitmaps ? :mad:

Seriously though :P that looks real nice, but you should consider using real meteor sprites. SDL_gfx can handle arbitrary sprite rotations, so you could even make them rotate about their origin to make it look like actual meteors.
True, thank you too :P
And I'll consider that. I just started coding with nSDL two days ago so I don't know every possibility yet :P

I also made an update.
-changed constants for a better "physics engine"
-titlescreen
-highscore  saving (that's the only point of the titlescreen)
Title: Re: [Ndless] Jetpack Impossible
Post by: Sorunome on May 15, 2014, 11:05:18 am
this is looking nice! :D
Title: Re: [Ndless] Jetpack Impossible
Post by: Hayleia on May 18, 2014, 03:38:27 am
UPDATE
(http://tiplanet.org/modules/archives/captures/1400337275ScreenCapture_2014-5-17%2016.1.35.wmv.GIF)
-Meteorites have trails. Not only it is visually better but it is also helpful when you pause the game because you know where they are going and you can unpause without being killed.
-When you start the game, balls are not on screen, they come from the outside (like in the real game).

Same download link.
Title: Re: [Ndless] Jetpack Impossible
Post by: Hayleia on May 31, 2014, 01:37:19 pm
UPDATE

-Player rotates according to direction, as in the real game.
-No longer uses nSDL. This results in huge speed gains. It is now playable on non-CXes and I even had to add a sleep (the old version didn't have a sleep). If you want to see what this gives without a sleep (to compare with the old version), hit TAB instead of ENTER in the titlescreen. You'll see the difference very quickly. If you don't have the old version, it is available here (http://tiplanet.org/forum/download/file.php?id=1393).

(http://tiplanet.org/modules/archives/captures/1401556978ScreenCapture_2014-5-31%2018.38.19.wmv.GIF)
Title: Re: [Ndless] Jetpack Impossible
Post by: Sorunome on May 31, 2014, 01:39:37 pm
This is looking awesome! :D
Title: Re: [Ndless] Jetpack Impossible
Post by: Streetwalrus on May 31, 2014, 01:44:01 pm
Maybe you should learn to use timers if the Nspire has them. Much more accurate than sleep, and more elegant too.
Title: Re: [Ndless] Jetpack Impossible
Post by: Hayleia on June 01, 2014, 07:34:30 am
This is looking awesome! :D
Thanks ^^

Maybe you should learn to use timers if the Nspire has them. Much more accurate than sleep, and more elegant too.
Well I am pretty new to Nspire dev so I don't know yet about everything :P

Anyway, UPDATE

Fixed a memory leak :P
Jill flickers even less
Fixed screen filling (which left untouched the last column and the last row)
Graphical effect for the reactor, see screenshot :D

(http://tiplanet.org/modules/archives/captures/1401621819ScreenCapture_2014-6-1%2013.16.0.wmv.GIF)
Title: Re: [Ndless] Jetpack Impossible
Post by: Streetwalrus on June 01, 2014, 12:05:55 pm
Yay awesome ! :D