Android Game Recipes A Problem Solution Approach 1st Edition by Jerome Dimarzio – Ebook PDF Instant Download/Delivery: 1430257644, 9781430257646
Full download Android Game Recipes A Problem Solution Approach 1st Edition after payment
Product details:
ISBN 10: 1430257644
ISBN 13: 9781430257646
Author: Jerome Dimarzio
Android game apps are typically the most popular type of Android apps in the various Google Play, Amazon Appstore and other Android app stores. So, beyond the Android game tutorials out there, what about a day-to-day handy and complete code reference for Android game developers? Android Game Recipes is your first, reliable game coding reference for today’s Android game apps. This book provides easy to follow real world game code problems and solutions, including source code. This book covers code recipe solutions that are common to 2D game development problems such as designing a game menu, collision detection, moving characters, moving backgrounds and more. This book also includes how to work with player input, how to add multiple levels, how to create game graphics for different screen resolution, and how to work with device sensors. After reading and using this book, you’ll have the templated code snippets, solutions and frameworks to apply to your game app design to build your game, customize it, and then sell it on the Android app stores.
Table of contents:
Chapter 1: Getting Started
What You Will Need
Skills and Experience
Software Versions
OpenGL ES at a Glance
How OpenGL ES Works with Android
Fixed-Function Pipelines
Shaders
Vertex Shaders
Fragment Shaders
How Games Work
A Basic Game Loop
Android and Game Engines
Summary
Chapter 2: Loading an Image
2.1 Loading an Image Using Core Android Methods
Problem
Solution
How It Works
Storing Images in Android
Loading and Displaying Images
2.2 Loading an Image Using OpenGL ES
Problem 1
Solution 1
How It Works
Create Vertices and Textures
Create Buffers
Create the Constructor
Create the loadTexture() Method
Create the draw() Method
Create the Renderer
The onSurfaceCreated() Method
The onSurfacedChanged() Method
The onDrawFrame() Method
Create the GLSurfaceView
Problem 2
Solution 2
How It Works
2.3 Storing Images for Different Screen Resolutions
Problem
Solution
How It Works
Chapter 3: The Splash Screen
3.1 Creating a Splash Screen
Problem
Solution
How It Works
Create the Layout
Create a New Activity
Create a postDelayed() Handler()
3.2 Loading Multiple Images During a Splash Screen
Problem
Solution
How It Works
3.3 Fading In to and Out of a Splash Screen
Problem
Solution
How It Works
Chapter 4: The Menu Screen
4.1 Create a Two-Button Menu Screen
Problem
Solution
How It Works
4.2 Wire Menu Buttons
Problem
Solution
How It Works
4.3 Launch a Game Thread
Problem
Solution
How It Works
4.4 Exit a Game Thread Cleanly
Problem
Solution
How It Works
4.5 Swap Menu Button Images
Problem
Solution
How It Works
4.6 Lock the Screen Orientation
Problem
Solution
How It Works
Chapter 5: Reading Player Input
5.1 Detect a Screen Touch
Problem
Solution
How It Works
5.2 Detect a Screen Multi-touch
Problem
Solution
How It Works
5.3 Divide the Screen into Touch Zones
Problem
Solution
How It Works
5.4 Detect a Screen Swipe
Problem
Solution
How It Works
5.5 Use the Device Accelerometer
Problem
Solution
How It Works
Chapter 6: Loading a SpriteSheet
6.1 Use a Sprite Sheet
Problem
Solution
How It Works
6.2 Access Images in the Sprite Sheet
Problem
Solution
How It Works
6.3 Change Sprite Sheet Frames
Problem
Solution
How It Works
6.4 Animate Images from a Sprite Sheet
Problem
Solution
How It Works
Chapter 7: Scrolling a Background
7.1 Load the Background Image
Problem
Solution
How It Works
7.2 Scroll the Background Horizontally
Problem
Solution
How It Works
7.3 Scroll the Background Vertically
Problem
Solution
How It Works
Chapter 8: Scrolling Multiple Backgrounds
8.1 Load Two Background Images
Problem
Solution
How It Works
8.2 Scroll Two Background Images
Problem
Solution
How It Works
8.3 Scroll Two Background Images at Different Speeds
Problem
Solution
How It Works
Chapter 9: Syncing the Background to Character Movement
9.1 Scroll the Background in Two Directions
Problem
Solution
How It Works
9.2 Move the Background in Response to User Input
Problem
Solution
How It Works
Chapter 10: Building a Level Using Tiles
10.1 Load Tiles from a Sprite Sheet
Problem
Solution
How It Works
The SBGTile() Class
The SBGTextures() Class
Create a Level Map
10.2 Create a Level from Tiles
Problem
Solution
How It Works
Chapter 11: Moving a Character
11.1 Move a Character in Four Directions
Problem
Solution
How It Works
11.2 Move a Character at Different Speeds
Problem
Solution
How It Works
11.3 Animate a Character When It Moves
Problem
Solution
How It Works
Chapter 12: Moving an Enemy
12.1 Load Enemies to Predetermined Locations
Problem
Solution
How It Works
12.2 Load Enemies to Random Locations
Problem
Solution
How It Works
12.3 Move Enemies Along a Path
Problem
Solution
How It Works
Chapter 13: Moving a Character with Obstacles
13.1 Jump Between Platforms
Problem
Solution
How It Works
13.2 Move up Steps
Problem
Solution
How It Works
Chapter 14: Firing Weapons
14.1 Wire a “Fire” Button
Problem
Solution
How It Works
Solution 1
Solution 2
14.2 Animate a Missile
Problem
Solution
How It Works
14.3 Animate a Thrown Weapon
Problem
Solution
How It Works
Summary
Chapter 15: Collision Detection
15.1 Detect Obstacles
Problem
Solution
How It Works
15.2 Detect Collisions Between Multiple Moving Objects
Problem
Solution
How It Works
15.3 Change Object Trajectory
Problem
Solution
How It Works
15.4 Damage Objects upon Collision and Remove Destroyed Objects
Problem
Solution
How It Works
Chapter 16: Keeping Score
16.1 Assign Point Values to Objects
Problem
Solution
How It Works
16.2 Add and Track the Score
Problem
Solution
How It Works
16.3 Write the Score to the Screen
Problem
Solution
How It Works
Chapter 17: Keeping Time
17.1 Track Time Within the Game
Problem
Solution
How It Works
17.2 Stop the Action When the Time Expires
Problem
Solution
How It Works
17.3 Stop the Timer When a Task Completes
Problem
Solution
How It Works
People also search:
android cooking games
android restaurant games
android resource management games
android game review
problem-solving mobile games
Tags: Jerome Dimarzio, Android, Recipes, Problem