Reader small image

You're reading from  Learning Java by Building Android Games - Third Edition

Product typeBook
Published inMar 2021
Reading LevelBeginner
PublisherPackt
ISBN-139781800565869
Edition3rd Edition
Languages
Right arrow
Author (1)
John Horton
John Horton
author image
John Horton

John Horton is a programming and gaming enthusiast based in the UK. He has a passion for writing apps, games, books, and blog articles. He is the founder of Game Code School.
Read more about John Horton

Right arrow

Running the game

You can now run the game and see the fruits of your labor:

Figure 18.5 – Running the game

As you can see, for the first time, we have actual button positions marked out on the screen: move up and down in the bottom-left corner and fire and flip direction in the bottom-right corner. The button in the top-right corner will start the game when it is game over and it will pause and resume the game when it is in play. At the moment, the buttons don't do anything, but we will fix that soon.

In addition, we have text being drawn to the screen to show the lives, score, and high score. There is also a message to the player to advise them on how to start the game.

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Java by Building Android Games - Third Edition
Published in: Mar 2021Publisher: PacktISBN-13: 9781800565869

Author (1)

author image
John Horton

John Horton is a programming and gaming enthusiast based in the UK. He has a passion for writing apps, games, books, and blog articles. He is the founder of Game Code School.
Read more about John Horton