Hey, I am new to programming. I am in the process of learning and understanding the structure of a game. I have tried to search, but ended up with different results. I hope that I can get a deep explanation of the following, how it works e.g.:
-
Does the first sentence mean Start class will allocate memory with the second statement?
Start myStartGUI = new Start();
myStartGUI.setVisible(true); -
Constructor?
public A(int x, int y, int width, int height) {
super(x,
y,
width,
height);
} -
Drawing function
public void draw(Graphics graph) {
graph.setColor(color);
graph.fillOval(x, y, width, height);
} -
Moving directions?
public void movements() {
x += directionX;
y += directionY;
} -
Why use public static final int, what does it mean for the constant?
public static final int STONE = 25;