How To Build Dragon Realm Game With Python.
DRAGON REALM GAME
This is a very interesting game ,This involves the use of function and while loop and if ,else loops. This is very simple to built to built any game we only need know that how it works. For example in this game(dragon realm) we have two cave and we have to choose one out of two, But the interesting thing is that two cave have different dragons ,Both dragons have different behavior one is friendly and second is hungry. We have to choose one out of two cave, we also don't know the position of dragons. It is looking very interesting to play this game. So lets open the python interpreter and the code given below.
This is the code of the game dragon realm.
This code looks very simple it does not have any AI code.
It has very simple structure, The new thing is this that we have imported new python module called time, the use of this module is to stop the next line of for some time
For example: time.sleep(5) ,this will stop the next code for 5 seconds.
Comments
Post a Comment