-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.hrl
70 lines (61 loc) · 2.04 KB
/
params.hrl
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
%%%-------------------------------------------------------------------
%%% @author Moshe.Yuval
%%% @copyright Moshe & Yuval
%%% @doc
%%%
%%% @end
%%% Created : 28. Jul 2020 18:29
%%%-------------------------------------------------------------------
-author("Moshe.Yuval").
% Timing Constants.
-define(TimeToWait1, 50).
-define(REFRESH_RATE, 75).
-define(MONITOR_REFRESH_RATE, 50).
-define(SCREEN_REFRESH_TIME, 15).
% Configurations.
-define(MONITOR_PROCESSES, [?MONITOR_LONG_NAME_A, ?MONITOR_LONG_NAME_B, ?MONITOR_LONG_NAME_C, ?MONITOR_LONG_NAME_D]).
-define(MONITORA, 'monitorA').
-define(MONITORB, 'monitorB').
-define(MONITORC, 'monitorC').
-define(MONITORD, 'monitorD').
-define(MONITOR_LONG_NAME_D, 'monitorD@Yuval-Assayag').
-define(MONITOR_LONG_NAME_C, 'monitorC@Yuval-Assayag').
-define(MONITOR_LONG_NAME_B, 'monitorB@Yuval-Assayag').
-define(MONITOR_LONG_NAME_A, 'monitorA@Yuval-Assayag').
% Screen Constants.
-define(BACKGROUND_COLOR, {200, 200, 200}).
-define(SCREEN_SIZE, {1439, 819}).
% Images.
-define(TEAM1IMAGE, "Images/BAR.png").
-define(TEAM2IMAGE, "Images/T2.png").
-define(CONTROLLED_PLAYER_IMAGE, "Images/LEAD.png").
-define(BALL_IMAGE, "Images/ball.png").
-define(REFEREE_IMAGE, "Images/referee.png").
-define(FINISHED_IMAGE, "Images/finishedgame.png").
-define(STAGE_IMAGE, "Images/stagefinish.png").
-define(FIELD_IMAGE, "Images/Field.jpg").
% Spaces For Display.
-define(PRINT_X_START, 400).
-define(PRINT_Y_START, 130).
-define(PRINT_W_H, 300).
-define(TAB, 30).
-define(DOUBLE_TAB, 60).
-define(BIGGER_INDENTATIONS, 120).
% Ball Constants.
-define(BALL_DIFF, 5).
-define(BALL_WIDTH_MULTIPLY_FACTOR, 1.28).
-define(BALL_INIT_X, 698).
-define(BALL_INIT_Y, 390).
-define(BALL_INITIAL_COORDINATES, {600, 500}).
% Gate Constants.
-define(GATE_UPPER_LIMIT, 450).
-define(GATE_LOWER_LIMIT, 360).
% Players Constants.
-define(GOALIE_Y_START, 350).
-define(PLAYER_STEP_SIZE, 5).
-define(CHARACTER_WIDTH, 15).
% Field Borders and Players Limitations.
-define(X_Upper_Limit, 1439).
-define(X_Lower_Limit, 20).
-define(Y_Upper_Limit, 750).
-define(Y_Lower_Limit, 15).