* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: Snake on a HP Prime  (Read 1808 times)

0 Members and 1 Guest are viewing this topic.

Offline nullweist

  • New User
  • Join Date: Dec 2015
  • Location:
  • Posts: 9
  • Post Rating Ratio: +0/-0
  • Gender: Male
Snake on a HP Prime
« on: March 02, 2016, 04:25:01 am »
This is a remake of the classic Snake game. You use the arrow keys to move. If you hit the edge, or yourself, you die. If you "eat" the red dot you get bigger. Be warned that this program uses a matrix to store temporary data. If there are any issues feel free to let me know.


  • Calculators owned: Hp Prime

Offline xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18878
  • Post Rating Ratio: +99/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Snake on a HP Prime
« Reply #1 on: March 02, 2016, 04:34:29 am »
I'll give this a try in a few minutes in the emulator (by the way, the emulator is located at ftp://ftp.hp.com/pub/calculators/Prime/ and you can use it to make screenshots, but your games will run faster unless you use the WAIT() command). :)


EDIT:

I made an animated screenshot with Camstudio and VirtualDub:




I like it so far, but I found two issues (although I think one is caused by the emulator?)

-Keys takes a while to register, so to make the snake turn, I have to keep the arrow key pressed for a while, else it won't turn

-If you go backwards, the snake seems to go through itself, as demonstrated in the screenshot above.


What would be cool as new feature would be to add extra colors, such as making the background green and the snake yellow. Perhaps a mode where the field wraps around (so we can go outside the screen and appear on the other) would be nice as well.
« Last Edit: March 02, 2016, 04:41:52 am by DJ Omnimaga »
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline nullweist

  • New User
  • Join Date: Dec 2015
  • Location:
  • Posts: 9
  • Post Rating Ratio: +0/-0
  • Gender: Male
Re: Snake on a HP Prime
« Reply #2 on: March 02, 2016, 04:44:10 am »
Thanks for the input. The backwards thing is a bug, you are supposed to die when that happens. I didn't notice the key press delay and will try to figure it out.
« Last Edit: March 02, 2016, 04:47:35 am by nullweist »
  • Calculators owned: Hp Prime

Offline nullweist

  • New User
  • Join Date: Dec 2015
  • Location:
  • Posts: 9
  • Post Rating Ratio: +0/-0
  • Gender: Male
Re: Snake on a HP Prime
« Reply #3 on: March 05, 2016, 03:22:14 am »
New Version!
Changes:
-Fixed the issue of being able to go backwards
-New Color Options
    >Black Snake/White Background
    >Green Snake/Black Background
    >Yellow Snake/Green Background
-New Difficulty Options
    >Easy - Normal Speed/Field Wraps Around
    >Medium - Faster Speed/Field Wraps Around
    >Normal - Normal Speed/Collision with border kills
    >Hard - Faster Speed/Collision with border kills

I can't make an animated screenshot, but here are some normal screenshots of the new colors.
  • Calculators owned: Hp Prime

Offline xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18878
  • Post Rating Ratio: +99/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Snake on a HP Prime
« Reply #4 on: March 05, 2016, 09:02:22 pm »
I like the changes, especially the difficulty settings :D. I can't test the new version yet, but one thing I liked about the other version is that it was playable in the emulator as well, speed-wise.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline aeTIos

  • Dabbler in C
  • Super User
  • Original 5
  • Join Date: Nov 2014
  • Location: Ede, NL
  • Posts: 1049
  • Post Rating Ratio: +12/-0
  • hi
    • r_vdijk
    • /u/aetios
    • aetios
  • Gender: Male
Re: Snake on a HP Prime
« Reply #5 on: March 06, 2016, 08:07:13 am »
That looks really nice! Does the minimap serve any function? (Other than 'fancy')
ceci n'est pas une signature

Offline nullweist

  • New User
  • Join Date: Dec 2015
  • Location:
  • Posts: 9
  • Post Rating Ratio: +0/-0
  • Gender: Male
Re: Snake on a HP Prime
« Reply #6 on: March 13, 2016, 01:35:32 am »
The minimap is the actual game. The game is scaled up in order to make it easier to see what is happening.
  • Calculators owned: Hp Prime

Offline xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18878
  • Post Rating Ratio: +99/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Snake on a HP Prime
« Reply #7 on: March 13, 2016, 01:47:04 am »
Aah I see. It actually looks cool anyway. Also it's a good move to use smaller resolutions for games that don't requires HQ graphics. It's faster.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games