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
|
import os
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
import time
import pygame
import pygame.freetype
from pygame.locals import *
appName = "OpenGUIlion"
appVersion = "v1.1"
pygame.init()
pygame.display.set_caption(appName + " " + appVersion)
w, h = 1024, 512
screen = pygame.display.set_mode((w, h), 32, pygame.NOFRAME)
fontHelv = pygame.font.Font('./openguilion/fonts/helvet.ttf', 60)
fontHelvGiant = pygame.font.Font('./openguilion/fonts/helvet.ttf', 600)
fontHelvB = pygame.font.Font('./openguilion/fonts/helvetb.ttf', 60)
fontMatisse = pygame.font.Font('./openguilion/fonts/matisse.ttf', 60)
fontSinkin = pygame.font.Font('./openguilion/fonts/sinkin.ttf', 200)
# Palette
cBlack = (0, 0, 0)
cBrightRed = (255, 64, 64)
cPureRed = (255, 0, 0)
cRed = (212, 19, 13)
cOrange = (228, 114, 0)
cLightYellow = (255, 227, 118)
cLightGreen = (101, 231, 151)
# Test vars
textX = 100
textY = 55
|