Tuesday, September 3, 2013

[Tut] How to perform AndEngine Examples of Nicolas Gramlich - AugmentedRealityExample (with camera)


andengineaugmentedrealityextension.jar has some problems when using it to implement this example on emulator, so you can use some files to replace the .jar file

Create the package org.anddev.andengine.extension.augmentedreality and create 2 files like this


Here is the code of BaseAugmentedRealityGameActivity class
package org.anddev.andengine.extension.augmentedreality;

import org.anddev.andengine.opengl.view.ComponentSizeChooser;
import org.anddev.andengine.opengl.view.RenderSurfaceView;
import org.anddev.andengine.ui.activity.BaseGameActivity;

import android.graphics.PixelFormat;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;

Posted By Live Blog6:49 PM

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


Here're some resources for this part:


Copy 4 pictures above to the folder assets/gfx

Create new class named AnimatedSpritesExample in the package org.anddev.andengine.examples of the AndEngineDemo project, here is the code of this class:
package org.anddev.andengine.examples;

import org.anddev.andengine.engine.Engine;
import org.anddev.andengine.engine.camera.Camera;
import org.anddev.andengine.engine.options.EngineOptions;
import org.anddev.andengine.engine.options.EngineOptions.ScreenOrientation;
import org.anddev.andengine.engine.options.resolutionpolicy.RatioResolutionPolicy;

Posted By Live Blog8:12 AM

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




Here're some resources for this part besides some in previous part (AnalogOnScreenControlExample):


Add andenginemultitouchextension.jar to libs folder of the project

Create new class named AnalogOnScreenControlsExample in the package org.anddev.andengine.examples of the AndEngineDemo project, here is the code of this class:

package org.anddev.andengine.examples;

import javax.microedition.khronos.opengles.GL10;
import org.anddev.andengine.engine.Engine;
import org.anddev.andengine.engine.camera.Camera;
import org.anddev.andengine.engine.camera.hud.controls.AnalogOnScreenControl;
import org.anddev.andengine.engine.camera.hud.controls.AnalogOnScreenControl.IAnalogOnScreenControlListener;

Posted By Live Blog1:20 AM

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 Live Blog10:18 PM

Sunday, September 1, 2013

Pro Android Web Game Apps - Using HTML5, CSS3 and JavaScript

Dive into game development and create great multiplayer online games with Pro Android Web Game Apps. This hands-on guide covers both the theory and practice of browser game development for the Android platform. You'll use cutting-edge technologies to make game engines in your browser, establish real-time server communication, and create amazing gaming experiences with artificial intelligence and rich media. Bring your knowledge of HTML and JavaScript to the next level with Pro Android Web Game Apps. You are guided through exciting projects that give you firsthand experience with core game app development concepts.


From IT eBooks

Publisher:Apress
By:Juriy Bura, Paul Coates

Download document here

Posted By Live Blog6:44 PM

Learning Android Game Programming - A Hands-On Guide to Building Your First Android Game

The book starts with an up-to-the-minute overview of today's Android mobile games marketplace, reviews each leading genre, and teaches you the foundational concepts of game development. You'll design a simple game, then master every step of game development with AndEngine—the powerful, open source, free game-development engine. Every chapter teaches with sample code you can actually use, including many examples drawn from the published game, Virgins Versus Vampires (V3).


From IT eBooks

Publisher:Addison-Wesley
By:Richard A. Rogers

Download document here

Posted By Live Blog6:39 PM

Android Arcade Game App - A Real World Project - Case Study Approach

Android Arcade Game App: A Real World Project - Case Study Approach is no different in that it walks you through creating an arcade style Prison Break game app-top to bottom - for an Android smartphone or tablet. This book teaches you the unique characteristics and challenges of creating an Arcade style game And it provides you with the full source code for this sample game app.

This book is for Android app developers with at least some experience, preferably with Android game apps.


From IT eBooks

Publisher:Apress
By:J. F. DiMarzio

Download document here

Posted By Live Blog6:32 PM

Android Apps for Absolute Beginners, 2nd Edition

Anybody can start building simple apps for the Android platform, and this book will show you how! Recently updated to include Android Jelly Bean, Android Apps for Absolute Beginners, 2nd Edition takes you through the process of getting your first Android apps up and running using plain English and practical examples.

This book cuts through the fog of jargon and mystery that surrounds Android apps development, and gives you simple, step-by-step instructions to get you started.


From IT eBooks

Publisher:Apress
By:Wallace Jackson
Download document here

Posted By Live Blog6:22 PM

Node.js for PHP Developers - Porting PHP to Node.js

If you're an experienced PHP developer, you already have a head start on learning how to write Node.js code. In this book, author Daniel Howard demonstrates the remarkable similarities between the two languages, and shows you how to port your entire PHP web application to Node.js. By comparing specific PHP features with their Node counterparts, you'll also discover how to refactor and improve existing PHP 4 or PHP 5 source code.

At the end, you'll have two fully functional codebases to provide to your users. You can update both of them simultaneously, using this book as a reference to important aspects of PHP and Node.js.



From IT eBooks

Publisher:O'Reilly Media
By:Daniel Howard
Download document here

Posted By Live Blog2:18 AM

Pro PHP Application Performance - Tuning PHP Web Projects for Maximum Performance

This book contains tips, tricks, and techniques to make new and existing PHP applications much faster and less resource-hungry.

Pro PHP Application Performance will help you understand all the technologies and components which play a role in how well your applications run. When seconds can mean the difference between retaining a user and losing a user, it's important for all of us to have optimization as part of our project roadmap. But what components within your application should you analyze? How should you optimize? And how can you measure how well your application is performing? These are some of the questions that are answered in this book.

Along the way you will also learn the "why" of optimizing. You’ll discover why you should optimize a specific component, why selecting one function over another is beneficial, and how to find and use the optimization tools available to the open source community. You’ll also learn how to deploy caching software as well as web server software.

From IT eBooks

Publisher:Apress
By:Armando Padilla , Tim Hawkins

Download document here

Posted By Live Blog2:07 AM

Choose an Android item