Running the game
Switch off debugging if you want to see the game as the player would see it. You can do this by changing the declaration of debugging
from true
to false
. Run the game and try to locate the sub' using the distance clues given.
And when you shoot the sub'…BOOM!
As suggested in the image, taking a shot (tapping the screen will start the game all over again.)
Get Learning Java by Building Android Games - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.