aboutsummaryrefslogtreecommitdiff
path: root/Source/GameGui.h
Commit message (Collapse)AuthorAgeFilesLines
* Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise).Xavier ASUS2018-11-231-10/+10
| | | | Improved const-correctness and scope for some variables.
* * Minor changes.XaviDCR922018-05-071-1/+1
|
* * Aircraft.c: since "rotate" member != 0 would render ArrowSpr incorrectly, ↵XaviDCR922018-01-031-0/+2
| | | | | | | | I have created two separate sprites: LeftRightArrowSpr and UpDownArrowSpr. Still, H_FLIP isn't working properly. * GameGui.c: new function GameGuiCalculateNextAircraftTime(), which calculates remaining time for next aircraft on the list. * GameStructures.h: new parameter NextAircraftTime for TYPE_PLAYER structures. * Game.c: added call to new function GameGuiCalculateNextAircraftTime().
* * Slight optimization: all comparations against true are now compared ↵XaviDCR922017-12-261-3/+3
| | | | | | | against != false. + Added a provisional background during gameplay (still WIP). * Map editor now allows creating a map.
* * Include directives are now moved to .c instead of .h, as it should really ↵XaviDCR922017-08-061-3/+0
| | | | | | | | | 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.
* * Tried to get some work done in MapEditor with no success so far.XaviDCR922017-06-111-0/+1
| | | | | | * 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-4/+5
| | | | | | | | 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.
* * Aircraft 0 was incorrectly being removed because indexes 0 to ↵XaviDCR922017-05-311-1/+1
| | | | | | | | | | 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.
* * Implemented remaining time for flights.XaviDCR922017-05-251-0/+3
| | | | | * Initial STATE_UNBOARDING implementation. Still some work to do. * Added score logic.
* * Aircraft state was not being transferred ciclically from Game to Aircraft ↵XaviDCR922017-05-241-0/+1
| | | | | | | | | | 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.
* * Adjusted coordinates for aircraft list in 2 player mode.XaviDCR922017-05-071-0/+1
| | | | * Added new "Id" parameter in TYPE_PLAYER structure. Not ideal, but needed nevertheless.
* * Split screen is now working. Yay!!XaviDCR922017-05-051-4/+4
| | | | * New prototypes for Gfx. Still preliminar, but make split screen work.
* * Updated.XaviDCR922017-02-041-0/+0
|
* Initial commitXavier Del Campo2017-02-041-0/+38