32
Awlex
7y

For a project day we had to write a game of our choice in Java.

"You should make this game using the JSwing library and make each component a JComponent"

Later I learned you can simply use a Bitmap as a canvas.

NEVER. EVER. BASE. YOUR. GAME. ON. SWING.
It inefficient to the top of my taskmanager. I had to wrap everything with something like a virtual playground where I had to manage everything myself to not roast my cpu.

I had alot more fun debugging hundred lines of C code with print statements than writing that shit

Comments
  • 4
    Wasnt hard for me, did you extend JFrame and override the paint method. And paint one single BufferedImage to the screen, and paint to your main BufferedImage
  • 4
    @calmyourtities Of course I extended JFrame. But our teacher told us to write a overwrite the paint method for every JComponent. The way you just described it would have been the heaven route
Add Comment