Added some menu buttons and icon support and window caption.

This commit is contained in:
Sakse Dalum 2012-08-07 16:16:07 +02:00
parent 5452dfdfe0
commit b69e6cf731
5 changed files with 4 additions and 0 deletions

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

View File

@ -70,6 +70,10 @@ if __name__ == '__main__':
print("Display width: %d, display height: %d, fullscreen: %s" print("Display width: %d, display height: %d, fullscreen: %s"
% (resolution[0], resolution[1], fullscreen)) % (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, window = pygame.display.set_mode(resolution,
pygame.FULLSCREEN if fullscreen else 0) pygame.FULLSCREEN if fullscreen else 0)