top of page

Updating and finishing Ants game (24th)

  • Writer: Ben Nichols
    Ben Nichols
  • Nov 2, 2020
  • 2 min read

Throughout the following week we have been working on finishing our Ants game. My main task was to finish off the storyline for the game and to make sure that all that choices worked properly. Whilst doing this I found out that if I set the Ants value before I display it that the game would update the value in that current state instead of having waiting for it to change in the next state e.g. Say in a decision you lose 20 Ants instead of doing this:

(Ants $NumberOfAnts)

(Set: $NumberOfAnts to $NumberOfAnts -20)

Which would change the value of $NumberOfAnts after already displaying it meaning that the value would only change in the next scene instead of the current one. Knowing this I change the value around.

(Set: $NumberOfAnts to $NumberOfAnts -20)

(Ants $NumberOfAnts)

This way the value would change before being displayed meaning that it would update in the current scene. Even though this was a small change it made a big difference in the game with the Ants number being updated at the right time allowing me to add in further ‘if’ statements into the appropriate scenes and making the overall flow of the game smoother.

The only offer thing we had to do was add in all the images and to make sure that they cropped well in each scene.

(Art Work by Amalie Braendvik https://amaliehelen.wordpress.com/ )

Story changes:

Throughout the week our idea of the story was simple, to give the player a tone of choices and to make it so that all choices would be important and affect the story further down the line. Was also making sure that the $NumberOfAnts value was the main driving force behind each choice and when adding in the three endings made sure that the endings were based upon this value.

 
 
 

Comments


bottom of page