Book Image

Google App Inventor

By : Ralph Roberts
Book Image

Google App Inventor

By: Ralph Roberts

Overview of this book

<center><iframe src="http://www.youtube.com/embed/UgRhYG_bvW8" width="500" height="315" frameborder="0"></iframe></center> <p>The number of mobile apps has grown exponentially in the last two years. If you want to join the crowd, Google’s App Inventor is the easiest and best tool for you to get started with. It is a tool to create Android phone apps and uses a graphical user interface, and drag and drop methods to create apps. It’s so simple that anyone can build an app.<br /><br />Learn how Google App Inventor eliminates the mystery around programming. It is a visual language, where we simply drag and drop blocks (graphic elements representing blocks of code) in various combinations to give us applications that run on our phones or other Android-based devices. No programming background is required. Playing with blocks has never been more fun!<br /><br />The emphasis is on creating apps that work and that you understand fully. The first part of the book gives you a sound foundation in the basics, and lots of tips on how to use App Inventor. The second part is all about creating complete apps ready for real world use. The book includes apps that communicate, use databases to remember, surf the Web and other networks, use GPS and various sensors on your phone, and let you write or play games.</p>
Table of Contents (19 chapters)
Google App Inventor
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Bash the Alien!


In the previous game, my little alien just had a walk-on part (okay, a spin-on part) in the splash animation. Our hero ball and that mean old evil ball were the stars. The following game gives the leading role to the alien, although he does take a bit of a beating for it.

Bash the Alien! is the first game app I wrote in App Inventor. In fact, it's about everyone's first game because it is based on MoleMash on the AI tutorial site, which in turn came from an old arcade game called Whac-a-Mole™. We all just like bashing stuff in games, I suppose.

I elaborated it a bit (see the next screenshot). So, let's discuss it. Although the techniques are somewhat the same, the game itself is played totally differently. It also makes use of the clock timer in the game and hides the alien from time to time, and other little tricks to make it harder than it looks to play—which is precisely what a good game should do.

The design part of this type of game is minimal. We need a canvas ...