AuroraCollegeSDD2020 / at2-hangman-project-double-a-batteries

at2-hangman-project-double-a-batteries created by GitHub Classroom
GNU General Public License v3.0
1 stars 0 forks source link

Code The Algorithmns #8

Open AmberWilliamson opened 6 years ago

AmberWilliamson commented 6 years ago

Coding

AmberWilliamson commented 6 years ago

From Bailey:

+import pygame +import time +import random +from pygame import font + +pygame.init() + +white = (255, 255, 255) +black = (0, 0, 0) +red = (200, 0, 0) +brightRed = (255, 0, 0) +green = (0, 200, 0) +brightGreen = (0, 255, 0) +blue = (0, 0, 200) +brightBlue = (0, 0, 255) +orange = (255,69,0) +brightOrange = (255,127,80) + +blocky = 10 +FPS = 30 + +WIDTH = 800 +HEIGHT = 600 + +font = pygame.font.SysFont(None, 25) + +clock = pygame.time.Clock() + +gameDisplay = pygame.display.set_mode((WIDTH, HEIGHT)) + +def message_to_screen(msg, colour):