aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* - .iso files are now ignored.XaviDCR922018-03-207-30/+12
| | | | | - Removed deprecated functions from System.c. * Minor changes.
* + Added tutorial level.XaviDCR922018-03-187-4/+29
|
* * System.c: Root counters are finally working, YAY!XaviDCR922018-03-179-51/+51
| | | | | * 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.
* * Game.c: removed obsolete comments.XaviDCR922018-03-113-77/+26
| | | | * GameGui.c: status shown on aircraft list is now summarized on a table.
* * Menu.c: bugfix for PLT level list.XaviDCR922018-03-1015-89/+102
| | | | * Minor: added whitespace to "sizeof" operand.
* + Added Message module, used for tutorials.XaviDCR922018-02-2520-113/+540
| | | | | | | + 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.
* * I think GameGraphics() can be executed as long as GPU has received all DMA ↵XaviDCR922018-02-076-5/+3
| | | | blocks. Remove if something goes wrong.
* * Aircraft.c: files were being loaded each time level was selected.XaviDCR922018-02-0320-3/+87
| | | | | * Game.c: score bonus is now added depending on flight remaining time. + Added second level.
* * Aircraft.c: since "rotate" member != 0 would render ArrowSpr incorrectly, ↵XaviDCR922018-01-0312-40/+125
| | | | | | | | 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().
* * Aircraft.c: taxiing speed has been doubled.XaviDCR922018-01-0216-235/+488
| | | | | | | * 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-306-21/+134
| | | | * System.c/System.h: new prototype SystemGetFileBasename().
* * RWY_DIR and AIRCRAFT_DIRECTION have been joint into a single enum.XaviDCR922017-12-2938-397/+442
| | | | | | * Game.c: new prototypes GameGetParkingDirection() and GameGetRunwayDirection(). * Slight optimizations into GameRenderLevel(). * Added some comment headers into Gfx.c.
* * Aircraft.c: invalid XYZ position was calculated if runway direction != EAST.XaviDCR922017-12-299-87/+153
| | | | | | * Aircraft.c: aircraft direction is now set according to runway direction when aircraft is created. * Game.c: TILE_PARKING_2 was not included on AcceptedTiles[]. * Game.c: GameAssignRunwaytoAircraft() was not looking up runway exit/entry points correctly.
* * New LEVEL2.LVL was not being displayed correctly as I forgot to include ↵XaviDCR922017-12-2911-837/+888
| | | | | | | the new tiles on Game.c. * Some work done on runway exit detection, but still TODO. * Minor change in LoadMenu.c.
* * Added "Save map" function to MapEditor.XaviDCR922017-12-2711-447/+746
| | | | | * Tiles can be now modified runtime. + tileset.ini now allows configuring tileset layout in an easy way.
* * Minor: added comment headers on every function in GameGui.c.XaviDCR922017-12-271-784/+912
|
* * Slight optimization: all comparations against true are now compared ↵XaviDCR922017-12-2656-619/+860
| | | | | | | against != false. + Added a provisional background during gameplay (still WIP). * Map editor now allows creating a map.
* Merge branch 'master' of https://github.com/XaviDCR92/AirportXaviDCR922017-10-016-20/+16
|\
| * * Removed now unneeded dprintf calls on Game.c.XaviDCR922017-09-266-20/+16
| | | | | | | | | | * Imported MenuStar sprite into Menu.c. * Minor changes on Makefile (clean_music target removed).
* | * Updated ELF.XaviDCR922017-10-011-0/+0
|/
* Bugfix: ptrPlayer->SelectedAircraft was being substracted when == 0 and ↵XaviDCR922017-09-2312-125/+143
| | | | caused a game crash. Bugfix: aircraft did not stop when DIR_SOUTH.
* Renamed BMP/WAV data to uppercase (Linux case-sensitivity).XaviDCR922017-09-1638-3/+6
|
* + New sprites.XaviDCR922017-09-168-0/+0
|
* + Added source WAV files. See SOUND_SOURCES for license reference.XaviDCR922017-09-165-0/+0
|
* + Added BIN/CUE image for non-CDDA mode.XaviDCR922017-09-168-63/+74
|
* * Probably it looks like Github's MD parser needs spaces after "#" token...XaviDCR922017-09-161-4/+4
|
* * Trying to solve README.md issues (no headers are shown on Github?).XaviDCR922017-09-161-0/+4
|
* * Removed unneeded -g flag from Makefile.XaviDCR922017-09-1613-109/+226
| | | | | | | * 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.
* * Trimmed ending whitespaces.XaviDCR922017-09-1660-1705/+1720
| | | | * Makefile now generates output TIM files automatically, using 'cat whatever.flags' files as flags for bmp2tim.
* + Added first stub of README.md.XaviDCR922017-09-151-0/+7
|
* * Corrected dependencies for Makefile (.elf was being rebuilt every time, as ↵XaviDCR922017-09-155-105/+109
| | | | | | well as .bin/.cue). * Removed useless macro MAIN_MENU_FILES.
* * Minor changes (spaces between "if"/"for"... instructions).XaviDCR922017-08-3023-742/+791
| | | | + Added output ELF file with debugging symbols for nocash.
* * (Bugfix): padx_last_key_single_pressed was being checked AFTER checking ↵XaviDCR922017-08-192-4/+5
| | | | pads connected, so it was never calculated if, for example, pad 2 was disconnected. This was only reproducible under real hardware.
* * (Bugfix): ptrPlayer->SelectedAircraft was not being updated correctly when ↵XaviDCR922017-08-196-71/+129
| | | | | | | | | 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.
* * Added more comments.XaviDCR922017-08-1812-73/+362
| | | | | * Radio chatter sounds. * Created aircraft state STATE_STOPPED, to be used when L1 is pressed on aircraft selection mode.
* + Added documentation about text fonts sources.XaviDCR922017-08-141-0/+5
|
* + Documentation about sound sources.XaviDCR922017-08-1412-78/+394
| | | | | | | | * 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().
* * IMASK is now accessed as volatile variable.XaviDCR922017-08-115-22/+30
| | | | * Other minor changes.
* + System timer functions now moved to a separate source file, Timer.c/Timer.h.XaviDCR922017-08-1011-339/+894
| | | | | * Added some more comments on Game.c. * On GamePathToTile(), duplicate checks for existing tile have been replaced by calls to GameWaypointCheckExisting().
* * Added some comments on Game.c.XaviDCR922017-08-096-70/+230
| | | | | | * 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.
* * Include directives are now moved to .c instead of .h, as it should really ↵XaviDCR922017-08-0629-109/+229
| | | | | | | | | 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-2715-83/+416
| | | | | | | * 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-2023-319/+498
| | | | * On SystemLoadFileToBuffer(), files can be now uploaded to PSX using QPSXSerial.
* * Bugfix: busy runway was not being cleared when aircraft was resting on a ↵XaviDCR922017-07-064-18/+71
| | | | | | | runway tile e.g.: STATE_READY_FOR_TAKEOFF or STATE_LANDED. * Reimplemented slow rendering on 2-player mode (provisionally though as long as I don't find any better solution). * Other minor fixes.
* + New sprites.XaviDCR922017-06-303-0/+0
|
* * GameRenderBuildingAircraft() done.XaviDCR922017-06-305-160/+292
| | | | | * (Bugfix): on AircraftGetTileFromFlightDataIndex(), a buffer overrun was caused when asking for index = AIRCRAFT_INVALID_IDX. * Added new parameters for some building types. Still some work pending.
* * Added font spacing parameter.XaviDCR922017-06-2813-296/+487
| | | | | | * 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.
* * Reduced tileset sprite size from 64x64 to 64x48.XaviDCR922017-06-2731-52327/+370
| | | | | | * 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-1117-135/+556
| | | | | | * 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.
* * (Bugfix) MemCard: MEMCARD_MAXIMUM_SECTOR changed from 512 (8 << ↵XaviDCR922017-06-084-8/+9
| | | | | | | MEMCARD_SECTORS_PER_BLOCK_BITSHIFT) to 1024 (16 << MEMCARD_SECTORS_PER_BLOCK_BITSHIFT). * DrawEnv and DispEnv buffers are no longer swapped using DMA commands, but GPIO. This ensures stability under real hw. TODO: how to fix in 2-player mode? * Provisionally removed semi-transparency for aircraft shadow sprite.