2.2.4 Cycle 4 - First Level

Design:

Objectives

In the fourth cycle, my objectives are to implement the first level into the game. Completing the steps in this order should lay out a strong, progressive structure for my game. The level doesn't need to be too detailed at this point, graphics quality improvements can be adjusted later on.

Usability Features

Implementing my tropical-level design into the project. This will allow the user to become more engaged in the game as discussed in 1.5 Success Criteria.

Key Variables

Variable Name
Use

sprite("Bean")

Is used to render the bean in the level.

sprite("Sand")

Is used to render the sand blocks in the level.

sprite("Coin")

Is used to render the coins in the level.

sprite("Spike")

Is used to render the spikes in the level.

Pseudocode

The pseudocode for the new level generation is shown below:

Development:

Outcome

  • The player is now placed into a basic environment for the first level, the code for this can be viewed below:

This code generates the first level completely differently from the code beforehand. Instead of using simple blocks and rectangles, it now utilises variables for each block type (Sand blocks, spikes, coins).

Challenges

Some challenges I faced during this cycle:

  • Finding the correct blocks to create a tropical appearance.

Testing:

Tests performed in this cycle are evidenced below, they were a crucial aspect of my development.

Tests

Test
Instructions
What I expect
What actually happens
Pass/Fail

1

Run code.

The game to start, player placed into tropical environment for first level.

As expected

Pass

Evidence

The screenshot below shows the first level design with the tropical environment blocks, it completes the following tasks for this cycle:

Last updated