This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Adapted from https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-commandlinetoargvw#examples | |
| #include <windows.h> | |
| #include <stdio.h> | |
| #include <shellapi.h> | |
| int __cdecl main(int argc, char* argv[]) | |
| { | |
| LPWSTR* szArglist; | |
| int nArgs; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pygame | |
| pygame.init() #Start Pygame | |
| screen = pygame.display.set_mode((640,480)) #Start the screen | |
| running = True | |
| while running: | |
| for event in pygame.event.get(): | |
| if event.type == pygame.QUIT: #The user closed the window! | |
| running = False #Stop running |