It Scales... Mostly


Got stun locked on the HUD resizing for a while. Then I completely bricked everything a couple of times adding multiple rooms. (Glad I made backups to restore from). Some things don't make any logical sense to me,  as it would crash with uncaught exception when calling a nonexisting object. Even though I check if that object/instance exists before I try and call it, AAAAAAAAH!! Just did a work around and did it a different way.  Just annoying since it worked fine a few days ago and I never touched that section of code. Oh well.

I was pulling the HP value from the player object. I created a script that could get the hp value of any object. It was working fine. But its started crashing the game after I deleted the player object in the room. I deleted it by mistake while working on more rooms. Easy fix, I dropped it back in. But now it won't pull that object's HP value without crashing. Even though I check for that object existing before pulling it. No idea why.  So now I check if it exists twice. Once before calling the script function, and again the script checks too. Whatever it works. However,  after that when my player object dies and gets destroyed from the scene.  It will crash from other spots that call the player object. Even though every instance should be checking if it exists before calling it. I got fed up and now the death script does not destroy the player object, it just makes it invisible and removes the ability to control it. Just makes no sense to me.

Next I will be adding the points shop to buy upgrades. Once upgrades are all added, I will work on more enemies and bosses.

Changes:

  • The game now scales in the browser even while you are resizing it. 
  • Have added a timer, HP bar, and points to the HUD. 
  • Added a starting splash page
  • Spent way too long making scaling buttons that change size based on text length lol

Bugs to fix:

  • Scaling issue with the player character on game start
  • "Game Over" text position in HUD is centered by dividing by 4, WHY? Literally worked normally with dividing by 2, a couple of hours ago, I don't understand.

Files

Grupios3html5-0.1.8.zip Play in browser
71 days ago

Leave a comment

Log in with itch.io to leave a comment.