* Aircraft.c: files were being loaded each time level was selected.
* Game.c: score bonus is now added depending on flight remaining time. + Added second level.
This commit is contained in:
parent
7d14b50360
commit
6364d64cbc
BIN
Bin/AIRPORT.bin
BIN
Bin/AIRPORT.bin
Binary file not shown.
|
@ -0,0 +1,19 @@
|
|||
#DEPARTURE/ARRIVAL;Flight number;Passengers;HH:MM;Parking (departure only);Remaining time
|
||||
#This is a comment example.
|
||||
#If DEPARTURE, parking must be set
|
||||
#If ARRIVAL, set parking to zero
|
||||
#First line must set initial time
|
||||
#For example:
|
||||
14:55
|
||||
#Aircraft arrival (or departure) must be set relative to initial time, in HH:MM format.
|
||||
ARRIVAL;PHX1802;150;00:10;0;360
|
||||
ARRIVAL;PHX1803;250;00:30;0;360
|
||||
ARRIVAL;PHX1804;250;01:10;0;360
|
||||
ARRIVAL;PHX1805;100;01:30;0;360
|
||||
ARRIVAL;PHX1806;40;02:30;0;360
|
||||
DEPARTURE;PHX1000;100;00:05;19;240
|
||||
DEPARTURE;PHX1001;100;00:25;21;240
|
||||
DEPARTURE;PHX1002;200;01:00;19;240
|
||||
DEPARTURE;PHX1003;200;01:30;21;240
|
||||
DEPARTURE;PHX1004;200;02:00;19;240
|
||||
DEPARTURE;PHX1004;200;03:00;21;240
|
Binary file not shown.
|
@ -0,0 +1,17 @@
|
|||
#DEPARTURE/ARRIVAL;Flight number;Passengers;HH:MM;Parking (departure only);Remaining time
|
||||
#This is a comment example.
|
||||
#If DEPARTURE, parking must be set
|
||||
#If ARRIVAL, set parking to zero
|
||||
#First line must set initial time
|
||||
#For example:
|
||||
14:55
|
||||
#Aircraft arrival (or departure) must be set relative to initial time, in HH:MM format.
|
||||
ARRIVAL;PHX1802;100;00:10;0;360
|
||||
ARRIVAL;PHX1805;125;00:10;0;360
|
||||
ARRIVAL;PHX1806;125;00:30;0;360
|
||||
ARRIVAL;PHX1807;125;00:50;0;360
|
||||
ARRIVAL;PHX1808;125;01:30;0;360
|
||||
DEPARTURE;PHX1000;53;00:05;177;360
|
||||
DEPARTURE;PHX1001;53;00:15;145;360
|
||||
DEPARTURE;PHX1002;53;00:30;227;360
|
||||
DEPARTURE;PHX1003;53;00:45;135;360
|
|
@ -87,6 +87,8 @@ static bool AircraftCheckPath(TYPE_AIRCRAFT_DATA* ptrAicraft, TYPE_AIRCRAFT_DATA
|
|||
|
||||
void AircraftInit(void)
|
||||
{
|
||||
static bool firstLoad = true;
|
||||
|
||||
bzero(AircraftData, GAME_MAX_AIRCRAFT * sizeof(TYPE_AIRCRAFT_DATA));
|
||||
AircraftIndex = 0;
|
||||
|
||||
|
@ -113,10 +115,15 @@ void AircraftInit(void)
|
|||
AIRCRAFT_INVALID_IDX,
|
||||
sizeof(AircraftFlightDataIdx_HashTable) );
|
||||
|
||||
LoadMenu( GameFileList,
|
||||
if (firstLoad != false)
|
||||
{
|
||||
firstLoad = false;
|
||||
|
||||
LoadMenu( GameFileList,
|
||||
GameFileDest,
|
||||
sizeof(GameFileList) / sizeof(GameFileList[0]),
|
||||
sizeof(GameFileDest) / sizeof(GameFileDest[0]) );
|
||||
sizeof(GameFileDest) / sizeof(GameFileDest[0]) );
|
||||
}
|
||||
}
|
||||
|
||||
bool AircraftAddNew( TYPE_FLIGHT_DATA* ptrFlightData,
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -3968,6 +3968,9 @@ void GameRemoveFlight(uint8_t idx, bool successful)
|
|||
if (successful != false)
|
||||
{
|
||||
GameScore += SCORE_REWARD_FINISH_FLIGHT;
|
||||
|
||||
// Add punctuation
|
||||
GameScore += FlightData.RemainingTime[idx] << 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ CDROM_ROOT=$(PROJECT_DIR)/cdimg
|
|||
BIN_TARGET_PATH = $(PROJECT_DIR)/Bin
|
||||
|
||||
#Uncomment this DEFINE below to use Airport together with OpenSend + QPSXSerial toolchain.
|
||||
#DEFINE += -DSERIAL_INTERFACE
|
||||
DEFINE += -DSERIAL_INTERFACE
|
||||
|
||||
# PSXSDK tools definitions
|
||||
# ELF2EXE:
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 822 B |
|
@ -0,0 +1 @@
|
|||
16 -org=620,240 -mpink
|
Binary file not shown.
After Width: | Height: | Size: 822 B |
|
@ -0,0 +1 @@
|
|||
16 -org=604,240 -mpink
|
|
@ -0,0 +1,19 @@
|
|||
#DEPARTURE/ARRIVAL;Flight number;Passengers;HH:MM;Parking (departure only);Remaining time
|
||||
#This is a comment example.
|
||||
#If DEPARTURE, parking must be set
|
||||
#If ARRIVAL, set parking to zero
|
||||
#First line must set initial time
|
||||
#For example:
|
||||
14:55
|
||||
#Aircraft arrival (or departure) must be set relative to initial time, in HH:MM format.
|
||||
ARRIVAL;PHX1802;150;00:10;0;360
|
||||
ARRIVAL;PHX1803;250;00:30;0;360
|
||||
ARRIVAL;PHX1804;250;01:10;0;360
|
||||
ARRIVAL;PHX1805;100;01:30;0;360
|
||||
ARRIVAL;PHX1806;40;02:30;0;360
|
||||
DEPARTURE;PHX1000;100;00:05;19;240
|
||||
DEPARTURE;PHX1001;100;00:25;21;240
|
||||
DEPARTURE;PHX1002;200;01:00;19;240
|
||||
DEPARTURE;PHX1003;200;01:30;21;240
|
||||
DEPARTURE;PHX1004;200;02:00;19;240
|
||||
DEPARTURE;PHX1004;200;03:00;21;240
|
Binary file not shown.
|
@ -0,0 +1,17 @@
|
|||
#DEPARTURE/ARRIVAL;Flight number;Passengers;HH:MM;Parking (departure only);Remaining time
|
||||
#This is a comment example.
|
||||
#If DEPARTURE, parking must be set
|
||||
#If ARRIVAL, set parking to zero
|
||||
#First line must set initial time
|
||||
#For example:
|
||||
14:55
|
||||
#Aircraft arrival (or departure) must be set relative to initial time, in HH:MM format.
|
||||
ARRIVAL;PHX1802;100;00:10;0;360
|
||||
ARRIVAL;PHX1805;125;00:10;0;360
|
||||
ARRIVAL;PHX1806;125;00:30;0;360
|
||||
ARRIVAL;PHX1807;125;00:50;0;360
|
||||
ARRIVAL;PHX1808;125;01:30;0;360
|
||||
DEPARTURE;PHX1000;53;00:05;177;360
|
||||
DEPARTURE;PHX1001;53;00:15;145;360
|
||||
DEPARTURE;PHX1002;53;00:30;227;360
|
||||
DEPARTURE;PHX1003;53;00:45;135;360
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue