Additional Exercises

This game offers plenty of room for customization. You can change the speed of the ball, change the location of the hole, or add obstacles.

1. Try changing the number of obstacles, adding different ones or moving an existing obstacle to a different location.

2. Add another ball or hole to see how that impacts the game. Explore other ways to change the course, making it more difficult or different from just a standard layout.

3. Add a second screen and complete a new hole from scratch. Later, we explore methods for making good multiscreen apps.

Get Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps 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.