Author Topic: [Ndless] Jetpack Impossible  (Read 7620 times)

0 Members and 1 Guest are viewing this topic.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
[Ndless] Jetpack Impossible
« 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.

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.


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
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [Ndless] Jetpack Impossible
« Reply #1 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
* Streetwalrus runs

Anyway, nice to see it ported, I like this game since you shown it to me. :P

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Ndless] Jetpack Impossible
« Reply #2 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.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Ndless] Jetpack Impossible
« Reply #3 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
* Streetwalrus 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)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [Ndless] Jetpack Impossible
« Reply #4 on: May 15, 2014, 11:05:18 am »
this is looking nice! :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Ndless] Jetpack Impossible
« Reply #5 on: May 18, 2014, 03:38:27 am »
UPDATE

-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.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Ndless] Jetpack Impossible
« Reply #6 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.

I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [Ndless] Jetpack Impossible
« Reply #7 on: May 31, 2014, 01:39:37 pm »
This is looking awesome! :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [Ndless] Jetpack Impossible
« Reply #8 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.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Ndless] Jetpack Impossible
« Reply #9 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

I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [Ndless] Jetpack Impossible
« Reply #10 on: June 01, 2014, 12:05:55 pm »
Yay awesome ! :D