Showing posts with label AnalogOnScreenControlExample. Show all posts
Showing posts with label AnalogOnScreenControlExample. Show all posts

Monday, September 2, 2013

[Tut] How to perform AndEngine Examples of Nicolas Gramlich - AnalogOnScreenControlExample


Here're some resources for this part:

andengine.jar
face_box.png
onscreen_control_base.png
onscreen_control_knob.png

Create a new android application project named AndEngineDemo
Add andengine.jar to libs folder of the project

Create the folder named gfx under the folder assets, and copy 3 pictures above face_box.pngonscreen_control_base.pngonscreen_control_knob.png to this folder

Create the package: org.anddev.andengine.examples in the src folder of the project

Create a new class named BaseExample in the above package, here is the code of this class:

package org.anddev.andengine.examples;

import org.anddev.andengine.ui.activity.BaseGameActivity;

import android.view.Menu;
import android.view.MenuItem;

/**
 * (c) 2010 Nicolas Gramlich 
 * (c) 2011 Zynga Inc.
 * 

Posted By Dev Bananaer10:18 PM

Choose an Android item