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
부모 5452dfdfe0
커밋 b69e6cf731
5개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제

Binary file not shown.

After

Width:  |  Height:  |  크기: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  크기: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  크기: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  크기: 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)