Serious Game – Update #9

In the image below can be seen the inventory display for the first aid kit and an information panel in the top left corner of the screen. There are two item images being shown in the inventory display currently in a very messy fashion just to show what the system would look like upon completion. The information panel in the top left corner will show the symptoms of any victims the player is within range for them to then decide the correct course of treatment for the victim and treat accordingly.

In the image below is the code for how the information is stored and displayed. The large comment area is just notes on the symptoms and treatment for the condition for me to then figure out how to methodically code it into the game.

Below is the start of the code to randomly generate a scenario. There is a random integer generator which will generate an integer between 1 and 32, which will then be used in the switch statement to decide the situation. The (1, 33) would make you think it’ll generate between 1 and 33, but that is how it works for a float, not an int. For an int you have to make the second number higher than what you want as it is exclusive.

The comment is just the few situations I am planning on having completed for now as coding 32 situations in a day or less would be quite hard.

The image above is of the model I will be using for the victims. Originally I had a cartoonish model but I can no longer use that due to the file permissions screwing it up. I even tried reimporting the asset and it just broke. However, I can move the joints on this model to create different poses for the situations, and possibly colour the affected area differently, although I haven’t quite got that issue resolved.

And just so you know what I have to go through to fix the file permissions, have a look at the following images:

I have to do this for every file the permissions get messed up for. Which if I’ve imported an asset package whilst at uni, means there’s hundreds/thousands of files to change.