From 8e2e08c0764af9380e03be52e5aacabb8ff58ed0 Mon Sep 17 00:00:00 2001 From: Roberto-04-dev Date: Sat, 30 Jan 2021 19:50:45 -0100 Subject: [PATCH] Coding the sounds mecanic. --- data/menus/createUser/__init__.py | 2 +- data/menus/delete/__init__.py | 1 - data/textInput/__init__.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/data/menus/createUser/__init__.py b/data/menus/createUser/__init__.py index 2ddd7b6..8818836 100644 --- a/data/menus/createUser/__init__.py +++ b/data/menus/createUser/__init__.py @@ -134,7 +134,7 @@ def createUserEvolutionData(self): os.chdir('users/'+self.user) file = open('data.txt', 'w') # nivel | Position_x| Position_y |Initial Life|enimy Killed|green fire|Blue Fire - file.write(str(0)+' '+str(500)+' '+str(120)+' '+str(218)+' '+str(0)+' '+str(0)+' '+str(0)+' True True') + file.write(str(0)+' '+str(500)+' '+str(120)+' '+str(218)+' '+str(0)+' '+str(0)+' '+str(0)) file.close() os.chdir('../..') diff --git a/data/menus/delete/__init__.py b/data/menus/delete/__init__.py index fbd8853..02cd444 100644 --- a/data/menus/delete/__init__.py +++ b/data/menus/delete/__init__.py @@ -63,7 +63,6 @@ def movingInDeleteMenu(self, user): if((pressed_keys[K_RETURN])and(self.menuControl==200)and(self.count >= 5)): - print("ok") self.count = 0 os.chdir('users') shutil.rmtree(user) diff --git a/data/textInput/__init__.py b/data/textInput/__init__.py index a7cc8d5..4ff1ffc 100644 --- a/data/textInput/__init__.py +++ b/data/textInput/__init__.py @@ -19,7 +19,7 @@ def __init__(self): def settingInputText(self, screen): # Pega todos os eventos de escrita do teclado key = pygame.key.get_pressed() - if(key[K_RETURN]and(self.count>=3)): + if key[K_RETURN]: self.count = 0 text = self.text self.text = ''