万本电子书0元读

万本电子书0元读

顶部广告

Learning Android Game Development电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Nikhil Malankar

出  版  社:Packt Publishing

出版时间:2017-05-26

字       数:19.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Learn the art of making Android games and turn your game development dreams into reality About This Book ? Leverage the latest features of Android N to create real-world 2D games ? Architect a 2D game from scratch and level up your Android game development skill ? Transition from developing simple 2D games to 3D games using basic Java code Who This Book Is For If you are a mobile developer who has basic Java programming knowledge, then this book is ideal for you. Previous Android development experience is not needed; however, basic mobile development knowledge is essential. What You Will Learn ? Understand the nuts and bolts of developing highly interactive and interesting games for Android N ? Link the interface to the code used in games through simple methods ? Interact with the images on the screen and also learn to animate them ? Set and save the game state and save high scores, hit points, and so on for your games ? Get a grasp of various collision techniques and implement the bounding box technique ? Convert your 2D games to 3D games using Android N ? Get an understanding of the process of UI creation using Android Studio In Detail In this book, we’ll start with installing Android studio and its components, and setting it up ready for Android N. We teach you how to take inputs from users, create images and interact with them, and work with sprites to create animations. You’ll then explore the various collision detection methods and use sprites to create an explosion. Moving on, you’ll go through the process of UI creation and see how to create buttons as well as display the score and other parameters on screen. By the end of the book, you will have a working example and an understanding of a 2D platform game like Super Mario and know how to convert your 2D games to 3D games. Style and approach This easy-to-understand guide follows a step-by-step approach to building games, and contains plenty of graphical examples for you to follow and grasp quickly, giving you the chance to implement the concepts practically.
目录展开

Title Page

Copyright

Credits

About the Author

About the Reviewer

www.PacktPub.com

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

Introduction to Android N and Installation of Android SDK

Introduction to Android N

Software requirements

The nuts and bolts of Android

Package names

Layouts

Android Manifest file

Summary

Getting Familiar with Android Studio

Understanding the Android project structure

Creating your first Android Studio project

Project Structure of an Android Project

Creating our Hello World! program

Setting up the emulator

Summary

Managing Inputs

Resource folder in detail

Taking user inputs

Button input

Hardware button input

Touch input

The Accelerometer input

Building and deploying through USB

Building an apk and installing on device

Summary

Creating Sprites and Interactive Objects

Game Theory

Illusions

Game loop

Game Design Document

Prototyping

Surface and Canvas

Working with colors and images

Creating colors

Creating images

Summary

Adding Animation to Your Game

Adding animations to make your game more awesome

Making our player character

Summary

Collision Detection and Basic Artificial Intelligence

Collision detection

Algorithms for collision detection techniques

Bounding Box Collision

Circle Collision

Detecting collisions in our game

Making our player jump

Dodging incoming rocks

Defining our variables

Tackling the infinite loop situation

Initializing our variables

Collision behavior

Collision function

Drawing our objects on the screen

Artificial Intelligence

History of Artificial Intelligence

Artificial Intelligence Algorithms

Breadth-First Search

Depth-First Search

Bidirectional search

Uniform cost search

Iterative deepening Depth-First Search

Comparison of preceding algorithms complexities

A * search

Creating your own Artificial Intelligence

Summary

Adding Boundaries and Using Sprites to Create Explosions

Adding boundaries

Creating the classes for our boundaries

Creating boundaries in our game

Creating the variables required

Referencing our boundaries

Updating our boundaries

Drawing our boundaries on the screen

Detecting a collision between the ground and player

Maximum and minimum boundary heights

Creating a new game

Creating explosions

Summary

Adding an Explosion and Creating a UI

Adding an explosion to our game

Creating variables

Some optimizations and improvements

Spawning our explosion

Drawing the explosion on the screen

Creating the UI for our game

Summary

Converting Your Game from 2D to 3D

Introduction to OpenGL ES

Learning about the 3D coordinate system

Creating a 3D scene with OpenGL ES

Creating our project folder

Creating a render class and defining a main activity

Defining shapes

Summary

Working Further on 3D Game

Rendering our object on screen

Adding colors to our object

Rotating our object

Creating a pyramid 3D object

Defining the shape

Rendering our 3D object

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部