Phase II: New Enemy Movement

Objective: Enable the Enemies to move in a new way, either from side to side, circling, or coming into the playfield at an angle.

In today's article, I explain how I accomplished the current objective of creating a new method of movement for the enemies.

I decided to give the enemies a random chance of either going straight down, diagonal from left to right, or diagonal from right to left.

First, I created a private variable named movementTypeID.