Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- import time
- import random
- pygame.init()
- (width, height) = (1366, 768)
- black = (0, 0, 0)
- white = (225, 225, 225)
- red = (225, 0, 0)
- background_color = white
- screen = pygame.display.set_mode((width, height))
- pygame.display.set_caption('Battle of the Forgotten Friend')
- screen.fill(background_color)
- clock = pygame.time.Clock()
- titlescreen = pygame.image.load('titlescreen.png')
- def text_objects(text, font):
- textSurface = font.render(text, True, black)
- return textSurface, textSurface.get_rect()
- def game_intro():
- intro = True
- while intro:
- for event in pygame.event.get():
- print(event)
- if event.type == pygame.QUIT:
- pygame.quit()
- quit()
- pygame.image.load(titlescreen)
- screen.blit(titlescreen, (0, 0))
- pygame.display.flip()
- clock.tick(15)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement