commit
This commit is contained in:
commit
50f95e5a2e
8 changed files with 47 additions and 0 deletions
5
README.md
Normal file
5
README.md
Normal 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
BIN
audio/onceuponatime.mp3
Normal file
Binary file not shown.
BIN
game/__pycache__/clear.cpython-312.pyc
Normal file
BIN
game/__pycache__/clear.cpython-312.pyc
Normal file
Binary file not shown.
BIN
game/__pycache__/legend.cpython-312.pyc
Normal file
BIN
game/__pycache__/legend.cpython-312.pyc
Normal file
Binary file not shown.
7
game/clear.py
Normal file
7
game/clear.py
Normal 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
31
game/legend.py
Normal 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
3
game/main.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import legend
|
||||||
|
|
||||||
|
legend.play_intro()
|
1
play.sh
Executable file
1
play.sh
Executable file
|
@ -0,0 +1 @@
|
||||||
|
python3 ./game/main.py
|
Loading…
Reference in a new issue