mirror of
https://github.com/iruletheworldmo/strawberry.git
synced 2024-08-13 23:12:55 -05:00
64 lines
2.3 KiB
Python
64 lines
2.3 KiB
Python
|
import os
|
||
|
import time
|
||
|
|
||
|
YELLOW = '\033[93m'
|
||
|
BROWN = '\033[38;5;52m'
|
||
|
RESET = '\033[0m'
|
||
|
|
||
|
def sama_behind(sub_stage=0):
|
||
|
frame = [
|
||
|
" ",
|
||
|
" ",
|
||
|
" ",
|
||
|
" ",
|
||
|
f"{BROWN}~~~~~~~~~~~~~~~~{RESET}",
|
||
|
f"{BROWN}################{RESET}",
|
||
|
f"{BROWN}################{RESET}",
|
||
|
f"{BROWN}################{RESET}",
|
||
|
f"{BROWN}################{RESET}",
|
||
|
f"{BROWN}################{RESET}"
|
||
|
]
|
||
|
|
||
|
if sub_stage == 0:
|
||
|
frame[0] = f" {YELLOW} W {RESET} "
|
||
|
elif sub_stage == 1:
|
||
|
frame[0] = f" {YELLOW} | |{RESET} "
|
||
|
frame[1] = f" {YELLOW} W {RESET} "
|
||
|
elif sub_stage < 4:
|
||
|
frame[sub_stage - 2] = f" {YELLOW} q p{RESET} "
|
||
|
frame[sub_stage - 1] = f" {YELLOW} | |{RESET} "
|
||
|
frame[sub_stage] = f" {YELLOW} W {RESET} "
|
||
|
elif sub_stage == 4:
|
||
|
frame[2] = f" {YELLOW} q p{RESET} "
|
||
|
frame[3] = f" {YELLOW} | |{RESET} "
|
||
|
frame[4] = f"{BROWN}~~~~~~{YELLOW} W {BROWN}~~~~~~{RESET}"
|
||
|
elif sub_stage == 5:
|
||
|
frame[3] = f" {YELLOW} q p{RESET} "
|
||
|
frame[4] = f"{BROWN}~~~~~~{YELLOW} | |{BROWN}~~~~~~{RESET}"
|
||
|
frame[5] = f"{BROWN}######{YELLOW} W {BROWN}######{RESET}"
|
||
|
elif sub_stage == 6:
|
||
|
frame[4] = f"{BROWN}~~~~~~{YELLOW} q p{BROWN}~~~~~~{RESET}"
|
||
|
frame[5] = f"{BROWN}######{YELLOW} | |{BROWN}######{RESET}"
|
||
|
frame[6] = f"{BROWN}######{YELLOW} W {BROWN}######{RESET}"
|
||
|
elif sub_stage == 7:
|
||
|
frame[4] = f"{BROWN}~~~~~~ ~~~~~~{RESET}"
|
||
|
frame[5] = f"{BROWN}######{YELLOW} q p{BROWN}######{RESET}"
|
||
|
frame[6] = f"{BROWN}######{YELLOW} | |{BROWN}######{RESET}"
|
||
|
frame[7] = f"{BROWN}######{YELLOW} W {BROWN}######{RESET}"
|
||
|
|
||
|
return "\n".join(frame)
|
||
|
|
||
|
def insert_capital():
|
||
|
while True:
|
||
|
for i in range(8):
|
||
|
os.system('cls' if os.name == 'nt' else 'clear')
|
||
|
print(sama_behind(i))
|
||
|
time.sleep(0.5)
|
||
|
time.sleep(1)
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
try:
|
||
|
insert_capital()
|
||
|
except KeyboardInterrupt:
|
||
|
print("\nread: https://x.com/chinsuko_chan/status/1816022262442778871")
|