- Location
- Manchester
Hi guys, so i cannot find a tutorial on this site or from any other sources and i dont really have the time to learn alot of javascript so i was wondering if anyone was able to help me.
So i want to create a text game/simulator just for personal use, its hard to explain but it will be a screen that will have a counter (e.g. Humans: 100), so it is like a virtual world, overtime the number of humans will slowly increase but diseases can be created randomly which will select a random number of humans to kill and also every minute food will be found and lost, again a random number will be selected to decide what the variable will equal to, i think this code may be right, im a newbie and am trying to teach myself but this may work
var human = 200
var food = 100
if(food < human)
then some code which will reduce the amount of humans every minute etc.
But anyway i hope you get the idea and can help me, basically just a simulator of the world which is completely text base and i am able to add code that will change the world (basically playing god) such as
var disease =1
if(disease >0 -1 human) I dont know but maybe you know the correct code to use Thanks
This is what im trying to work on http://imgur.com/a/j4gcC
So i want to create a text game/simulator just for personal use, its hard to explain but it will be a screen that will have a counter (e.g. Humans: 100), so it is like a virtual world, overtime the number of humans will slowly increase but diseases can be created randomly which will select a random number of humans to kill and also every minute food will be found and lost, again a random number will be selected to decide what the variable will equal to, i think this code may be right, im a newbie and am trying to teach myself but this may work
var human = 200
var food = 100
if(food < human)
then some code which will reduce the amount of humans every minute etc.
But anyway i hope you get the idea and can help me, basically just a simulator of the world which is completely text base and i am able to add code that will change the world (basically playing god) such as
var disease =1
if(disease >0 -1 human) I dont know but maybe you know the correct code to use Thanks
This is what im trying to work on http://imgur.com/a/j4gcC