Ants Resource System (14th Oct)
- Ben Nichols

- Oct 31, 2020
- 2 min read
I have put in the variable $NumberOfAnts into the twine project which keeps track of the ants number and makes it easier as I don’t have to keep track of the number of ants that there are in each scene.
The only issue with using a variable to track the number of ants is that because Twine is state based any changes made want actually happen until the next state. They way I countered this was to add in text that said this (Ants $NumberOfAnts (+20)) = e.g. (Ants 50 (+20)). Which I think combats the issue quite well. as game is still communicating to the player how many ants they have left.
After doing some more research into ant life and how they use their numbers to combat obstacles. The idea of variables for the number of ants was even more appealing. E.g. Saw a video that showed ants crossing a small stream by creating an ant bridge, this ties in perfectly with our game as it enables to do stuff like this
if ($NumberOfAnts >50){
Enable choice for player to cross the water
}
else{
choice isn’t available have to take a different option
}
These types of statements would really add to the game/strategy element of the story. Making the player more conscious of the number of ants they have and the importance of their decisions.
Using these types of statements I was able to make features such as timers and death instances were if the ants numbers fell below 1 then the player would lose the game.
Outside of this have learnt how to use the CSS story sheet to add images and to reference them into set scenes using tags. Using tags is extremely time saving, as I only have to add in the image once into the Story sheet and then to use it in scene just simply add that tag.
Overall by experimenting with the HTML and CSS statements I was able to relearn how these languages work and how easy it is to use them.



Comments