I have some java questions. I made a game that has two balls. One that you control and one that moves around the screen. You have to avoid getting hit by the moving ball.
So far, I just have a ball moving around and the one that you control. When you get hit by the moving ball, I made it so that the game redirects to JPanel. This jpanel contains questions (education purposes).
My question is: how do I load a text file with questions in this format:
the text file:
What is bob + 2?
What is new+bie?
and so on. i have around 35 questions.
So far the panel i made has 4 radiobuttons on a gridlayout of 5,1. the 4 radio buttons do this right now:
I am trying to put a text area containing a question from the question.txt file and the four answer choices in the corresponding radio buttons(a,b,c,d). how would i be able to do this?
Also how do i make the ball move faster? (the moving one) every 20 seconds. im using a thread currently. im a newbie at java :/
thank you! any comments and tips are appreciated. if you need more information please post and say so !