Commit Graph

27 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 9cbaf49e93 Some important bugfixes.
Added BUILDING_ATC_LOC.
Added more levels.
2018-11-29 01:07:06 +01:00
Xavier ASUS 64dbf5cdd5 Bugfix: minutes were not being retrieved from PLT files.
Game.c: parking slots cannot be selected if an aircraft in STATE_PARKED state is on it.
Other fixes and improvements.
Added some tiles from TILESET2.TIM
2018-11-25 18:02:18 +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 2c3b747732 * Game can now compile without PSXSDK_DEBUG flag.
* RCNT2 ISR is now disabled as soon as SystemLoadFileIntoBuffer() is called. Hopefully that will avoid problems with real HW.
2018-03-26 08:50:33 +02:00
XaviDCR92 34c8910b9f - .iso files are now ignored.
- Removed deprecated functions from System.c.
* Minor changes.
2018-03-20 06:37:23 +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 baa647ad7c + Added Message module, used for tutorials.
+ Added first tutorial level.
* Font now inserts line feed automatically if the next word is too long to fit.
* Gfx.c: added primitive list double buffering in order to gain some performance.
* MapEditor: now airport can be defined inside the tool.
2018-02-25 05:25:33 +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 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 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 e778deb2c0 * (Bugfix): ptrPlayer->SelectedAircraft was not being updated correctly when new aircraft appeared.
* (Bugfix): PltParser was casting remaining time to uint8_t instead of uint16_t.
* Reduced file buffer size to original value.
* GfxDrawButton(): L1/R1/L2/R2 text is now printed on top of Lx/Rx button.
* Other minor changes.
2017-08-19 16:51:00 +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 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 d1f55e8b45 * Tried to get some work done in MapEditor with no success so far.
* Timers with no repeat flag were being set to NULL, but this is not actually desired!
* Reenabled transparency for aircraft shadow.
* Deprecated NotificationRequest flags, and replaced by system timer handling.
2017-06-11 13:58:33 +02:00
XaviDCR92 faf3197555 * Some more work on Plt file generator. 2017-06-06 07:13:16 +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 219d958538 * More passengers by correct sequence are unboarded.
* Aircraft should not be removed on State == STATE_APPROACH.
* Initial implementation for finished game.
* Added some comments on System.c.
* GameGuiPrepareNotificationString() deprecated.
2017-06-03 01:37:55 +02:00
XaviDCR92 5430bd3090 * Added more aircraft on LEVEL1.PLT.
* Unboarding state now totally implemented.
* (Bugfix): Incorrect aircraft was selected on ShowAircraftData.
* Gfx1HzFlash() and Gfx2HzFlash() were incorrectly implemented, causing multiple ticks on a single cycle.
2017-05-27 17:10:15 +02:00
XaviDCR92 656eec576e * Implemented remaining time for flights.
* Initial STATE_UNBOARDING implementation. Still some work to do.
* Added score logic.
2017-05-25 07:38:58 +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