Chapter 4. Delving into Animations and Gameplay

In this chapter, we're going to finish off our core game functionality. We will add our walrus player character, make it shoot, and implement the health system. Along with this, we will make the experience truly engaging by adding explosion and muzzle flash effects. We'll also make sure that our game continues to perform well by pooling game elements that we'll be using over and over.

Here's a rundown of the sections in this chapter:

  • Object pooling
  • Project updates
  • Creating the explosion effects
  • Making muzzle flashes
  • Updating enemies
  • Creating projectiles
  • Making the player character
  • Setting health on an HUD
  • Adding everything to PlayState

Object pooling

Before we dive into the project, it's important to discuss ...

Get Haxe Game Development Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.