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...
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
Get Mega Man Maverick
Mega Man Maverick
Mega Man fan game by oldlavygenes
Status | In development |
Author | OldLavyGenes474 |
Genre | Platformer |
Tags | 2D, megaman, Retro |
More posts
- Alpha 1.10.08 days ago
- Alpha 1.9.234 days ago
- Alpha 1.9.134 days ago
- Alpha 1.9.034 days ago
- Alpha 1.8.061 days ago
- Alpha 1.7.1-inf-lives62 days ago
- Alpha 1.7.163 days ago
- Alpha 1.7.063 days ago
- Alpha 1.6.088 days ago
- Alpha 1.5.191 days ago
Leave a comment
Log in with itch.io to leave a comment.