-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
54 lines (43 loc) · 952 Bytes
/
constants.py
File metadata and controls
54 lines (43 loc) · 952 Bytes
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import pygame
pygame.init()
# Main window size
CAMERA_WIDTH = 800
CAMERA_HEIGHT = 600
CELL_WIDTH = 32
CELL_HEIGHT = 32
# Map
MAP_WIDTH = 40
MAP_HEIGHT = 40
MAP_MAX_ROOMS = 10
MAP_MAX_DEPTH = 2
ROOM_MAX_HEIGHT = 7
ROOM_MAX_WIDTH = 5
ROOM_MIN_HEIGHT = 3
ROOM_MIN_WIDTH = 3
# FOV
TORCH_RAD= 8
FOV_LIGHT_WALLS = True
FOV_ALGO = 0
MESSAGE_LOG_NUM = 4
MAX_FPS = 60
# Colour
COLOR_BLACK = (0, 0, 0)
COLOR_WHITE = (255, 255, 255)
COLOR_GREY = (100, 100, 100)
COLOR_GREEN = (0, 255, 0)
COLOR_RED = (255, 0, 0)
COLOR_LIME = (50, 205, 50)
COLOR_YELLOW = (255,255,0)
# FONT
FONT_DEBUG = pygame.font.Font("data/JOYSTIX.TTF", 16)
FONT_MESSAGE = pygame.font.Font("data/JOYSTIX.TTF", 12)
FONT_TITLE = pygame.font.Font("data/JOYSTIX.TTF", 26)
FONT_CURSOR_TEXT = pygame.font.Font("data/JOYSTIX.TTF", CELL_HEIGHT)
# Game colors
COLOR_DEFAULT_BG = COLOR_GREY
# Draw Depth
DEPTH_PLAYER = -100
DEPTH_CREATURE = 1
DEPTH_ITEM = 2
DEPTH_CORPSE = 100
DEPTH_BKGD = 150