Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- GAME_TITLE = "MyApplication"
- VERSIONS = ['1.0', '1.1']
- AUTHOR = "MisterBasic"
- ICON = r'icon.ico'
- DESCRIPTION = "You are an explorer exploring the newly created wastes of the last nuclear bomb!"
- UPDATE_URL = ""
- def stop():
- pygame.quit()
- def main(version):
- pygame.init()
- pygame.font.init()
- pygame.display.set_caption(GAME_TITLE)
- screen = pygame.display.set_mode((800, 400))
- font = pygame.font.SysFont("Arial", 15)
- pygame.mouse.set_visible(False)
- while True:
- screen.fill((255, 255, 255))
- for event in pygame.event.get():
- if event.type == pygame.QUIT:
- pygame.quit()
- return
- screen.blit(font.render("You are running version: " + str(version), False, (0, 0, 0)), (0, 0))
- if 2 < pygame.mouse.get_pos()[0] < 798:
- pygame.draw.rect(screen, (0, 0, 0), [pygame.mouse.get_pos()[0]-5, pygame.mouse.get_pos()[1]-5, 10, 10])
- pygame.display.update()
Advertisement
Add Comment
Please, Sign In to add comment