Skip to content

Instantly share code, notes, and snippets.

@coder-ralph
Created October 22, 2023 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coder-ralph/b1fa0b624caee480a79b4cc85f4fe437 to your computer and use it in GitHub Desktop.
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.
# 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