Book Image

App Inventor 2 Essentials

Book Image

App Inventor 2 Essentials

Overview of this book

App Inventor 2 will take you on a journey of mobile app development. We begin by introducing you to the functionalities of App Inventor and giving you an idea about the types of apps you can develop using it. We walk you through the technical set up so you can take advantage of the interactive development environment (live testing). You will get hands-on, practical experience building three different apps using tutorials. Along the way, you will learn computer science principles as well as tips to help you prepare for the creative process of building an app from scratch. By the end of the journey, you will learn how to package an app and deploy it to app markets. App Inventor 2 Essentials prepares you to amass a resource of skills, knowledge and experience to become a mobile app developer
Table of Contents (15 chapters)
App Inventor 2 Essentials
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Creating a game app


You've already logged into App Inventor with your Google Account, created a new project, named it Fling, and learned how to navigate the Designer screen. It's time to create your first mobile app!

Tip

Since this is a tutorial, we will explain the way to play our game. But, if you were starting from scratch to create your own game, you would want to make sure that you've put in the time, effort, and energy to figure out what you want it to do and what you want it to look like. We outlined the design process for mobile app creation in Chapter 1, Unleashing Creativity with MIT App Inventor 2. This may be a good time to review it.

The object of the Fling game app is to fling a moving ball with your finger to prevent it from hitting the bottom edge of the screen and ending the game. When the Play button is clicked, the ball will start moving from top to bottom. If it hits the bottom edge of the screen before the user flings it away, the game will stop and a Game Over notice will...