What are the drawbacks of using repaint on swing components instead of using a game loop?
relative to the problems in a turn based game:
animated units, static terrain, animated menu, explosion animation, blinking stars, rain, snow(small images moving over the whole screen)
units should be 20% darker when inactive, and they stop animating.
I know
that painting and input both are passed in the awt event thread
that java2d can use software/hardware rendering
I don’t know howto update the animations, should I use a swing timer and call update using that? or use gifs and let java update them for me.
But how do you stop a animated gif?
I though about creating a swing timer and let it call repaint every second. To allow a scrolling background for example.