-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathun.Defs.pas
More file actions
89 lines (71 loc) · 3.5 KB
/
un.Defs.pas
File metadata and controls
89 lines (71 loc) · 3.5 KB
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
{*****************************************************************************
Copyright (C) 2026 NormalUser
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*****************************************************************************}
unit un.Defs;
{$Mode objfpc} {$H+}
{$COPERATORS OFF}
// ******************** interface *************************
interface
USES SDL2;
CONST xSize = 1280;
ySize = 800; //900; { hight better for laptops }
way_x = 0.07; //0.05;
way_y = 0.10; //0.13 { => Thrust against Gravity }
gravity = 0.0;
x_velmax = 0.5; { LandingSpeed warning if speed to high }
// y_velmax = 1.0; { LandingSpeed warning if speed to high }
difficu = 0.00001; { progressive Gravity CONST will be added }
BIG = 4; { LandingPad thickness }
ANZ = 5; { LandingPad Nr => 0..Anz = Anz+1 }
land_speed = 1; { Landing speed }
Fuel_Full = 700;
min_Fuel = 400;
Max_Exp = 26; { Explosion pics nr }
Max_Back = 99; { background pics nr }
Max_Score = 10000; { new Eagle each 10.000 Points }
Timeout_M = 65534;
time210 = 210;
time110 = 110;
xSizeHalf = xSize DIV 2;
Terrain_ySize2 = ySize DIV 2;
Terrain_ySize4 = ySize DIV 4;
MAX_LINE_LENGTH = 1024;
MAX_KEYBOARD_KEYS = 350;
NUMATLASBUCKETS = 37;
Parameter_Path = 'data/parameter.json';
Atlas_Path = 'data/atlas.json';
Texture_Path = 'gfx/atlas.png';
MAX_SND_CHANNELS = 8;
SND_EAGLE_LANDED = 1; { eagle_has_landed.wav }
SND_EXPLOSION = 2; { explosion2.wav }
SND_JETS = 3; { jet_lp.wav }
SND_ON = 4; { Blaster_1.wav }
SND_OFF = 5; { Retro_3.wav }
SND_READY = 6; { beep1b.wav }
SND_GO = 7; { honk }
SND_NEW_EAGLE = 8; { space_bubbles_2.wav }
SND_MAX = 9; { MAX }
CH_Eagle = 1;
CH_Engine = 2;
CH_Pads = 3;
CH_ANY = -1;
Magenta : TSDL_Color = ( r:255; g: 0; b:255; a:255 );
Green : TSDL_Color = ( r: 0; g:255; b: 0; a:255 );
Blue : TSDL_Color = ( r: 0; g: 0; b:255; a:255 );
Red : TSDL_Color = ( r:255; g: 0; b: 0; a:255 );
Cross : TSDL_Color = ( r: 0; g:192; b: 0; a:255 );
White : TSDL_Color = ( r:255; g:255; b:255; a:255 );
// ******************** implementation ********************
implementation
end.