@SamuelZaniewski/

ZaniewZork

Python

Zork remake

fork
loading
Files
  • main.py
  • freegames

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.9083750116732372","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IGNvbG9yYW1hCmltcG9ydCBzeXMKZnJvbSBjb2xvcmFtYSBpbXBvcnQgRm9yZSwgU3R5bGUKCnByaW50KEZvcmUuQkxVRSArICJXZWxjb21lIHRvIFphbmlld1pvcmsgYnkgQ3luZGVyYm9vbSEiKQpwcmludChGb3JlLkJMVUUgKyAiXG5SZW1lbWJlciB0aGF0IHlvdXIgYWN0aW9ucyBkbyBoYXZlIGNvbnNlcXVlbmNlcyEiICsgRm9yZS5HUkVFTiArICJHb29kICIgKyBGb3JlLkJMVUUgKyAib3IgIiArIEZvcmUuUkVEICsgImJhZCAiICsgRm9yZS5CTFVFICsgInRoZXkgd2lsbCBjYXRjaCB1cCB0byB5b3UhIikKCnByaW50KCJcblxuRW50ZXIgMSB0byBCZWdpbiB0aGUgR2FtZSIpCnByaW50KCJcblxuRW50ZXIgMiB0byBFeGl0IHRoZSBHYW1lIikKCmRlZiBDb2xvclJlc2V0KCk6CglwcmludChGb3JlLkJMVUUpCgpkZWYgQmVnaW5HYW1lKCk6CglwcmludChGb3JlLldISVRFICsgIlxuXG5cbllvdSB3YWtlIHVwIGluIGFuIGFiYW5kb25kIGluc2FuZSBhc3lsdW0uIE5vIG9uZSBpcyBoZXJlIGJ1dCB0aGVyZSBpcyBhIGRpc3RpbmN0IHNtZWxsIG9mIGJsb29kLiIrIEZvcmUuQkxVRSkKCXByaW50KCJcbkVudGVyIDEgdG8gIiArIEZvcmUuR1JFRU4gKyAibG9vayBhcm91bmQiICsgRm9yZS5CTFVFKQoJcHJpbnQoIlxuRW50ZXIgMiB0byAiICsgRm9yZS5HUkVFTiArICJwaWNrIHRoZSBsb2NrIG9uIHRoZSBkb29yLiIrIEZvcmUuQkxVRSkKCXByaW50KCJcbkVudGVyIDMgdG8gIiArIEZvcmUuUkVEKyAiZ2V0IHVwIGFuZCBhdHRlbXB0IHRvIGJyZWFrIG91dCB0aGUgZG9vciIrIEZvcmUuQkxVRSkKCXByaW50KCJcbkVudGVyIDQgdG8gIiArIEZvcmUuV0hJVEUgKyAibG9vayBvdXQgdGhlIGJhciB3aW5kb3ciKyBGb3JlLkJMVUUpCglwcmludCgiXG5FbnRlciA1IHRvICIgKyBGb3JlLlJFRCArICJjYWxsIG91dCBhcm91bmQgeW91IisgRm9yZS5CTFVFKQoKCmExID0gaW50KGlucHV0KCkpCmlmIChhMSA9PSAxKToKCUJlZ2luR2FtZSgpOwppZiAoYTEgPT0gMik6CglzeXMuZXhpdCgp"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import colorama
import sys
from colorama import Fore, Style

print(Fore.BLUE + "Welcome to ZaniewZork by Cynderboom!")
print(Fore.BLUE + "\nRemember that your actions do have consequences!" + Fore.GREEN + "Good " + Fore.BLUE + "or " + Fore.RED + "bad " + Fore.BLUE + "they will catch up to you!")

print("\n\nEnter 1 to Begin the Game")
print("\n\nEnter 2 to Exit the Game")

def ColorReset():
	print(Fore.BLUE)

def BeginGame():
	print(Fore.WHITE + "\n\n\nYou wake up in an abandond insane asylum. No one is here but there is a distinct smell of blood."+ Fore.BLUE)
	print("\nEnter 1 to " + Fore.GREEN + "look around" + Fore.BLUE)
	print("\nEnter 2 to " + Fore.GREEN + "pick the lock on the door."+ Fore.BLUE)
	print("\nEnter 3 to " + Fore.RED+ "get up and attempt to break out the door"+ Fore.BLUE)
	print("\nEnter 4 to " + Fore.WHITE + "look out the bar window"+ Fore.BLUE)
	print("\nEnter 5 to " + Fore.RED + "call out around you"+ Fore.BLUE)


a1 = int(input())
if (a1 == 1):
	BeginGame();
if (a1 == 2):
	sys.exit()