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 O’Reilly online learning.

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