Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
21 May, 2013, 09:42:05 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2 3 ... 5   Go Down
  Print  
Author Topic: [Ti-Concours]Jetpack 8x+ -  (Read 2183 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Matrefeytontias
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Yesterday at 12:21:50
Date Registered: 14 October, 2011, 18:48:49
Location: Alone in the Park
Posts: 854


Topic starter
Total Post Ratings: +174

View Profile
« on: 24 April, 2012, 23:53:34 »
+4

Hi guys !

Here is my Ti-Concours entry for the 3rd round ! Jetpack 8x+ is a port of the famous game Jetpack Joyride of the iDevices, for all the 83+/84 calculators Smiley

I started it something like a month ago, just at the end of the 2nd round, so I nearly finished it, even I can add a lot of features.

In this game, you are Barry, a man who stole the secret Jetpack, and you have to escape the labo alive by avoiding zappers (electric arcs), rockets and lasers.

Of course, the game is endless and you just have to run the furthest you can.

Here is the last screenshot (it's outdated !) :



I still have to increase difficulty when you run, else a good player will run and run and run and run and run ...
« Last Edit: 25 April, 2012, 00:00:12 by Matrefeytontias » Logged

/\   ><   [-   |_|   _\~   [-   /?



Spoiler for Shameful self-advertising:
/image/37571.png[/img]
If at a certain moment you think that I'm awesome, give an internet (>^_^)>
Wellen
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 02 May, 2012, 11:56:34
Date Registered: 08 August, 2011, 11:00:09
Location: France
Posts: 118


Total Post Ratings: +5

View Profile
« Reply #1 on: 25 April, 2012, 08:37:32 »
0

Great one !
Is the game on-calc at the same speed as on the gif ? If so, I think you could increase the speed a little bit, or make the game scrolling faster and faster.
Logged

-/...././/--./.-/--/.
I'm french, so please feel free to correct my bad english, it'd help me a lot Wink
Spoiler for Feat. Loulou54:
Spoiler for Projects:
Spoiler for Axe:
Ti-Lock : Lock your calc before turning it off               [XXXXXXXX--] 80%
Spoiler for Ti-Basic:
Spoiler for Soko-Ti, a sokoban game in Ti-Basic:

Spoiler for Memory:

Downloads here.
Darl181
Vy'o'us pleorsdtu tlh'e gjaemue.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Online Online

Gender: Male
Last Login: Today at 09:30:22
Date Registered: 10 June, 2010, 00:32:08
Location: {I*9+L₁+1},{I*9+L₁+3}
Posts: 3272


Total Post Ratings: +267

View Profile WWW
« Reply #2 on: 25 April, 2012, 08:49:11 »
0

Just had a random thought: if it scrolls one pixel per frame and you get it to run at ~60 fps, you might be able to get away with having a monochrome background and have the scrolling act like the scanlines.  Then it might run a bit faster, only having to scroll one buffer?
Not sure how running would be done, tho..aside from maybe scrolling three pixels at a time or having the normal walk be slowed down?
« Last Edit: 25 April, 2012, 08:49:36 by Darl181 » Logged




 
Spoiler for Stuff:



OS 2.43  Boot 1.02  Hardware Rev. B

OS 1.04.32

OS 3.1.0.392  Boot1 3.0.99  Boot2 3.10.16
Spoiler for Misc:
Quote
You'll understand / It's not a shame / To be always / Losing the game / Burma-Shave
"Dynamic userbars!"
Omnimaga radio
Interactive Omnimaga radio
Our World of Text
Draw on websites
Then blow them up
In-browser flight simulator
Haxball: MMO soccer/air hockey game
  Draw with sand.  Yay?
The Game
You just lost the game
Zombo.com
light post color is #dfefff
dark post color is #cae4ff
quote box color is #6699ff
transparent color is...transparent 0.o
Spoiler for Forum search alternative (bookmarklet):
https://www.squarefree.com/bookmarklets/search.html
javascript:q=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(!q)q=prompt("No%20selected%20text;%20enter%20search%20term.").replace(/\s\+/g,"%252B");if(q!=null)location="http://www.google.com/search?q="+q.replace(/\s+/g,"+")+"+site:"+location.hostname;void(0);
aeTIos
You got stair'd!
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: Today at 08:58:38
Date Registered: 15 September, 2010, 06:00:00
Location: Netherlands, Overijssel
Posts: 3111


Total Post Ratings: +120

View Profile
« Reply #3 on: 25 April, 2012, 10:25:05 »
0

wellen,m you accidentally doiuble posted.

edit accidentally made some typos x.x
« Last Edit: 25 April, 2012, 10:25:22 by aeTIos » Logged

If something above sounds rude, feel free to vote it down, it was not meant to be rude<<lolol
--Always stay relAXEd!--


Spoiler for Hidden:


[







Spoiler for Still Alive:
This was a triumph.
I'm making a note here: HUGE SUCCESS.
It's hard to overstate my satisfaction.

Aperture Science:
We do what we must because we can.
For the good of all of us
Except the ones who are dead.

But there's no sense crying over every mistake
You just keep on trying till you run out of cake
And the science gets done and you make a neat gun
For the people who are still alive.

I'm not even angry.
I'm being so sincere right now.
Even though you broke my heart and killed me.
And tore me to pieces.
And threw every piece into a fire.
As they burned it hurt because
I was so happy for you.

Now these points of data make a beautiful line
And we're out of beta we're releasing on time.
So I'm GLaD I got burned think of all the things we learned
For the people who are still alive.

Go ahead and leave me.
I think I prefer to stay inside.
Maybe you'll find someone else to help you.
Maybe Black Mesa -
THAT WAS A JOKE. HA HA, FAT CHANCE.
Anyway, this cake is great:
It's so delicious and moist.

Look at me still talking when there's science to do.
When I look out there it makes me GLaD I'm not you.
I've experiments to run there is research to be done
On the people who are still alive

And believe me I am still alive.
I'm doing science and I'm still alive.
I feel FANTASTIC and I'm still alive.
While you're dying I'll be still alive.
And when you're dead I will be still alive.

Still alive
Still alive
Matrefeytontias
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Yesterday at 12:21:50
Date Registered: 14 October, 2011, 18:48:49
Location: Alone in the Park
Posts: 854


Topic starter
Total Post Ratings: +174

View Profile
« Reply #4 on: 25 April, 2012, 13:06:54 »
0

Yeah, I think use only the background of the back-buffer will speed it up a lot, I'll test
Logged

/\   ><   [-   |_|   _\~   [-   /?



Spoiler for Shameful self-advertising:
/image/37571.png[/img]
If at a certain moment you think that I'm awesome, give an internet (>^_^)>
Matrefeytontias
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Yesterday at 12:21:50
Date Registered: 14 October, 2011, 18:48:49
Location: Alone in the Park
Posts: 854


Topic starter
Total Post Ratings: +174

View Profile
« Reply #5 on: 26 April, 2012, 19:37:19 »
0

Up !

I removed the back-buffer of the background image, which downsize the program of 1512 bytes and speeded it up a lot !

Here is the real last screen (I added Pause 20 at the end because the program was too fast Big smile ) :

« Last Edit: 26 April, 2012, 19:39:39 by Matrefeytontias » Logged

/\   ><   [-   |_|   _\~   [-   /?



Spoiler for Shameful self-advertising:
/image/37571.png[/img]
If at a certain moment you think that I'm awesome, give an internet (>^_^)>
Keoni29
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:50:48
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1113


Total Post Ratings: +146

View Profile WWW
« Reply #6 on: 26 April, 2012, 19:50:15 »
0

Just shift the back buffer and only draw the new line you've shifted in!
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
shmibs
bonsai bok choy wiseguy waterboy
Administrator
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Last Login: Today at 06:02:02
Date Registered: 11 June, 2010, 19:36:15
Location: 89B6
Posts: 1842


Total Post Ratings: +229

View Profile
« Reply #7 on: 27 April, 2012, 00:40:01 »
0

judging from the fact that you are shifting the buffer before updating the screen, i'm guessing you are, indeed, drawing the entire background every frame rather than just the rightmost column of pixels. if you were to swap drawing the entire background in monochrome for drawing only the rightmost column it would mean a change from 96 sprites for monochrome to 32 for greyscale.

if you're doing it that way already, though, then my mistake Tongue
Logged



We're not human, are we?
Matrefeytontias
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Yesterday at 12:21:50
Date Registered: 14 October, 2011, 18:48:49
Location: Alone in the Park
Posts: 854


Topic starter
Total Post Ratings: +174

View Profile
« Reply #8 on: 27 April, 2012, 00:55:03 »
0

I can't do that, I need to use ClrDraw each frame because of particles anims and the very large amount of sprite I can't mask. So I clear the screen and rewrite the whole shifted buffer each frame.
Logged

/\   ><   [-   |_|   _\~   [-   /?



Spoiler for Shameful self-advertising:
/image/37571.png[/img]
If at a certain moment you think that I'm awesome, give an internet (>^_^)>
shmibs
bonsai bok choy wiseguy waterboy
Administrator
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Last Login: Today at 06:02:02
Date Registered: 11 June, 2010, 19:36:15
Location: 89B6
Posts: 1842


Total Post Ratings: +229

View Profile
« Reply #9 on: 27 April, 2012, 01:08:25 »
0

you can, indeed, do that. if you're going to keep it monochroms, just draw the background on the back buffer and copy it over, and if you want greyscale, make a couple of backup buffers with an appvar or something. it will be a LOT faster. if you're drawing the background in monochrome, it's 16 pt-on( s and a single conj( instead of 96 pt-on( s
Logged



We're not human, are we?
Matrefeytontias
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Yesterday at 12:21:50
Date Registered: 14 October, 2011, 18:48:49
Location: Alone in the Park
Posts: 854


Topic starter
Total Post Ratings: +174

View Profile
« Reply #10 on: 27 April, 2012, 01:11:48 »
0

Oh no, I'm not using any drawing functions, just bit storage in L6, so it's really fast (I use Horizontal - and Copy(Pic1BG,L6))
Logged

/\   ><   [-   |_|   _\~   [-   /?



Spoiler for Shameful self-advertising:
/image/37571.png[/img]
If at a certain moment you think that I'm awesome, give an internet (>^_^)>
shmibs
bonsai bok choy wiseguy waterboy
Administrator
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Last Login: Today at 06:02:02
Date Registered: 11 June, 2010, 19:36:15
Location: 89B6
Posts: 1842


Total Post Ratings: +229

View Profile
« Reply #11 on: 27 April, 2012, 01:15:43 »
0

wait, so do you have separate frames for every look the background can take, then?
if so, then that would be very fast, absolutely massive, and not require horizontal at all. if not, then i don't understand...
Logged



We're not human, are we?
Matrefeytontias
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Yesterday at 12:21:50
Date Registered: 14 October, 2011, 18:48:49
Location: Alone in the Park
Posts: 854


Topic starter
Total Post Ratings: +174

View Profile
« Reply #12 on: 27 April, 2012, 01:22:31 »
0

shocked it would take 48*1512 bytes of hex w00t

That's not it, here is how I do :
  • I copy the two first rows of pixels at the end of the buffer
  • I shift the buffer
  • I copy the buffer to the screen
The screen is updated at the end of the frame.
Logged

/\   ><   [-   |_|   _\~   [-   /?



Spoiler for Shameful self-advertising:
/image/37571.png[/img]
If at a certain moment you think that I'm awesome, give an internet (>^_^)>
shmibs
bonsai bok choy wiseguy waterboy
Administrator
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Last Login: Today at 06:02:02
Date Registered: 11 June, 2010, 19:36:15
Location: 89B6
Posts: 1842


Total Post Ratings: +229

View Profile
« Reply #13 on: 27 April, 2012, 01:38:06 »
0

so you're copying with a loop that runs through the data, copying line by line? that still seems like it would be slower than the sprite commands.
« Last Edit: 27 April, 2012, 01:43:50 by shmibs » Logged



We're not human, are we?
Matrefeytontias
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Yesterday at 12:21:50
Date Registered: 14 October, 2011, 18:48:49
Location: Alone in the Park
Posts: 854


Topic starter
Total Post Ratings: +174

View Profile
« Reply #14 on: 27 April, 2012, 01:45:37 »
0

Maybe, but the fact is I have the whole image in plain hex, and that's not the good format for sprite commands. Also, bit manipulation is really fast ...
Logged

/\   ><   [-   |_|   _\~   [-   /?



Spoiler for Shameful self-advertising:
/image/37571.png[/img]
If at a certain moment you think that I'm awesome, give an internet (>^_^)>
Pages: [1] 2 3 ... 5   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.372 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.