Watching "Code a 2D Game Engine using Java" and stuck

Hi there. I’m watching “Code a 2D Game Engine using Java”, and I’m stuck at this part.

When I run my program, my window is white, not red. However, when I close the window, it flashes red as it’s closing. My code looks the same as Gabe’s.

Does anyone know what I might be doing wrong?

psot your code, then maybe we can be able to help :slight_smile:

I had actually just forgotten curly braces on my while loop. It works now. Thank you!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.