renamed 2 functions, their names were swapped. inserted the metallic logo
This commit is contained in:
parent
f617226879
commit
97bbaba5ba
@ -527,8 +527,6 @@ def enter_name():
|
||||
# Caution: this includes all sorts of weird letters, control sequences, and other unprintable chars.
|
||||
else:
|
||||
name += event.unicode
|
||||
# none of the following may be needed
|
||||
# TODO: Testing
|
||||
# if someone presses the erase key, erase 1 letter
|
||||
elif event.key == pygame.K_BACKSPACE:
|
||||
name = name[:-1]
|
||||
@ -582,14 +580,14 @@ def check_highscores(time):
|
||||
return False
|
||||
|
||||
def draw_border():
|
||||
"""draw logos"""
|
||||
screen.blit(img_itlablogo_image, (screen_size_x-img_itlablogo_imagex-20, screen_size_y-img_itlablogo_imagey-20))
|
||||
# TODO: Metallic Logo
|
||||
|
||||
def draw_logos():
|
||||
"""draw rectangle border around everything"""
|
||||
pygame.draw.rect(screen, pygame_color_black, (500, 200, (screen_size_x-500*2), (screen_size_y-200*2)), 5)
|
||||
|
||||
def draw_logos():
|
||||
"""draw logos"""
|
||||
screen.blit(img_itlablogo_image, (screen_size_x-img_itlablogo_imagex-20, screen_size_y-img_itlablogo_imagey-20))
|
||||
screen.blit(img_metalliclogo_image, (20, screen_size_y-img_metalliclogo_imagey-20))
|
||||
|
||||
def show_debug():
|
||||
"""show debug information"""
|
||||
print('#############')
|
||||
@ -632,11 +630,10 @@ img_itlablogo_image = pygame.image.load(img_itlablogo)
|
||||
img_itlablogo_imagex = get_image_width(img_itlablogo)
|
||||
img_itlablogo_imagey = get_image_height(img_itlablogo)
|
||||
|
||||
# TODO: Metallic Logo einfügen
|
||||
#img_metalliclogo = 'img/metalliclogo.png'
|
||||
#img_metalliclogo_image = pygame.image.load(img_metalliclogo)
|
||||
#img_metalliclogo_imagex = get_image_width(img_metalliclogo)
|
||||
#img_metalliclogo_imagey = get_image_height(img_metalliclogo)
|
||||
img_metalliclogo = 'img/metalliclogo.png'
|
||||
img_metalliclogo_image = pygame.image.load(img_metalliclogo)
|
||||
img_metalliclogo_imagex = get_image_width(img_metalliclogo)
|
||||
img_metalliclogo_imagey = get_image_height(img_metalliclogo)
|
||||
|
||||
# initialise led strip
|
||||
led_init()
|
||||
|
BIN
img/metalliclogo.png
Normal file
BIN
img/metalliclogo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Loading…
Reference in New Issue
Block a user