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 12 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...
1. Randomized tasks (That one's going to take a LONG time to code)
2. Private mode (Ngl, it's just going to be online mode but less loading)
3. Fix when you type something wrong it takes you to beginning (I've got a lot of comments about that)
EDIT: Don't expect all of the future content above to come soon. High school makes you busier than you think
EDIT: If you want to see your name appear as a game (I am only taking a few), type...
[My repl username] would like to appear on Among Us by @FloCal35.
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
Wow thats very cheeky of you to add in only one way to win as the impostor i lost like 10 times i was so pissed i went in the code to find out theres only 1 way to win as impostor.Gdamn tho it has the same feel as the actual game so congrats on that