Alpha 1.3.1


It turns out there's a major bug in the previous releases which I never caught until just now. Long story short, when running the Windows build of the game, if you try to move or resize the game window or if you click outside of the game window and then click back inside of it, then Megaman will respawn. Of course, this isn't supposed to happen. 

The reason why I never caught this error until just now is because my personal laptop (which I'm developing the game on) runs Linux, and the Linux builds don't have this issue. While I'm not 100% sure, I think this stems from LWJGL3 applications having a slightly different life-cycle on Windows versus Linux. It seems that on Linux, when the app loses and regains focus, it causes the screen's "show" function to be re-called. In the game screen class, Megaman is spawned within the "show" function, which would explain this weird behavior.

In an attempt to resolve the issue, I've moved the logic for spawning Megaman and starting up the level out of the level screen's "show" function and into its own "start" function. ~~Hopefully, this resolves the issue.~~

For those curious, here's the commit where I made this change: https://github.com/JohnLavender474/Megaman-Maverick/commit/58f799c307709046df3ca...


UDPATE

Sadly, this has NOT fixed the issue. :(

I'll need to do more investigation on how to fix this. Until then, my only advice is... play the game on Linux? :')

Files

Megaman-Maverick-alpha-1.3.1-windows64.zip 488 MB
57 days ago
Megaman-Maverick-alpha-1.3.1-linux64.zip 496 MB
57 days ago

Get Megaman Maverick

Leave a comment

Log in with itch.io to leave a comment.