Yep, thats right, among us.
This is a short playable story of among us. It has many differant paths and over 1,000 lines of code. It took me over 18 hours to complete. Upvote if you like it, comment why if you don't.
If you see any bugs, leave it in the comments.
Future content coming. Including...
- Kill/vent errors fixed
- New maps (Like the mars base and sky thing)
- More Paths (Mainly on the crewmate file)
- Randomized tasks (That one might take a while)
- Fix when you type something wrong it takes you to beginning (I've got a lot of comments about that)
Don't expect all of the future content above to come soon. High school makes you busier than you think...
If you want to see your name appear as a game, type...
[My repl username] would like to appear on Among Us by @FloCal35.
EDIT: Yes, we reached 100 upvotes and have been trending for over 14 days! I'm glad y'all enjoyed it :)
wait.py. Instead of doing
print("waiting", end="\r") print("waiting.", end="\r") print("waiting..", end="\r") print("waiting...", end="\r") print("\u200b" * 20, end="\r")
there's a better way to do the waiting text instead of copy+pasting and adding a . to the end, but I can't be bothered writing it. Nice project though!
Randomized Tasks(Thats gonna take A LONG time to code
Umm actually no it wont, if you do the following stuff:
import random <list name> = ["Task1","Task2","etc;"] for i in range(3): random.choice(<list name>)
Here is the code with actual variable names
import random listofTasks = ["Electrical", "Wires", "Cafeteria", "etc;"] for i in range(3):#num of tasks random.choice(listofTasks) boom
I don't recommend using
exec. It's not very safe with input.
Instead, do this:
import os #I have another file os.system("python file.py")
It automatically looks in the shell and knows there is a file named
Then it would execute it. And the string can not be stored in a variable while executing.
You could also use this in a login system, it like it hashes the password because you can't get it from a variable.
Other than that, great game!
I accidentally pressed the
enter key, and it just stopped the game. That is very annoying if you have gotten far then accidentally pressed something. I recommend putting choices in while true loop, after the user makes there choices, it continues to next loop.
while True: choice = input("Would you like to move back or forward?") if choice == "forward": print("forward") break elif choice == "back": print("back") break else: print("Not a option!") while True: #and so on..
Nice job! One thing I would look out for is the
exec command. It's not a good practice, and I think you would be better of using something like
You can run a file by just importing it by the way, nothing fancy needed to be done
#Pretend this is otherfile.py print("This is some text")
#Pretend this is main.py import otherfile
Output: This is some text
Wait a second ... are you actually connecting to servers? Like when you say "there are 7 people in the lobby", do you have actual 7 people, or are there just 1 person and 6 bots?
Also, another comment: When you play imposter, you always get the "connection closed abruptly" thing, so I'm wondering what's the code behind.
lmao also your "private mode" code shows that not real people are actually joining, you're just telling the user that people are there, but they aren't