-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.py
49 lines (42 loc) · 1.55 KB
/
config.py
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
import pygame
#from functions import *
#pygame.mixer.init()
# Global configuration options
# SCREENSIZE = [800, 440]#[960, 540]
SCREENSIZE = [960, 540]
# TBC - method of getting current display dimensions below
'''
infoObject = pygame.display.Info()
pygame.display.set_mode((infoObject.current_w, infoObject.current_h))
'''
FPS = 30
TITLE = "Atari Missile Command"
SHOW_MOUSE = True
current_game_state = 0
GAME_STATE_SPLASH = 10
GAME_STATE_MENU = 20
GAME_STATE_RUNNING = 30
GAME_STATE_NEW_LEVEL = 40
GAME_STATE_OVER = 50
NUM_CITIES = 6
SKY_LEVEL = 35
GROUND_LEVEL = 20
# Define colours
BACKGROUND = (0, 0, 0)
GROUND = (69, 139, 81) # 458b51
DEFENCE = (48, 117, 213) # 3075D5
CITY = (255, 211, 24) # FFD318
WARHEAD = (255, 0, 0) # FF0000
WARHEAD_TRAIL = (204, 39, 36) # CC2724
INTERCEPTER = (48, 117, 213) # 3075D5
INTERCEPTER_TRAIL = (255, 255, 255) # ffffff
INTERFACE_PRI = (69, 139, 116) # 458b74
INTERFACE_SEC = (69, 127, 139) # 457f8b
NUKE_EXPLOSION = (255, 0, 0) # FF0000
INTERCEPT_EXPLOSION = (255, 255, 255) # ffffff
# game font
pygame.font.init()
game_font = pygame.font.Font('data/fnt/PressStart2P-Regular.ttf', 16)
# gameplay settings
INTERCEPT_RADIUS = 35
NUKE_RADIUS = 50