My Experience Creating my First libGDX Game

Patrick Doyle
Jun 18 · 22 min read

Apex Pigeon — Arcade “Runner” Game

The Code Behind the Game

Screens

Game Screen / Gameplay

Bodies/Collisions/Box2D

Physics Body Editor Tool for “Level Two Bird
Initializing Level Two Bird using JSON Object
Level Two Bird Sprite Sheet

User Input / Controls

Input Processor (Keys)
Input Processor (Mouse)
Accelerometer Controls

Gameplay

Levels

Final Level Code Preview

Pigeon Speed

Dodgeables

Rendering Dodgeables

Spawning Dodgeables

Dodgeables Constructor Showing Groups of Dodgeables

High Scores / Networking:

High Score

Check if New High Score

Submitting Score to Leaderboard

HighScoresScreen and Retrieving High Scores from Leaderboard / Network

Call Appropriate Score Retrieval Method (Http or Database Request) Depending On Button Selected
Example Retrieval Method (Http GET Request) for Top Scores
Example of Parsing the Http Score Response

Originally Using Google Play Services for Leaderboard

Other Miscellaneous Challenges

Settings

HTML/GWT

GWT issues:

UFOs/Energy Beams/Energy Balls

UFOs Update Method

Other Stuff

Wrap Up

The Startup

Medium's largest active publication, followed by +481K people. Follow to join our community.

Patrick Doyle

Written by

https://github.com/patpatchpatrick

The Startup

Medium's largest active publication, followed by +481K people. Follow to join our community.