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 file. 

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

Get Learning Android Game Development now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.