Question: In Java, I am coding with applet a game where a lizard try to cross the screen avoiding to be died by cars. I have

In Java, I am coding with applet a game where a lizard try to cross the screen avoiding to be died by cars.

I have the following section: init, key released, void start, void paint, void update, void run,

I want to create a new level where the cars go faster when the lizard reaches the top of the screen.

Do I have to add an if statement?

Could you please help me with the code? And where I have to enter it?

Thank you in advance.

What info you need? I would like to know which is the code I need in my game in order to make cars go faster when the lizard reaches the top of the screen.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!