Python ile ASCII FNaF yapmaya çalışıyorum ama çıktı verirken bir kısmını kesiyor.
Kod :
Kodun çıktısı :
ChatGPT'ye sordum klasik beceriksizliğini gösterdi aynı kodu vererek.
Kod :
Python:
import random
import time
from threading import Thread
#from keyboard import is_pressed
from colorama import Fore,Back
from os import system
dr1but = Back.RED
dr2but = Back.RED
battery = 100
showOffice = [0,34]
endCam = 0
rooms = ('Office','Toilet','Hall 1','Hall 2','Party Area','Kitchen','','','')
office = (
"****************************************************************************************************************",
"****************************************************************************************************************",
"****************************************************************************************************************",
"*******|||||| DOOR 1 ||||||****************************************************|||||| DOOR 2 ||||||*************",
"******* *************************************************** *************",
"******* *************************************************** *************",
"******* ************ <------- Monitor -------> ************ *************",
f"******* *********** Battery :{battery} *********** *************",
"******* *********** *********** *************",
"******* *********** *********** *************",
f"******* **|{dr1but}OOOO{Back.RESET}|*** *********** **|{dr2but}OOOO{Back.RESET}|*****",
f"******* **|{dr1but}OOOO{Back.RESET}|*** *********** **|{dr2but}OOOO{Back.RESET}|*****",
f"******* **|{dr1but}OOOO{Back.RESET}|*** *********** **|{dr2but}OOOO{Back.RESET}|*****",
"******* *********** *********** *************",
"******* *********** *********** *************",
"******* *********** *********** *************",
"******* *************************************************** *************",
"******* *************************************************** *************",
"******* *************************************************** *************",
"******* *************************************************** *************",
"******* *************************************************** *************",
"******* *************************************************** *************"
)
for printOffice in office:
print(printOffice[showOffice[0]:showOffice[1]])
Kodun çıktısı :
Kod:
**********************************
*******|||||| DOOR 1 ||||||*******
******* *******
******* *******
******* *******
******* *******
******* *******
******* *******
******* **|
a