Commit Graph

22 Commits

Author SHA1 Message Date
Xavier ASUS 8fcf5bf1f7 Removed SIO interrupt (it caused VBlank ISR not to be triggered).
Added Gfx wait on LoadMenuEnd(). Otherwise, some levels would not start after loading all required files.
Also, added GPU wait on Menu.c before entering the main loop.
An invalid index inside sound table was being accessed when creating an arrival flight. This made the game crash only under real hardware.
Other minor changes and fixes.
2018-11-30 01:34:40 +01:00
Xavier ASUS 3b80f74ce1 Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise).
Improved const-correctness and scope for some variables.
2018-11-23 13:57:38 +01:00
Xavier ASUS 2ccc0f5edd Added "const" qualifier to some functions.
"cdrom:\ and ;1" are automatically inserted into file name, in order to save memory space.
Some minor optimizations.
2018-11-18 20:03:35 +01:00
XaviDCR92 6adb0a08c8 * Menu.c: bugfix for PLT level list.
* Minor: added whitespace to "sizeof" operand.
2018-03-10 14:30:40 +01:00
XaviDCR92 67cfc8b2c2 * RWY_DIR and AIRCRAFT_DIRECTION have been joint into a single enum.
* Game.c: new prototypes GameGetParkingDirection() and GameGetRunwayDirection().
* Slight optimizations into GameRenderLevel().
* Added some comment headers into Gfx.c.
2017-12-29 23:19:43 +01:00
XaviDCR92 fef6629d96 * New LEVEL2.LVL was not being displayed correctly as I forgot to include the new tiles on Game.c.
* Some work done on runway exit detection, but still TODO.
* Minor change in LoadMenu.c.
2017-12-29 02:57:40 +01:00
XaviDCR92 4eaa6c091f * Slight optimization: all comparations against true are now compared against != false.
+ Added a provisional background during gameplay (still WIP).
* Map editor now allows creating a map.
2017-12-26 22:18:37 +01:00
XaviDCR92 e6d41c59ff Bugfix: ptrPlayer->SelectedAircraft was being substracted when == 0 and caused a game crash. Bugfix: aircraft did not stop when DIR_SOUTH. 2017-09-23 01:32:26 +02:00
XaviDCR92 6629a61c3b * Removed unneeded -g flag from Makefile.
* Aircraft now prevents collision against other aircraft if state == STATE_TAXIING.
* Game: new event handlers for new Aircraft collision prevention algorithm.
* Font: although not compulsory, _blend_effect_lum should be volatile.
* Other minor changes.
2017-09-16 03:21:15 +02:00
XaviDCR92 0d7af34486 * Trimmed ending whitespaces.
* Makefile now generates output TIM files automatically, using 'cat whatever.flags' files as flags for bmp2tim.
2017-09-16 01:44:42 +02:00
XaviDCR92 69027a04e3 * Minor changes (spaces between "if"/"for"... instructions).
+ Added output ELF file with debugging symbols for nocash.
2017-08-30 23:29:57 +02:00
XaviDCR92 b1aad213d4 * Added more comments.
* Radio chatter sounds.
* Created aircraft state STATE_STOPPED, to be used when L1 is pressed on aircraft selection mode.
2017-08-18 20:17:13 +02:00
XaviDCR92 db8bc5f9e3 + Documentation about sound sources.
* Sine-like effect used for runways now moved to SystemCalculateSine().
* Bugfix: ptrPlayer->FlightDataPage is now decreased if there aren't enough active aircraft.
* On main menu, 2 players option is now disabled if pad 2 is disconnected.
* More work on FPS measurement (not working yet).
* Number of used SPU voices is now returned on SfxUploadSound().
2017-08-14 14:29:04 +02:00
XaviDCR92 f97f48ca7c * IMASK is now accessed as volatile variable.
* Other minor changes.
2017-08-11 22:11:43 +02:00
XaviDCR92 8700a329d0 * Include directives are now moved to .c instead of .h, as it should really be...
* Makefile now rebuilds needed targets on modified header files.
* Some more work on GameEmergencyMode().
* Initial work on PSX mouse auto detection.
* Prototypes for RCNT2 I_MASK bit handling.
2017-08-06 04:17:09 +02:00
XaviDCR92 153f078ec2 * Added comments on System.
* Files needed for Game are now only loaded once, except from LEVEL1.PLT.
* Added DevMenu to get debug info.
* ISR_LoadMenuVBlank() does not stop when accessing SIO.
* On fopen() and SERIAL_INTERFACE defined, "#" is prepended and "@" is appended to filename string.
2017-07-27 07:41:25 +02:00
XaviDCR92 cb1c0345c7 + Added support for SIO (Serial Input Output).
* On SystemLoadFileToBuffer(), files can be now uploaded to PSX using QPSXSerial.
2017-07-20 22:36:19 +02:00
XaviDCR92 bd23878d45 * Added font spacing parameter.
* Removed obsolete, unused functions.
* Performance optimization: routines inside GameCalculations() were computating a big loop several times, so this has been modified so that loop is only performed once.
* Initial implementation for GameGetAircraftTilemap(). Still some work TODO.
2017-06-28 16:19:36 +02:00
XaviDCR92 f9f9924566 * Reduced tileset sprite size from 64x64 to 64x48.
* Modified rendering functions to keep up with this size reduction.
* Sprites in TIM have been reordered inside VRAM.
* Other minor changes.
2017-06-27 00:58:12 +02:00
XaviDCR92 1244505327 * Implemented aircraft collision. But it would not detect collision in some cases.
* Remove unneeded whitespace character on pointer variables (unary operators should not have any whitespaces).
* SelectedAircraft index now increases or decreases automatically on aircraft added/removed.
* Started writing Plt generation routines. Still a lot of work TODO.
2017-06-06 06:52:46 +02:00
XaviDCR92 9ce310d847 * Updated. 2017-02-04 15:31:41 +01:00
Xavier Del Campo 189ecf754d Initial commit 2017-02-04 14:49:08 +01:00