Creating boundaries in our game

We will go step by step here since this part may get a bit tricky. We will have to deal with a lot of math calculations for our boundaries as well as lots and lots of new variables. Let's start by declaring some variables in our GameView.java file. 

Throughout this part, we will be working only in our GameView.java file.

Get Learning Android Game Development 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.