-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.py
97 lines (79 loc) · 2.04 KB
/
variables.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
import pygame as pg
######## Initialize pygame
pg.init()
pg.font.init()
######## Create main screen
screen = pg.display.set_mode((800 , 1000))
screen_rect = screen.get_rect()
creation_rect = pg.Rect(0 , 0 , screen_rect.width , 300)
creation_rect.midbottom = screen_rect.midtop
FPS = 30
REPULTION_FORCE = .8
POPULATION_CLASSES = [None]
FILTERS_CLASSES = []
######## Groups
text_boxes_group = pg.sprite.Group()
# the player groups
players_group = pg.sprite.Group()
characters_group = pg.sprite.Group()
# the enemies groups
enemies_group = pg.sprite.Group()
enemies_ind_groups = pg.sprite.Group()
buttons_group = pg.sprite.Group()
shoots_group = pg.sprite.Group()
filter_group = pg.sprite.Group()
moving_objects_group = set()
timers = []
######## Variables
FORCE_TO_CARDS = 2
CARD_SIZE = [screen_rect.w * 0.15 , screen_rect.h * .15]
BATTLE_DECK = [5, 5 , 5]
######## Fonts for texts
font_size = int(screen_rect.h * .1)
main_menu_font = pg.font.SysFont("Arial" , font_size , False , True)
######## Sets of things
SCENES = {"Main Menu": None ,
"Main Adventure": None ,
"Main Battle": None ,
"Items Menu": None ,
"Abilities Menu": None ,
"Testes": None}
# for images in general
IMAGES_PATH = 'Images'
dict_with_images = {
'path' : 'SpaceShip',
1:{
"adress": '1.png',
},
2:{
'adress': '2.png',
'size': [64,64]
}
}
######## dicts and lists
exemple_dict = {
'update': [],
'move': [],
'draw': [],
'click_down': [],
'click_up': [],
'key_down': [],
'key_up': [],
'multi_gesture': [],
'finger_down': [],
'finger_up': [],
'finger_motion' : []
}
main_scene_dict = {
'update': [players_group , enemies_group , timers , filter_group , shoots_group ],
'move': [players_group , enemies_group , filter_group , shoots_group],
'draw': [filter_group , players_group , enemies_group , shoots_group],
'click_down': [players_group],
'click_up': [],
'key_down': [players_group],
'key_up': [players_group],
'multi_gesture': [],
'finger_down': [],
'finger_up': [],
'finger_motion' : []
}