Learning Java by Building Android Games: Learn Java and Android from Scratch by Building Six Exciting Games
Book information
Description
Android is one of the most popular mobile Operating systems presently. It uses the Java programming language. The problem is that most Android books assume the reader is already proficient with Java. This new and expanded second edition of Learning Java by Building Android Games shows you how to start building Android games from scratch. The ...;Cover; Copyright; Contributors; Table of Contents; Preface; Chapter 1: Java, Android and Game Development; What's new in the second edition?; Why Java, Android and Games?; Java: The first stumbling block; The games you will build; Sub' Hunter; Pong; Bullet Hell; Snake Clone; Scrolling Shooter; Open-World Platformer; How Java and Android work; Setting up Android Studio; Final step; Starting the first project: Sub' Hunter; Extra step 1; Extra step 2; Android Studio and our project -- A very brief guided tour; The Project panel; The Editor window Cover Copyright Contributors Table of Contents Preface Chapter 1: Java, Android and Game Development What's new in the second edition? Why Java, Android and Games? Java: The first stumbling block The games you will build Sub' Hunter Pong Bullet Hell Snake Clone Scrolling Shooter Open-World Platformer How Java and Android work Setting up Android Studio Final step Starting the first project: Sub' Hunter Extra step 1 Extra step 2 Android Studio and our project -- A very brief guided tour The Project panel The Editor window Locking the game to full-screen and landscape orientationDeploying the game so far Running the game on an Android emulator Running the game on a real device Summary Chapter 2: Java: First Contact Planning the Sub' Hunter game Actions flowchart/diagram Code comments Mapping out our code using comments Introduction to Java methods Overriding methods Structuring Sub' Hunter with methods Introduction to Object Oriented Programming Classes and Objects The important thing about OOP, Classes, and Objects Classes, objects, and instances Final word on OOP, Classes, and Objects -- for nowUsing Java packages Adding classes by importing packages Linking up our methods Summary Chapter 3: Variables, Operators and Expressions Handling syntax and jargon Java Variables Different types of variables Primitive types Reference variables How to use variables Declaring variables Initializing variables Making variables useful with operators Most used operators in this book Casting Concatenation Declaring and Initializing the Sub' Hunter Variables Planning the variables Declaring the variables Handling different screen sizes and resolutionsHandling different screen resolutions part 1: Initialising the variables Errors, warnings, and bugs Printing Debugging Information Testing the game Summary Chapter 4: Structuring Code with Java Methods Methods Methods revisited and explained further The method signature Modifier Return type A closer look at method names Parameters Doing things in the method body Method Overloading by Example Creating a new project Coding the method overloading mini-app Running the method overloading mini-app Scope: Methods and Variables Revisiting the code and methods we have used alreadyGenerating random numbers to deploy a sub The Random class and the nextInt method Adding Random based code to newGame Testing the game Summary Chapter 5: The Android Canvas Class -- Drawing to the Screen Understanding the Canvas class Getting started drawing with Bitmap, Canvas, and ImageView Canvas and Bitmap Paint ImageView and Activity Canvas, Bitmap, Paint and ImageView quick summary Using the Canvas class Preparing the objects of classes Initializing the objects Setting the Activity content Canvas Demo app
Similar books
Expert Python Programming
2016 · PDF
Expert Python Programming
2016 · EPUB
Expert Python Programming
2016 · MOBI
Swift 4 protocol-oriented programming: bring predictability, performance, and productivity to your Swift applications
2017 · PDF
Swift 4 Protocol-Oriented Programming: Bring predictability, performance, and productivity to your Swift applications
2017 · AZW3
Swift 4 protocol-oriented programming: bring predictability, performance, and productivity to your Swift applications
2017 · EPUB
Android application programming with OpenCV: build Android apps to capture, manipulate, and track objects in 2D and 3D
2013 · EPUB
Mastering Clojure data analysis: leverage the power and flexibility of Clojure through this practical guide to data analysis
2014 · EPUB