Business Tycoon v1.0
HUGE Shout out to @Viaticboss19, his Game Dev Simulator was my whole inspiration to this project.
Also a special shout out to @AneeshKotvali1 for helping me code this.
It would mean a lot to him if you checked out his profile, and some posts of his.
The objective of the game is straightforward. Make a successful business and make a lot of money.
As always, feedback is accepted. Don't forget to upvote, and comment!
▄ ▄ ▌▒█ ▄▀▒▌ ▌▒▒█ ▄▀▒▒▒▐ ▐▄█▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐ ▄▄▀▒▒▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
hey @YuvanVighnesh, if you look at lines 15-18, which says:
for char in thank_youMsg: sys.stdout.write(char) sys.stdout.flush() time.sleep(0.05)
you can define a function that does this to condense the code and use it over and over again:
def type(text): for char in text: time.sleep(0.05) print(char, end='') sys.stdout.flush() # The text is what you put into the function type(thank_youMsg) # Then you can use it in other instances as well! type("Hello world!")
This helps you use the function over and over again. If you want to explore it further, go to my reply that I coincidentally made as a tycoon: https://repl.it/@Muhammad_SJC/Chat#index.html
By the way, I did not give the link to my post because I don't want piggybank your success :)
I made a buisness game a while back https://repl.it/@MikeJMS8910/Factory-Simulator#main.py not as good as this though
@YuvanVighnesh for termcolor, it's super ez. i'll show you whyyy. you can make a function for colored text, so you dont have to waste your time on the color. For example, if i wanted to print green text, i could do,
print(colored("shut up, 'green')) now, we can make a function for that except making it easier and organized. we can do
def print2(x, color): print(colored(x, color) when we call
print2("gg yo", "green" it prints in green text. FUNCTIONS MAKE LIFE EASIERS!!! also, i have a post on colored text, if you wanna check that out. overall, I'D recommend termcolor because of the function happppppinessss.