aboutsummaryrefslogtreecommitdiff
path: root/Source/Menu.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove copyrighted OSI logo from projectXavier Del Campo Romero2021-01-031-2/+0
|
* Removed SIO interrupt (it caused VBlank ISR not to be triggered).Xavier ASUS2018-11-301-5/+7
| | | | | | | 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.
* Set SERIAL_INTERFACE compile flagXavier ASUS2018-11-291-20/+0
|
* Some important bugfixes.Xavier ASUS2018-11-291-3/+20
| | | | | Added BUILDING_ATC_LOC. Added more levels.
* New LEVEL3.Xavier ASUS2018-11-241-7/+23
| | | | Improvements.
* Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise).Xavier ASUS2018-11-231-9/+9
| | | | Improved const-correctness and scope for some variables.
* Added "const" qualifier to some functions.Xavier ASUS2018-11-181-428/+444
| | | | | "cdrom:\ and ;1" are automatically inserted into file name, in order to save memory space. Some minor optimizations.
* * Menu.c: bugfix for PLT level list.XaviDCR922018-03-101-18/+26
| | | | * Minor: added whitespace to "sizeof" operand.
* + Added Message module, used for tutorials.XaviDCR922018-02-251-4/+8
| | | | | | | + 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.
* * Aircraft.c: taxiing speed has been doubled.XaviDCR922018-01-021-15/+174
| | | | | | | * Game.c: GameRenderLevel() renamed to GameRenderTerrain(). * Game.c: GameRenderTerrainPrecalculations() has been created to perform some calculations which are stored in tables to be then looked up by GameRenderTerrain(). This should save us some calculation time during rendering process. * Camera.c: added new CameraApplyCoordinatesToCartesianPos() prototype. * GameGui.c: AircraftDataGPoly4 RGB data is now only calculated on startup.
* * Menu.c: when 1Player/2Player buttons are pressed, level list is now shown.XaviDCR922017-12-301-21/+112
| | | | * System.c/System.h: new prototype SystemGetFileBasename().
* * RWY_DIR and AIRCRAFT_DIRECTION have been joint into a single enum.XaviDCR922017-12-291-28/+1
| | | | | | * Game.c: new prototypes GameGetParkingDirection() and GameGetRunwayDirection(). * Slight optimizations into GameRenderLevel(). * Added some comment headers into Gfx.c.
* * Slight optimization: all comparations against true are now compared ↵XaviDCR922017-12-261-6/+35
| | | | | | | against != false. + Added a provisional background during gameplay (still WIP). * Map editor now allows creating a map.
* * Removed now unneeded dprintf calls on Game.c.XaviDCR922017-09-261-2/+14
| | | | | * Imported MenuStar sprite into Menu.c. * Minor changes on Makefile (clean_music target removed).
* Bugfix: ptrPlayer->SelectedAircraft was being substracted when == 0 and ↵XaviDCR922017-09-231-14/+15
| | | | caused a game crash. Bugfix: aircraft did not stop when DIR_SOUTH.
* + Added BIN/CUE image for non-CDDA mode.XaviDCR922017-09-161-16/+23
|
* * Trimmed ending whitespaces.XaviDCR922017-09-161-111/+89
| | | | * Makefile now generates output TIM files automatically, using 'cat whatever.flags' files as flags for bmp2tim.
* * Corrected dependencies for Makefile (.elf was being rebuilt every time, as ↵XaviDCR922017-09-151-6/+5
| | | | | | well as .bin/.cue). * Removed useless macro MAIN_MENU_FILES.
* * Minor changes (spaces between "if"/"for"... instructions).XaviDCR922017-08-301-21/+21
| | | | + Added output ELF file with debugging symbols for nocash.
* * (Bugfix): ptrPlayer->SelectedAircraft was not being updated correctly when ↵XaviDCR922017-08-191-0/+2
| | | | | | | | | 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.
* + Documentation about sound sources.XaviDCR922017-08-141-6/+31
| | | | | | | | * 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().
* * Include directives are now moved to .c instead of .h, as it should really ↵XaviDCR922017-08-061-0/+12
| | | | | | | | | 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.
* * Added comments on System.XaviDCR922017-07-271-3/+3
| | | | | | | * 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.
* + Added support for SIO (Serial Input Output).XaviDCR922017-07-201-4/+34
| | | | * On SystemLoadFileToBuffer(), files can be now uploaded to PSX using QPSXSerial.
* * Reduced tileset sprite size from 64x64 to 64x48.XaviDCR922017-06-271-5/+7
| | | | | | * Modified rendering functions to keep up with this size reduction. * Sprites in TIM have been reordered inside VRAM. * Other minor changes.
* * Tried to get some work done in MapEditor with no success so far.XaviDCR922017-06-111-2/+2
| | | | | | * 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.
* * Implemented aircraft collision. But it would not detect collision in some ↵XaviDCR922017-06-061-1/+1
| | | | | | | | 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.
* * More passengers by correct sequence are unboarded.XaviDCR922017-06-031-1/+1
| | | | | | | * Aircraft should not be removed on State == STATE_APPROACH. * Initial implementation for finished game. * Added some comments on System.c. * GameGuiPrepareNotificationString() deprecated.
* * Used runway is now freed if state == STATE_APPROACH.XaviDCR922017-05-311-1/+1
| | | | TODO: Free runway on state == STATE_READY_TAKEOFF or STATE_ENTERING_RWY.
* * Aircraft 0 was incorrectly being removed because indexes 0 to ↵XaviDCR922017-05-311-0/+2
| | | | | | | | | | GAME_MAX_AIRCRAFT were being read instead of 0 to ptrPlayer->ActiveAircraft. * Solved issues with linked list overflow. A detection mechanism has also been added. * New state STATE_ENTERING_RWY. * GameGuiActiveAircraftList has been moved from GameGui to Game module. * Active aircraft list for each player is now updated each time that a new flight either appears or disappears. * Other minor fixes.
* * Aircraft state was not being transferred ciclically from Game to Aircraft ↵XaviDCR922017-05-241-0/+2
| | | | | | | | | | 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.
* * Split screen from now on is only calling GsDrawList() once. The reason for ↵XaviDCR922017-05-221-3/+13
| | | | | | | | | 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!
* * Added some comments on System.XaviDCR922017-05-011-10/+16
| | | | | | | * 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.
* * Updated.XaviDCR922017-02-041-0/+0
|
* Initial commitXavier Del Campo2017-02-041-0/+492