I'm going over it now, but it totally lost me when it came to this example:
import javax.swing.SwingUtilities;
import javax.swing.JFrame;
import javax.swing.JPanel;
import...
Type: Posts; User: tyeeeee1
I'm going over it now, but it totally lost me when it came to this example:
import javax.swing.SwingUtilities;
import javax.swing.JFrame;
import javax.swing.JPanel;
import...
I've removed the collision related code, here is the basic program:
Edit: Threw the program into one file, this should still work...
import javax.swing.*;
import java.awt.*;
class Rawr
I've been trying to wrap my head around how to detect and fix collision at the moment but as I'm not very familiar with drawing on a JPanel I managed to mess up somehow. At the moment my loop looks...