big-booty-judy/main.py

123 lines
3.1 KiB
Python
Raw Normal View History

2019-05-08 02:25:26 -07:00
#!/usr/bin/python3
import contextlib
2019-05-22 04:53:22 -07:00
with contextlib.redirect_stdout(None): # hide Pygame welcome message
2019-05-08 02:25:26 -07:00
2019-05-22 04:53:22 -07:00
import os
import sys
import pygame
2019-05-08 02:25:26 -07:00
2019-05-22 04:53:22 -07:00
def confirm_leave():
2019-05-08 02:25:26 -07:00
prompt = input("All progress will be lost, are you sure?: [y/N]: ")
if prompt == "n":
print("Staying in game")
elif prompt == "y":
2019-05-22 04:53:22 -07:00
main_menu()
2019-05-08 02:25:26 -07:00
else:
print("That is not an option")
2019-05-22 04:53:22 -07:00
def nav_bar():
2019-05-08 02:25:26 -07:00
print("""
============================
[m] - Main Menu
============================
""")
2019-05-22 04:53:22 -07:00
2019-05-08 02:25:26 -07:00
def clear():
2019-05-22 04:53:22 -07:00
os.system("clear") # Windows has no clear screen equivalent so use os.system
2019-05-08 02:25:26 -07:00
2019-05-22 04:53:22 -07:00
def lvl_one():
2019-05-08 02:25:26 -07:00
clear()
2019-05-22 04:53:22 -07:00
nav_bar()
2019-05-08 02:25:26 -07:00
while True:
print("""
Level 1 - Quest for big booty!
-----------
You find yourself lost in thought while shopping in a grocery store, when suddenly you
notice what appears to be a nice looking woman bending over. Your first instinct is to:
1) Get closer
2) Stand and stare
""")
prompt = input(">> ")
2019-07-22 19:26:37 -07:00
if prompt == "1":
print("You walk closer to the women but the closer you get, the farther she walks away from you.")
elif prompt == "m":
2019-05-22 04:53:22 -07:00
confirm_leave()
2019-05-08 02:25:26 -07:00
elif prompt == "q":
sys.exit(0)
else:
print("That key is not an option")
2019-05-22 04:53:22 -07:00
def main_menu():
2019-05-08 02:25:26 -07:00
clear()
pygame.init()
2019-07-22 19:26:37 -07:00
pygame.mixer.music.load("big-booty-judy-drums.ogg")
2019-05-08 02:25:26 -07:00
pygame.mixer.music.play(loops=-1, start=0.0)
2019-05-22 04:53:22 -07:00
while 1 == 1:
2019-05-08 02:25:26 -07:00
print("""
____ _ ____ __ _ __
/ __ )(_)___ _ / __ )____ ____ / /___ __ (_)_ ______/ /_ __
/ __ / / __ `/ / __ / __ \/ __ \/ __/ / / / / / / / / __ / / / /
/ /_/ / / /_/ / / /_/ / /_/ / /_/ / /_/ /_/ / / / /_/ / /_/ / /_/ /
/_____/_/\__, / /_____/\____/\____/\__/\__, / __/ /\__,_/\__,_/\__, /
/____/ /____/ /___/ /____/
,:~~~~:::::.~~~:::~====~====~+===:::::::
:::::::::::~::,,,::~==+++++++====~::::::
:::::::::~~===+=,,=++++?+?++++++=~~~::::
:,.::::====++++:,==+++????????+++====:::
:,,::====++++++,~=++???????????++++=~=::
,,,~===++++++++~==+?????????????++++==,,
,,:===++++++++=.=++???????????????+++=~:
,,~==+++++??++=.=++????IIIII??????+++==:
,~===+++????+++.=++????IIIII???????++==~
,~===+++????+++,~=+?+??IIIII???????+++==
.~~===++?????++~~=++???I?II??????++++===
,~~~==+++++???+=,=++???????????++++++===
:~~~~===++++?+?+.~==++????????+++++=====
::~~~~=====++++=~.~==++++++++++++======~
::::~~~~~====+==~:.~===+++++++======~~~~
::::::~~~~======~~:.:~=========~~~~~~~~:
::::::::~~~~~~~~~:::...,,::::~~~~~~~~:~~
:::::,,,::::::::::::,,,,,.,,,,:::::====~
::::::::,,,::::~=~~:,,,,,.,,,,:~~======~
::::::::::,,~~====~.,,,::,,:::,~~==++==~
::::::::::,.~~===~:::::::,,:::,:~===+==~
,:,,:::::::,~====~.::::::,::::::~==+===:
""")
print("(S)tart Game")
print("(Q)uit")
prompt = input(">> ")
if prompt == "s":
pygame.mixer.music.stop()
pygame.quit()
2019-05-22 04:53:22 -07:00
lvl_one()
2019-05-08 02:25:26 -07:00
elif prompt == "q":
pygame.quit()
sys.exit(0)
2019-05-22 04:53:22 -07:00
main_menu()