JacksonHoggard / voodoo2d

👹 2D Java Game Engine built in OpenGL
MIT License
131 stars 50 forks source link

GameEngine runs init() twice upon startup #14

Closed tinovasq closed 4 years ago

tinovasq commented 4 years ago

Describe the bug GameEngine runs init() twice upon startup: not a 'game breaking' bug per se (ha), but does interfere with the map tileset parsing and construction, which is how I found it.

To Reproduce Steps to reproduce the behavior:

  1. Navigate to src/main/.../voodoo2d/engine/GameEngine.java.
  2. Using either IDE breakpoints or a println(), mark the method call of init().
  3. notice the double run logic error.

Expected behavior The method should be called once, as it is an initialization.

Screenshots N/A

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context None.

JacksonHoggard commented 4 years ago

I followed the steps to reproduce and I don't seem to be having this issue. Could it be an issue caused by some code you added? Here are some screenshots with the code I ran trying to reproduce the error: image image

tinovasq commented 4 years ago

Thanks, used this to figure out the issue. My install did something odd, when I recompiled it is working fine.

JacksonHoggard commented 4 years ago

No problem! Glad you could resolve the issue!