Thanks for checking out this simple text game I made for the class:
https://dl.dropboxusercontent.com/u/73173071/SaveYourself_WebBuild/SaveYourself_WebBuild.html
Good work! I like the descriptions the game gives of your surroundings, and the ‘Save Yourself!’ graphic at the top.
One thing I did notice though, is if you go South first, the text description makes it seem like you’ve already been North:[details=Slight spoiler]“You make it to another dead end with a vent. This time no one appears to be in the room it leads to.”[/details]
I think having a different description for if you go South first would improve the game.
You could do this by having a boolean value, like:
bool beenNorth = false;
which you could set to true when the player goes North.
Then, in the code for displaying the text for the South area, you can check the boolean and use the appropriate text:
if (beenNorth) {
text = “You make it…etc”
} else {
text = “You go South…etc”
}
Thanks for checking out the game and for your input!
I just changed the text to avoid the issue you noticed, but did use your suggestion to fix the problem I had with whether or not the person drank the water.
Before I had to create two different states based on whether or not that had happened. In the revised version I created a variable “drinkwater” which I set to false to start then true once the person drank the water. I also uploaded it in the WebGL format too. Here is the new link: https://dl.dropboxusercontent.com/u/73173071/SaveYourself_WebGL/index.html
Thanks again!
You’re welcome!
Ah, yep changing the text works as well
Sounds good, that’s a nice way of reducing the number of states you need for the game.
No worries!