How I can create window all content of which is an animation produced with png sequence?
I can’t find any appropriate articles for this theme. Or if I plan to do little game in Clojure, maybe it wood be better to use any java game engine? What will you use for this aim?
Let’s adapt an example from Wikibooks.
Now update the
avatarref to a new image usingref-set. Remember to repaint the frame afterwards.Now let’s animate it.
I hope it’s enought to get you started.
Speaking of game engines for the Java ecosystem, you might want to take a look at lwjgl.