Skip to content

Commit

Permalink
Coding the sounds mecanic.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertocarlosmedina committed Jan 30, 2021
1 parent 932f9be commit 8e2e08c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/menus/createUser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('../..')

Expand Down
1 change: 0 additions & 1 deletion data/menus/delete/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion data/textInput/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 8e2e08c

Please sign in to comment.