CodeWalrus

CodeWalrus Website => File Download Archives => Games => Topic started by: DJ Omnimaga on February 04, 2015, 11:47:41 pm

Title: [HP Prime] HP Prime Tunnel (2013)
Post by: DJ Omnimaga on February 04, 2015, 11:47:41 pm
This is the official release of my HP Prime port of my HP 39gII Tunnel clone written in BASIC, now adapted for the larger screen and color display. It is probably the first ever game ever made available for download for this calculator model. It isn't meant to show coding skills, especially considering the game was made before my knowledge of the DIMGROB_P and BLIT_P commands (although an intro transition using them was added afterward), but as you'll see on-calc, even if I have to refresh the entire screen content every frame, I still get insane FPS. Because of how incredibly fast this calc is, this is why I manage to get such high framerate even with redrawing the entire screen rectangles and score text every frame. As for the multicolor and 3D-ish text effects, they are possible because the HP Prime lets you use text with no background, so all you have to do is superpose multiple copies of that text, gradually changing its color and position through a FOR loop. This also lets you use bold text. To play, just use the UP and DOWN keys and quit with ON. Here is a Youtube video by Critor of it running on a real calc, but the text color is different and it runs a little slower, since it's an older version:

https://www.youtube.com/watch?&v=0WEjguctKNY

(https://img.ourl.ca/tunnelprime.png)

http://www.cemetech.net/programs/index.php?mode=file&path=/prime/games/TunnelPrime.zip
Title: Re: [HP Prime] HP Prime Tunnel (2013)
Post by: iconmaster on February 06, 2015, 08:03:28 pm
I remember this from when the Prime just came out. It's a quality game, what can I say!

I'm excited to see what more advance things we can do, seeing this was made very early in the Prime's existence.
Title: Re: [HP Prime] HP Prime Tunnel (2013)
Post by: DJ Omnimaga on February 06, 2015, 08:34:49 pm
I might try to redo this with textures and perspective, but maybe I'll switch the view 90° and do some OutRun type of game.
Title: Re: [HP Prime] HP Prime Tunnel (2013)
Post by: Magicrafter13 on September 17, 2018, 02:06:47 am
[I messaged you on Reddit, though it seems you haven't been on there in 2 months.]

How did you prevent the screen tearing?