Draw with java graphics in jframe
Oh just download the entire repository.
You can also take only the Az.java file and use it, as long as you put it as the main class of a jFrame.
Happy hacking!
YOU STUPID PIECE OF HOURSE GARBAGE! HOW DARE YOU NOT READ THE CODE I PROVIDED! IT IS REALLY WELL WRITEN!
Well, you are here so i might as well be less of an asshole and explain it to you.
-You 📃initialize the variables that will change between frames in a certain sector of the code
-You can 🔁perform actions between frames in a specific part of the code
-Your 🧠🎨main logic is in a specific part of the code.
Yea you can 🔁perform actions between frames in the part where the 🧠🎨main logic is, but it's way cleaner when you do it there.
That's easy. Look at my f*ing examples. But you can do cooler stuff with the g.Something functions. Learn them yourself. Essential ones are: g.fillRect, g.setColor, g.drawLine, g.drawImade (I provided no example for images)
Know Java, have a working compiler, know some essential JFrame concepts, know some math, and know some physics.