An update? Yup. Now works in browsers.
Ta-dah! The long awaited update!
...actually; I just happened to find the old source code while looking into Emscripten so this became a test case for me.
It turns out it wasn’t too complicated to re-compile the entire project into Emscripten, but when I first ran it in a browser… The State machine would get stuck and entities would stay in a weird repeating loop, waiting for a signal to move on to the next state.
I eventually figured out it was nothing to do with the state machine and it was the collision code…
oh dear god…
the collision code…
it REALLY shouldn’t of worked in the first place, so it was not fun looking through my 7 year old code.
It turns out the collision “system” I wrote never actually adjusted the position directly, just manipulated the velocities so that they wouldn’t enter “walls”… I have no clue what I was thinking at the time, though I do think I wrote a majority of this games code in a day and probably decided “Looks like it works and that’s good enough for me”.
Shameful.
Originally I thought of rewriting the terrible collision code, but I probably would have had to rewrite a lot of other sections to make it all work… so eventually I just cleaned up the main function that was causing issues and fixed it from there.
After skimming over the rest of the code, I'm considering doing a little further clean up and compiling a new Windows, Linux and Android build, but I guess we'll see what happens. I think it works fine for just a browser game, but it would probably be nice practice for me.
I hope you enjoy "Where's my Balloon?" in browser-game form.
-K. A. Laherty 2022
Files
Get Where's my Balloon?
Where's my Balloon?
A mini-metroidvania about finding your balloon.
Status | Released |
Author | K. A. Laherty |
Genre | Platformer |
Tags | Action-Adventure, Metroidvania |
Leave a comment
Log in with itch.io to leave a comment.