IronForce is a decentralized network, Degeon is a messenger built on it
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import pygame
|
|
|
|
|
|
|
|
|
|
|
|
pygame.init()
|
|
|
|
|
|
|
|
# Fonts
|
|
|
|
font_medium = pygame.font.Font('CRC35.otf', 25)
|
|
|
|
font = pygame.font.Font('CRC35.otf', 32)
|
|
|
|
font_large = pygame.font.Font('CRC35.otf', 50)
|
|
|
|
|
|
|
|
# Colors used in the app
|
|
|
|
RED = 0xFF0000
|
|
|
|
BLUE = 0x0000FF
|
|
|
|
YELLOW = 0xFFC91F
|
|
|
|
GREEN = 0x00FF00
|
|
|
|
MAGENTA = 0xFF03B8
|
|
|
|
CYAN = 0x00FFCC
|
|
|
|
BLACK = 0x000
|
|
|
|
WHITE = 0xFFFFFF
|
|
|
|
MEDIUM_BLUE = 0x2f2f4e
|
|
|
|
DARK_BLUE = 0x282e46
|
|
|
|
DARKER_BLUE = 0x202033
|
|
|
|
GREY = 0x383e4F
|
|
|
|
|
|
|
|
# Geometrical parameters
|
|
|
|
WIDTH = 1000
|
|
|
|
HEIGHT = 800
|
|
|
|
CHAT_PREVIEW_HEIGHT = 80
|
|
|
|
CHAT_SELECTOR_WIDTH = WIDTH // 3
|
|
|
|
MESSAGE_HEIGHT = 60
|
|
|
|
|
|
|
|
FPS = 30
|