When making a game or simulation, there are bound to be bugs. Right now one of the bugs is that sometimes the timer won't work properly, and it will keep on going past 20 seconds when I specifically told it to reset at 20 seconds. Also the Total Farm Wealth variable sometimes doesn't properly add all the pigs value (the pigs value is determined by their weight, 5 dollars per pound). It sometimes only takes pigs 2 and 3 and adds their value to the Total Farm Wealth, and completely neglects Pigs 1. Also Pig 1 is glitched so sometimes it won't properly grow when clicked (which after 3 clicks makes it become resistant).
What I have decided to do to try to fix these problems is that I am reviewing the code that I got currently. This is in order to tweak the code so it's more efficient and allows me to try different ways to try to get the same result. Sometimes I just got to figure out if it's the code or the website. That is because sometimes the simulation doesn't work for the first time, but after I refresh the game and start it over, it works perfectly find the next couple of times.
I love this experience I am having because it gives me insight on how a programmer would think. They are given many different ideas, they have to break down what would work and wouldn't work, and then they got to initiate it and make the simulation. I love the different ideas I have to come up with when I run across a problem so I can fix it. I am currently making level 4 right now. I am thinking about making 20 or so levels which will make it around a 10 minute simulation (30 seconds per level).
Wednesday, April 13, 2016
Monday, April 4, 2016
A change of plans: 4/4/16
So what I am doing now changed from the human having an illness to making a game with pigs and antibiotics. How does this teach kids about antibiotic resistant bacteria? Well, this game has to do with clicking on pigs in order to make money. These are the instructions for the game: When a pig doesn't have a letter that means they are healthy, you will have the option to click on them to give them antibiotics or leave them as they are
When a pig shows S, that means they are sick. To help cure them, click on them to give them antibiotics to cure them
When a pig shows R, that means they have become resistant to the antibiotics you have given it
When a pig shows S and R, that means they have become sick AND resistant. The antibiotics you give it will no longer have an effect and the pig will die.
You get 20 seconds to complete each level, by then you either clicked on the pigs or you leave them be.
The normal temperature of a pig is 102.2 degrees, anything higher is considered a fever
When a pig shows S, that means they are sick. To help cure them, click on them to give them antibiotics to cure them
When a pig shows R, that means they have become resistant to the antibiotics you have given it
When a pig shows S and R, that means they have become sick AND resistant. The antibiotics you give it will no longer have an effect and the pig will die.
You get 20 seconds to complete each level, by then you either clicked on the pigs or you leave them be.
The normal temperature of a pig is 102.2 degrees, anything higher is considered a fever
I had it so that when they click on a healthy pig and give them an antibiotic, the pig will become fatter, which makes the player richer more quickly, but if they feed the pig too many antibiotics when it's not needed, the pig will become resistant. Once the resistant pig sick, it will be impossible for the player to cure the pig leading into it's death. I already made level one, working on level 2, going to make 10 levels in total.
Subscribe to:
Posts (Atom)