更新时间:2021-07-09 20:41:38
coverpage
Title Page
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
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
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
Adding Animation to Your Game
Adding animations to make your game more awesome
Making our player character
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
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
Adding an Explosion and Creating a UI
Adding an explosion to our game
Creating variables