added less than 3 letter names
This commit is contained in:
parent
af13bc47be
commit
85881f3851
@ -134,6 +134,9 @@ def enterName():
|
||||
if event.type == KEYDOWN:
|
||||
if event.key == pygame.K_BACKSPACE:
|
||||
name = name[:-1]
|
||||
elif event.key == pygame.K_RETURN:
|
||||
clearScreen()
|
||||
return name
|
||||
else:
|
||||
name += event.unicode
|
||||
elif event.key == pygame.K_BACKSPACE:
|
||||
|
Loading…
Reference in New Issue
Block a user