O'Reilly logo

Haxe Game Development Essentials by Jeremy McCurdy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required