forked from wvillanueva/StarHonor
/
Globals.cpp
45 lines (33 loc) · 884 Bytes
/
Globals.cpp
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
#include "Globals.h"
ArduboyCustom arduboy;
float LastUpdateTime = 0;
float MilliPerFrame = 0;
float DeltaTime = 0;
int WaitTime = 0;
int StatusBlinkTime = 60;
State GameState;
State PreviousGameState;
int MenuWaitTime;
int SequenceStage = 0;
int CurrentSector = 1;
bool StatusUpdateAvailable = false;
int StatusUpdateTime = 240;
bool StatusUpdateFromProgMem = true;;
bool CanHail = false;
bool RunningAway = false;
Direction DPad;
bool AButton = false;
bool BButton = false;
bool newButtonInputAllowed = true;
Vector2d* MapUpperBounds;
Vector2d* MapLowerBounds;
int CombatPlanetDef, CombatPlanetDamage, CombatShipShieldDamage, CombatShipDamage;
SystemTarget SystemDamaged;
SystemTarget RepairTarget;
float TimeUntilNextRepair;
float RepairTime = 2.0f;
int BattleRepairs = 3;
int BattleRepairsMax = 3;
float seconds = 60;
int minutes = 9;
float TimeToNextRandomEncounter;