Book Image

Processing 2: Creative Coding Hotshot

By : Nikolaus Gradwohl
Book Image

Processing 2: Creative Coding Hotshot

By: Nikolaus Gradwohl

Overview of this book

Processing makes it convenient for developers, artists, and designers to create their own projects easily and efficiently. Processing offers you a platform for expressing your ideas and engaging audiences in new ways. This book teaches you everything you need to know to explore new frontiers in animation and interactivity with the help of Processing."Processing 2: Creative Coding Hotshot' will present you with nine exciting projects that will take you beyond the basics and show you how you can make your programs see, hear, and even feel! With these projects, you will also learn how to build your own hardware controllers and integrate devices such as a Kinect senor board in your Processing sketches.Processing is an exciting programming environment for programmers and visual artists alike that makes it easier to create interactive programs.Through nine complete projects, "Processing 2: Creative Coding Hotshot' will help you explore the exciting possibilities that this open source language provides. The topics we will cover range from creating robot - actors performing Shakespeare's "Romeo and Juliet", to generating objects for 3D printing, and you will learn how to run your processing sketches nearly anywhere from a desktop computer to a browser or a mobile device.
Table of Contents (16 chapters)
Processing 2: Creative Coding Hotshot
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Running the game on an Android phone


Our final task of this mission is to make our moon-lander game run on Android devices. We will install the Android SDK and use the Android mode of Processing to turn our game into an Android app. We will use the Android emulator and make the sketch run on devices connected via USB. Since most Android devices come without a keyboard but do have a touch screen, we will adapt our game controls and then run in full-screen mode.

Engage Thrusters

Let's convert the game to an Android app:

  1. Go to http://developer.android.com/sdk/index.html and download the Android SDK for your computer. We don't need the bundled version that comes with Eclipse. Since we already have an IDE (Processing), we need to scroll down to the SDK Tools Only section and download the SDK package for our operating system.

  2. Unpack the downloaded file and run the Android command from the tools folder.

  3. Processing creates apps that run on Android starting with Version 2.3.3, since this was the first...