import pygame
import random
pygame.init()
# Colors
white = (255, 255, 255)
red = (255, 0, 0)
black = (0, 0, 0)
Back_Ground = pygame.image.load("Snake Background.jpg")
# Creating window
screen_width = 900
screen_height = 600
gameWindow = pygame.display.set_mode((screen_width,screen_height))
Back_Ground = pygame.transform.scale(Back_Ground,(screen_height,screen_width)).convert_alpha
# Game Title
pygame.display.set_caption("Play With Me")
pygame.display.update()
clock = pygame.time.Clock()
font = pygame.font.SysFont(None, 55)
def main_game():
game_over = True
while game_over is not False:
gameWindow.fill(white)
pygame.display.update()
gameWindow.blit(Back_Ground,Back_Ground.get_rect())
pygame.display.update()
for event in pygame.event.get():
if event.type == pygame.QUIT:
game_over = False
main_game()
No comments:
Post a Comment