Join us on Discord!
You can help CodeWalrus stay online by donating here.

[HP Prime] Starvault - Unfinished but here for posterity.

Started by iconmaster, January 21, 2015, 11:03:16 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

iconmaster

After Tetris, I want on to start another game. It was called Starvault, and it was going to be a short sci-fi roguelike sort of game.

I had the bright idea to separate the game into multiple HPPRGM files for my programing convenience. Well, as it turns out, this is a very bad idea. I eventually made a cyclic dependency in the code. As it turns out, if one of the dependants has a syntax error, none of the other dependants will ever compile again. As a result, this code can never run again, as one can never fix the bug that causes every check to fail. This proved to be the end of Starvault development.

I decided Source would be a better use of my time.

Anyways, the program does some cool graphical effects, so I suggest you check out the source code to see it. Maybe you can learn something from it?? I've attached the source code and assets.


I really wish I had made screenshots when it was working. Oh well.

Dream of Omnimaga

#1
Hmm strange that the game would stop compiling again once a sub-program gets an error. I'll think twice next time about using sub-programs then. D: Do you think there would be a way to make that game compilable again in the future, such as merging every sub-program into one file or copying the code into brand new ones?

THis also sounds like it is a bug that should be reported to Tim Wessman.

EDIT: Are you sure that the HP Prime supports the SV_DRAWGAME.DRAWBACK()? Most syntax errors seems to be at lines like this.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

iconmaster

I got it working again by merging everything into one file. So, feel free to check out the attached file, and also these screenshots:


Dream of Omnimaga

Awesome to hear. :D By the way, just a question: Since the HP Prime has issues keeping highscores and saves if you accidentally recompile your program, could using the program launcher trick (having a very small program launch the bigger program as sub-program) result into the compiling issues you got with this game?


This looks quite nice by the way. I'll need to give this a try soon :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

iconmaster

Quote from: DJ Omnimaga on January 22, 2015, 02:11:21 PM
Awesome to hear. :D By the way, just a question: Since the HP Prime has issues keeping highscores and saves if you accidentally recompile your program, could using the program launcher trick (having a very small program launch the bigger program as sub-program) result into the compiling issues you got with this game?

This looks quite nice by the way. I'll need to give this a try soon :)

I don't think SV_DATA caused the error, as I still use the SV_DATA trick in the merged version.

And thanks a bunch!

Dream of Omnimaga

  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal