Piet Souris wrote:Can you have look at the code in PasteBin? The startup-screen doesn't go away after a mouseclick.
Matthias Utrata wrote:I have no idea how Lists work and no idea what I should do with a list
Matthias Utrata wrote:I know sadly. That is one problem that I have now, since I tried to seperate both methods. The run method just handling the movements of the ball and the paddle and the mainGame method, operating all of it
Matthias Utrata wrote:How about we try to solve step 2 first? I wanna make the collision detection after all the main problems
Matthias Utrata wrote:I have now initiated two more variables maxRow and maxCol, which display the maximum rows and maximum columns of the bricks. The 2d array hit has the size of these two variables. Does that make sense?
Matthias Utrata wrote:I tried to do that now, so when the value in this position equals 0, then the targets should be drawn, but it only throws a bunch of error messages. Why does that happen?
Exception in thread "JavaFX Application Thread" java.lang.ArrayIndexOutOfBoundsException: 1