Added some menu buttons and icon support and window caption.
This commit is contained in:
parent
5452dfdfe0
commit
b69e6cf731
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
Binary file not shown.
After Width: | Height: | Size: 73 KiB |
|
@ -70,6 +70,10 @@ if __name__ == '__main__':
|
|||
print("Display width: %d, display height: %d, fullscreen: %s"
|
||||
% (resolution[0], resolution[1], fullscreen))
|
||||
|
||||
icon = os.path.abspath(os.path.join("resources", "graphics", "icon.png"))
|
||||
pygame.display.set_icon(pygame.image.load(icon))
|
||||
pygame.display.set_caption("ROBOTGAME")
|
||||
|
||||
window = pygame.display.set_mode(resolution,
|
||||
pygame.FULLSCREEN if fullscreen else 0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue