This commit is contained in:
Conzer 2024-12-02 19:34:44 -05:00
commit 50f95e5a2e
8 changed files with 47 additions and 0 deletions

5
README.md Normal file
View file

@ -0,0 +1,5 @@
# UNDERTALE, but for the command line
Play a text-based-rpg adaption of UNDERTALE.
# Requirements
pygame
ffmpeg

BIN
audio/onceuponatime.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

7
game/clear.py Normal file
View file

@ -0,0 +1,7 @@
import os
def clear():
if os.name == 'nt':
os.system('cls')
else:
os.system('clear')

31
game/legend.py Normal file
View file

@ -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)

3
game/main.py Normal file
View file

@ -0,0 +1,3 @@
import legend
legend.play_intro()

1
play.sh Executable file
View file

@ -0,0 +1 @@
python3 ./game/main.py