-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.py
124 lines (110 loc) · 2.87 KB
/
settings.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# settings.py
# Jacob Laframboise
# June 14th, 2018
# This file holds the settings for all the files in this game
import pygame as pg
vec = pg.math.Vector2
# basic game settings
WIDTH = 1024
HEIGHT = 768
TITLE = 'PokeGame'
FPS = 60
TILE_SIZE = 64
# define some colors (R, G, B)
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
DARKGREY = (40, 40, 40)
LIGHTGREY = (100, 100, 100)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
YELLOW = (255, 255, 0)
BROWN = (106, 55, 5)
CYAN = (0, 255, 255)
BLUE = (0, 0, 255)
PALE_BLUE = (8, 168, 255)
ORANGE = (255, 82, 48)
STRONG_ORANGE = (255, 106, 0)
# Menu Settings
MENU_WIDTH = 300
MENU_HEIGHT = HEIGHT
MENU_BG_COLOUR = PALE_BLUE
CIRCLE_RADIUS = 60
CIRCLE_WIDTH = 6
NUMBER_OF_CIRCLES = 3
HEADER_SPACE = 80
BATTLE_SCREEN_WIDTH = 10 * 64
MENU_FONT_SIZE = 14
MENU_FONT_COLOUR = BLACK
STATS_OFFSET = 120
STATS_SPACING = 10
SMALL_TITLE_FONT_SIZE = 40
SMALL_TITLE_FONT_COLOUR = ORANGE
INTRO_NAME_FONT_SIZE = 40
INTRO_NAME_FONT_COLOUR = ORANGE
SMALL_NAME_FONT_SIZE = 30
SMALL_NAME_FONT_COLOUR = ORANGE
X_AXIS = vec(1, 0)
# player settings:
PLAYER_SPEED = 300
ROTATION_SPEED = 200
PLAYER_IMG = 'trainer.png'
PLAYER_HIT_RECT = pg.Rect(0, 0, 35, 35)
# Pokemon settings
POKEMON_LIST = ['Turtle', 'FlamingPingu', 'Leafcoon', 'Woterpitter', 'Beary', 'Floataphant', 'Rocky', 'Flamingo']
TYPE_LIST = ['grass', 'fire', 'water']
TURTLE_IMG = 'turtle.png'
FIRE_PENGUIN_IMG = 'flaminghotpingu.png'
LEAFCOON_IMG = 'leafcoon.png'
WOTERPITTER_IMG = 'woterpitter.png'
FLOATAPHANT_IMG = 'floataphant.png'
FLAMINGO_IMG = 'flamingo.png'
BEARY_IMG = 'beary.png'
ROCKY_IMG = 'Rockey2.png'
POKEMON_SPEED = 200
POKEMON_MOVE_DELAY = 500
WILD_POKEMON_HEALTH = 100
TRAINED_POKEMON_HEALTH = 100
MAX_POKEMON_LIMIT = 8
HEALTH_BAR_OFFSET = vec(-52, 28)
# Projectile settings
PROJECTILE_SPEED = 400
POKEBALL_DELAY = 700
POKEBALL_LIFETIME = 1600
POKEBALL_IMG = 'pokeball.png'
GRASS_ATTACK_IMG = 'grass_attack.png'
WATER_ATTACK_IMG = 'water_attack.png'
FIRE_ATTACK_IMG = 'fire_attack.png'
ATTACK_DAMAGE = 20
TRAINED_ATTACK_DELAY = 600
WILD_ATTACK_DELAY = 2000
# health bars
HEALTH_LENGTH = 100
HEALTH_HEIGHT = 16
# intro settings
INTRO_TIME = 3000
INTRO_CIRCLE_RADIUS = 300
INTRO_RADIUS_MAX_VAR = 15
INTRO_CIRCLE_CENTER = vec(WIDTH / 2 - 30, HEIGHT / 100 * 48)
INTRO_BG_COLOUR = PALE_BLUE
INTRO_PLAYER_RUN_HEIGHT = HEIGHT / 100 * 67
INTRO_PLAYER_SPEED = 0.25
INTRO_TEXT_COLOUR = ORANGE
INTRO_TEXT_SIZE = 60
INTRO_SUBTEXT_SIZE = 30
INTRO_INST_BG_COLOUR = WHITE
INTRO_INST_TEXT_COLOUR = BLACK
INTRO_INST_TEXT_SIZE = 24
INTRO_INST_TOP_BUFFER = HEIGHT / 7
INTRO_INST_POKEMON_TOPLINE = INTRO_INST_TOP_BUFFER / 10 * 3
INTRO_INST_POKEMON_BOTTOMLINE = 60 + INTRO_INST_POKEMON_TOPLINE
INTRO_DIV_TOP_X = WIDTH / 2
INTRO_DIV_TOP_Y = HEIGHT * 0.48
INTRO_DIV_TOP_WIDTH = 400
INTRO_DIV_TOP_THICK = 3
INTRO_DIV_COLOUR = ORANGE
# outro settings:
OUTRO_FONT_SIZE = 20
OUTRO_FONT_COLOUR = BLACK
OUTRO_WIDTH = 900
OUTRO_HEIGHT = 600
OUTRO_TEXT_LENGTH = 1200