if event.type == pygame.QUIT: self.running = False #Game(players) if event.type == pygame.MOUSEBUTTONDOWN: mousex, mousey = pygame.mouse.get_pos() if width * 0.35 <= mousex and width * 0.60 >= mousex and height * 0.35 <= mousey and height * 0.433 >= mousey: print(len(PythonApplication19.players)) game = PythonApplication19.Game(players) game.Gameloop() elif width * 0.35 <= mousex and width * 0.60 >= mousex and height * 0.45 <= mousey and height * 0.533 >= mousey: termination.Gameloop() elif width - 100 <= mousex and width >= mousex and 15 <= mousey and 50 >= mousey: sett.loop() elif width * 0.35 <= mousex and width * 0.60 >= mousex and height * 0.55 <= mousey and height * 0.633 >= mousey: highscores1.introo() elif width * 0.35 <= mousex and width * 0.60 >= mousex and height * 0.65 <= mousey and height * 0.733 >= mousey: how.loop() pygame.display.flip() menu = start() termination = Terminate_screen.Termination() how = howtoplay.mainloop() highscores1 = PythonApplication25.hsscreen() sett = setting.Settings() menu.intro()
# -*- coding:utf-8 -*- ########################################################## # Rutap Bot 2019 Actvity Logging Module # # 모든 저작권은 팀 화공이 소유합니다. 모든 권리를 보유합니다. # # BSD 3-Clause License # ########################################################## import os, datetime, setting Setting = setting.Settings() now = datetime.datetime.now() def log_actvity(log_text): now = datetime.datetime.now() if os.path.isfile("log/%s" % (Setting.actvity_log_file)): f = open("log/%s" % (Setting.actvity_log_file), 'r') old_log_info = f.read() f.close() log_info = old_log_info + "\n%s / %s / %s | %s : %s | %s" % ( now.year, now.month, now.day, now.hour, now.second, log_text) f = open("log/%s" % (Setting.actvity_log_file), 'w') f.write(log_info) f.close() else: log_info = "%s / %s / %s | %s : %s | %s" % ( now.year, now.month, now.day, now.hour, now.second, log_text) f = open("log/%s" % (Setting.actvity_log_file), 'w') f.write(log_info) f.close()
# -*- coding:utf-8 -*- ########################################################## # Rutap Bot 2019 security Module # # Under The MIT License # ########################################################## import random, time, setting #import os #key = os.urandom(64) key = setting.Settings().security_key def encrypt(message): letter_map_message = [] ascii_msg_value = ''.join(str(ord(c)) for c in message) for c in message: ''.join(str(ord(c))) letter_map_message.append(ord(c)) ascii_key_value = ''.join(str(ord(x)) for x in str(key)) new_msg_encrypted = int(ascii_msg_value) * int(ascii_key_value) returned = (new_msg_encrypted, letter_map_message) return returned def decrypt(message, letter_map): ascii_key_value = ''.join(str(ord(x)) for x in str(key)) msg_ascii_divided = int(message) // int(ascii_key_value) letters = []