App Inventor
App Inventor
App Inventor
Concept or Skill Focus: Gain experience with designing, programming, testing, and debugging apps
Goal: To gain a basic understanding of how to use MIT App Inventor to create mobile apps
Objectives/Outcomes:
• Navigate the App Inventor environment: designer, blocks editor, emulator and/or physical
phone
• Correctly use the following App Inventor components: accelerometer sensor, button, player
• Correctly use the following App Inventor concepts: making and using a list, responding to an
event
Materials
• Computers with web browser (tested with Firefox and Chrome)
• Google Account
• Android Tablets and/or Android Phones with MIT AI2 Companion app (can be found on
Google Play Store), or downloaded emulator http://appinventor.mit.edu/explore/ai2/setup-
emulator.html if tablets/phones are not available
1
App Option 2
PaintPot
This tutorial introduces the Canvas component for creating simple two-dimensional graphics. You'll
build an app that lets you draw on the phone screen in different colors.
With the PaintPot app, you can:
• Dip your finger into a virtual paint pot to
draw in that color.
• Drag your finger along the screen to draw a
line.
• Tap the screen to make dots.
• Use the button at the bottom to wipe the
screen clean.
• Include an image as a drawing background.
2
App Option 3
Space Invaders
What You're Building
By building the Space Invaders App you will get practice with using Clock components and Timers,
using Animation components such as Image Sprites and the Canvas, setting visibility, and detecting
collisions in App Inventor. You'll program an application that has a shooter ship whose goal is to
shoot all the flying saucers on the screen.
Getting Started
Connect to the App Inventor web site and start a new project. Name it SpaceInvaders, and also set
the screen's Title to "SpaceInvaders". Connect to a device or emulator.
Introduction
This tutorial introduces the following skills,
useful for future game development:
• Using the Clock component
• Using Clock.Timer to move sprites
• Using Sprite.Flung to move a sprite
• Using collision detection
• Setting visibility of sprites