summaryrefslogtreecommitdiffstats
path: root/pygametemplate/setup.py
blob: db53e132a10342edf748a7998ce21a61dc2c7ef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import pygame
import random

# Initialise pygame
pygame.init()

# Set the dimensions of the screen
SCREEN_WIDTH, SCREEN_HEIGHT = 640, 640

# Set the name and icon of the window
# pygame.display.set_caption("pygame")
# icon = pygame.image.load("")
# icon = pygame.transform.scale(icon, (32, 32))
# pygame.display.set_icon(icon)

# Find out delta and create clock
clock = pygame.time.Clock()
fps = 60
delta = 1000 // fps


class Colour:
    BLACK = (0, 0, 0)
    WHITE = (255, 255, 255)
    RED = (255, 0, 0)
    YELLOW = (255, 255, 0)
    LIGHT_PINK = (255, 209, 223)
    LIGHT_BLUE = (213, 209, 255)
    LIGHT_YELLOW = (255, 250, 209)
    ORANGE = (255, 173, 51)
    OFF_RED = (255, 69, 69)
    PURPLE = (202, 69, 255)
    DARK_BLUE = (57, 26, 135)


# Background colour
background_colour = Colour.WHITE