58
1 Wiring Up Getting started Setting up the Java development environment

Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

1 Wiring Up

Getting started

Setting up the Java development environment

Page 2: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Installing Eclipse

Setting up the Android development environment

Page 3: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Installing the ADT plugin and linking Android SDK with Eclipse

Page 4: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

The LibGDX Gradle combo

Using the Gradle setup application

Page 5: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

A Hello World project

Page 6: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Importing Gradle projects to Eclipse

Page 7: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Running the project

Page 8: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google
Page 9: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google
Page 10: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Exploring the project

Displaying Hello World

Running demos

Running tests

Page 11: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

The alternate LibGDX setup

Page 12: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

2 Let There be Graphics!

The Thrust Copter game

Page 13: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

A LibGDX app's life cycle

Creating the Thrust Copter project

Page 14: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

The Game Scene

Page 15: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Populating the game scene

Page 16: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Displaying the graphics

The final game scene

Page 17: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Adding the plane animation

Page 18: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Texture packing

Page 19: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google
Page 20: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Handling multiple screen sizes and aspect ratios

Page 21: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

3 Thou Shall Not Pass!

Piloting our plane

Navigating using touch input

Page 22: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Adding the different game states

Page 23: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google
Page 24: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Adding the pillar rocks

Collision with the pillars

Page 25: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Adding meteor rocks

Collision with the meteor rock

Page 26: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google
Page 27: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Making the game easier

Page 28: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

4 Bring in the extras!

Refactoring time

Creating a ThrustCopterScene class

Page 29: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Creating our Game class instance

Using AssetManager

Page 30: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Time for pickups

Using a pickup class

Adding pickup logic

Heads Up Display (HUD) UI

Page 31: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Displaying text

Hiero – the BitmapFont creator tool

Page 32: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google
Page 33: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Special effects with particles

Page 34: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google
Page 35: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

5 Scene 2 – The Menu

Introducing Scene2D

Adding a loading scene

Page 36: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Adding the menu scene

Page 37: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Creating scalable skins using 9-patch tool

Page 38: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

6 Physics with Box2D

LibGDX with Box2D

Page 39: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Creating a Box2D world

Drawing the Box2D world

Page 40: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Handling collisions

Page 41: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Collision for pickups

Page 42: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

7 The Amazing World of 3D

Introducing the third dimension

Creating 3D content

Page 43: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Playing with primitives

Rendering the ModelInstance classes

Page 44: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Loading 3D models

Playing animations

Interacting with 3D objects

Page 45: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

3D frustum culling in LibGDX

3D particles with Flame

Page 46: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google
Page 47: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Using bullet physics

Creating the bullet world

Adding shadows

Page 48: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

8 Saving Our Data

Implementing a local leaderboard

Filesystems and access permissions

Saving and displaying scores

Page 49: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Tile-based level design

Using Tiled

Page 50: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google
Page 51: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Loading TMX levels

Page 52: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

9 Finishing Our Android Game

Using Google's offerings

Implementing Google Analytics tracking

Page 53: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Adding Google Mobile Ads

Page 54: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Leaderboard and achievements using Google Play services

Linking BaseGameUtils

Wiring with code

Page 55: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

10 Time to Publish

Publishing the Android version

Preparing store listing

Page 56: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Publishing the iOS version

Testing the build on a device

Page 57: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Creating the IPA

Page 58: Wiring Up - static.packt-cdn.com · Adding the pillar rocks Collision with the pillars . Adding meteor rocks Collision with the meteor ... Using Google's offerings ... Adding Google

Some useful resources and links

Overlap2D