Created
October 22, 2023 12:05
-
-
Save coder-ralph/b1fa0b624caee480a79b4cc85f4fe437 to your computer and use it in GitHub Desktop.
Code of Horror game. The goal is to write the most horrifyingly complicated "Hello, World!" program you can imagine.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hacking into Crush's Heart! ππ΅οΈββοΈ using BASE64 | |
import base64 | |
import time | |
class LoadingScreen: | |
def show_loading(self, duration): | |
for _ in range(duration): | |
for char in "|/-\\": | |
print(f"\033[92mHACK KO NGA PUSO NI CRUSH... π΅οΈββοΈ {char}\033[0m", end="\r") | |
time.sleep(0.1) | |
print("\033[92mHALA CRUSH, HIHA-HACK KITA!π§ββοΈ AYAW MO KONG I-CRUSH BACK HA!\033[0m") | |
print("\n") # Add a line break | |
print("\033[92mHacking start now... \033[0m") | |
class HackKoPusoNiCrushGenerator: | |
def generate(self): | |
loading_screen = LoadingScreen() | |
loading_screen.show_loading(5) # Show loading animation for 5 seconds | |
# Base64 encoded message that, when decoded, will produce the desired output | |
encoded_message = "SGVsbG8sIFdvcmxkIQ==" | |
message = base64.b64decode(encoded_message).decode('utf-8') | |
for char in message: | |
print(f"Character '{char}' is being printed.") | |
time.sleep(0.2) # Add a delay to simulate the typing effect | |
# Add a space for separation | |
print("\n") | |
# Add effect text and separate the loading text into two lines | |
loading_message = "Hacking in Progress...π΅οΈββοΈ" | |
system_hacked_message = "Crush's heart successfully hacked!π You can start by saying..." | |
for char in loading_message: | |
print(f"\033[92m{char}\033[0m", end="", flush=True) | |
time.sleep(0.05) # Add a delay to create the loading effect | |
# Add a line break for separation | |
print("\n") | |
for char in system_hacked_message: | |
print(f"\033[92m{char}\033[0m", end="", flush=True) | |
time.sleep(0.05) # Add a delay to create the loading effect | |
# Add a final line break | |
print("\n") | |
# Print the final output: Hello, World!π | |
print(message + "π") | |
if __name__ == '__main__': | |
generator = HackKoPusoNiCrushGenerator() | |
generator.generate() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment