-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathuGameUtils.pas
More file actions
45 lines (38 loc) · 849 Bytes
/
uGameUtils.pas
File metadata and controls
45 lines (38 loc) · 849 Bytes
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
unit uGameUtils;
interface
uses Generics.Collections, FMX.Objects3D, FMX.Types3d, System.Math.Vectors, System.UITypes;
type
TSceneJeu = (intro, menu, jeu, options, gameover, victoire, aide, highScores);
TEnnemi = record
corps : TSphere;
end;
TBonus = record
boite : TCube;
tag : integer;
end;
TTir = record
porteeTir, vitesseTir : single;
balle : TSphere;
direction, positionDepart : TPoint3D;
end;
const
tailleJoueur = 2;
accelerationTouche = 0.1;
maxAccelerationTouche = 2;
vitesseMax = 0.2;
maxBalles = 10;
vitesseTir = 1.5;
porteeTir = 100;
maxEnnemis = 10;
MaxArbres = 30;
distanceAffichageHerbe = 50;
maxVie = 100;
tailleEnnemi = 5;
maxEnnemiPointDeVie = 3;
nbBonusMunition = 5;
taileBonus = 1.5;
nbBonusPointDeVie = 3;
var
maxHerbe : integer;
implementation
end.