Commit Graph

38 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 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
XaviDCR92 135a1e93cb * LEVEL3.PLT was incorrectly using Windows CRLF end of line.
* When assigning a parking slot, busy parking slots cannot be selected. Some work TODO yet, though.
2018-11-25 12:32:16 +01:00
Xavier ASUS ce0027e87f Aircraft are now auto-locked when entering "ShowAircraftData" menu.
Minor fixes and improvements.
Path is shown when selecting a moving aircraft.
2018-11-24 11:56:04 +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 4887461e35 * Increased number of events on SYSTEM.CNF.
Minor changes?
2018-03-22 20:50:53 +01: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 51d4c1ea89 * System.c: Root counters are finally working, YAY!
* Sfx.c: SfxStopMusic() was relying on global timer to be increased under ISR, but this is not true anymore!
* Other minor changes on EndAnimation.c.
2018-03-17 01:43:53 +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 e53faffaea * Menu.c: when 1Player/2Player buttons are pressed, level list is now shown.
* System.c/System.h: new prototype SystemGetFileBasename().
2017-12-30 00:58:57 +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 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 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 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 f17b15bdff + System timer functions now moved to a separate source file, Timer.c/Timer.h.
* Added some more comments on Game.c.
* On GamePathToTile(), duplicate checks for existing tile have been replaced by calls to GameWaypointCheckExisting().
2017-08-10 22:39:31 +02:00
XaviDCR92 b807ee7ca5 * Added some comments on Game.c.
* Some performance optimizations on Game.c (removed unneeded "for" loops).
* Timer 2 is now handler (ISR still not working).
* SYSTEM.CNF: EVENT parameter increased to 7.
2017-08-09 22:51:15 +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 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 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 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 8d2e08d744 * Aircraft state was not being transferred ciclically from Game to Aircraft module.
* Improved detection of target reaching for Aircraft.c.
* Cursor is now displayed correctly on both 1-player and 2-player mode.
* Fixed behaviour for locking/unlocking aircraft.
* Fixed menus for 2-player mode.
* Minor fixes and improvements.
2017-05-24 07:15:38 +02:00
XaviDCR92 aefe5f8c1c * Split screen from now on is only calling GsDrawList() once. The reason for this is that now DMA is used instead of GPIO for drawenv/dispenv management.
* (PSXSDK internals): incorrect bit shifting was being made on 0xE3 and 0xE4 GPU instructions (drawenv management).
* (Bugfix): Timers were not being reset properly because pad1_cheat_timer and pad2_cheat_timer were being accidentally reset to NULL on calling memset() for cheatsArray.
* Timers are now updated every 100 ms instead of every second.
* Mouse sprite should be now drawn on X_SCREEN_RESOLUTION >> 2 in 2-player mode. TODO: check why this isn't working!
2017-05-22 07:06:17 +02:00
XaviDCR92 83b4684d7c * Added some comments on System.
* New routine PadOneKeySinglePress() and PadTwoKeySinglePress().
* Temp waypoints now turn red when colliding with an aircraft or with a previously existing waypoint.
* When loading files, GPU operation is finishedbefore calling fopen. Also, I_MASK is disabled just in case.
* For PLT files, actual tile needs to be set instead of parking number.
2017-05-01 23:05:51 +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