commit 50f95e5a2ec09c44f33c004cd5bc2109fe74a32b Author: Conzer Date: Mon Dec 2 19:34:44 2024 -0500 commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..f5dcabe --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# UNDERTALE, but for the command line +Play a text-based-rpg adaption of UNDERTALE. +# Requirements +pygame +ffmpeg \ No newline at end of file diff --git a/audio/onceuponatime.mp3 b/audio/onceuponatime.mp3 new file mode 100644 index 0000000..7e6ff25 Binary files /dev/null and b/audio/onceuponatime.mp3 differ diff --git a/game/__pycache__/clear.cpython-312.pyc b/game/__pycache__/clear.cpython-312.pyc new file mode 100644 index 0000000..8d95415 Binary files /dev/null and b/game/__pycache__/clear.cpython-312.pyc differ diff --git a/game/__pycache__/legend.cpython-312.pyc b/game/__pycache__/legend.cpython-312.pyc new file mode 100644 index 0000000..97f546e Binary files /dev/null and b/game/__pycache__/legend.cpython-312.pyc differ diff --git a/game/clear.py b/game/clear.py new file mode 100644 index 0000000..fcb4fbf --- /dev/null +++ b/game/clear.py @@ -0,0 +1,7 @@ +import os + +def clear(): + if os.name == 'nt': + os.system('cls') + else: + os.system('clear') \ No newline at end of file diff --git a/game/legend.py b/game/legend.py new file mode 100644 index 0000000..285c566 --- /dev/null +++ b/game/legend.py @@ -0,0 +1,31 @@ +import threading +import clear +from time import sleep +from os import system +import pygame + +pygame.mixer.init() + +pygame.mixer.music.load("./audio/onceuponatime.mp3") +pygame.mixer.music.play() + +def play_intro(): + print("Long ago, two races ruled over Earth:") + print("HUMANS and MONSTERS.") + sleep(6) + print("One day, war broke out between the two races.") + sleep(6) + print("After a long battle, the humans were victorious.") + sleep(6) + print("They sealed the monsters underground with a magic spell.") + sleep(6) + print("Many years later...") + sleep(6) + clear.clear() + print("MT. EBOTT") + sleep(0.2) + print("201X") + sleep(6) + print("Legends say that those who climb the mountain never return...") + sleep(50) + diff --git a/game/main.py b/game/main.py new file mode 100644 index 0000000..6c174d3 --- /dev/null +++ b/game/main.py @@ -0,0 +1,3 @@ +import legend + +legend.play_intro() \ No newline at end of file diff --git a/play.sh b/play.sh new file mode 100755 index 0000000..145e3db --- /dev/null +++ b/play.sh @@ -0,0 +1 @@ +python3 ./game/main.py \ No newline at end of file