2.2.7 Cycle 7 - Add Boss Wave

Design

Objectives

In this cycle I aim to add another type of more difficult enemy, that moves faster and adds an extra challenge to the experience. This could be done through an enemy with more health, speed, smaller size etc.

This will add to the challenge of the game, and this will help to make it more challenging.

Usability Features

Key Variables

Variable Name
Use

specialEnemies

This is the group that hold each specialEnemy

specialEnemy

This is each individual sprite in the larger group

deployEnemyShips

This is the function that deploys the enemy ships (both special and normal)

specialEnemyXSpawn

This is the variable that defines the base places for the specialEnemies to spawn at

Pseudocode

Development

Outcome

Challenges

The most challenging part of this cycle was figuring out how to get it so that only the special ships would spawn whilst they were being deployed, and so that the normal enemy ships would stop for the duration of the special ships. I was trying to overcomplicate this to begin with, but I realised that I could just defer the function that calls new normal enemy ships by an amount of time so that it wouldn't be called, and this meant that the normal ships wouldn't spawn for the time that the special enemies were.

Testing

Evidence for testing

Tests

Test
Instructions
What I expect
What actually happens
Pass/Fail

1

Simply load the game

The basic enemies move down the screen both randomly and also in set patterns.

As expected

Pass

2

Survive long enough to get the special enemies

The special enemies spawn in, move faster and basic enemies aren't spawned for duration.

As expected

Pass

Evidence

Comparison of normal enemies and bosses

What next?

  • Next I want to add the ability to pick up health

  • This should enable the player to live for longer

Last updated