Commit Graph

97 Commits

Author SHA1 Message Date
Xavier ASUS c33fcca6d4 Set SERIAL_INTERFACE compile flag 2018-11-29 02:07:02 +01:00
Xavier ASUS 26bfe68b09 Blue background dimensions are now limited to drawing enviroment's.
Fixed X position for "Remaining aircraft" and "Next aircraft" messages in GameGui.c
2018-11-29 01:29:43 +01:00
Xavier ASUS 41df9924d4 Added new levels into cdimg subfolder.
Added EXE file.
Added final BIN image file.
2018-11-29 01:11:01 +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 0b60fe23cd Added new levels 2018-11-29 00:01:18 +01:00
Xavier ASUS 3de2130b60 TILE_TAXIWAY_CORNER_GRASS_3 added to accepted tiles list.
Building edition is now supported on MapEditor!
LEVEL2.LVL now has some buildings laying around.
2018-11-27 00:26:41 +01:00
Xavier ASUS f8f976763b Removed city background.
Fixed some serious issues regarding building and tile data.
2018-11-25 21:07:28 +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 e4ab93f21e Temporarily removed CDDA tracks 2018-11-24 15:38:04 +01:00
Xavier ASUS 6c687dd30b New LEVEL3.
Improvements.
2018-11-24 13:03:52 +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 d224f1c458 Camera now moves quickier and slows down in less time. 2018-11-24 11:54:40 +01:00
Xavier ASUS d2dc5a7b15 Minor improvements 2018-11-23 15:02:41 +01:00
Xavier ASUS ca6e4a13aa Fixed critical bug that provoked an accidental access to a NULL pointer. 2018-11-23 14:44:21 +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 a923f153f9 gscene and ui are now allocated on the stack and not the heap. 2018-11-23 13:22:17 +01:00
Xavier ASUS 42ea5901de Some cosmetic changes and improved const-correctness.
Created QList<QGraphicsTextItem*> so dynamically-allocated objects are safely deleted on the destructor.
2018-11-23 13:08:30 +01:00
Xavier ASUS fa27014c9b Minor improvements and optimizations. 2018-11-23 12:46:39 +01:00
Xavier ASUS e7e764e7aa Removed warning caused by implicit casting from double to int.
Windows-like path was being incorrectly used.
Added tileset.ini
2018-11-18 20:25:04 +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 4c0028bfcc * Minor changes. 2018-05-07 23:04:27 +02:00
XaviDCR92 01c9566dd8 - AIRPORT.cue: removed music from CUE file. 2018-05-06 20:39:35 +02: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 977ec481d8 + Added tutorial level. 2018-03-18 19:14:17 +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 be36d09ae7 * Game.c: removed obsolete comments.
* GameGui.c: status shown on aircraft list is now summarized on a table.
2018-03-11 14:20:36 +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 81d9242514 * I think GameGraphics() can be executed as long as GPU has received all DMA blocks. Remove if something goes wrong. 2018-02-07 18:15:07 +01:00
XaviDCR92 6364d64cbc * Aircraft.c: files were being loaded each time level was selected.
* Game.c: score bonus is now added depending on flight remaining time.
+ Added second level.
2018-02-03 16:05:37 +01:00
XaviDCR92 7d14b50360 * Aircraft.c: since "rotate" member != 0 would render ArrowSpr incorrectly, 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().
2018-01-03 21:17:28 +01:00
XaviDCR92 b094335404 * Aircraft.c: taxiing speed has been doubled.
* 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.
2018-01-02 06:43:54 +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 0d1df70f2d * Aircraft.c: invalid XYZ position was calculated if runway direction != EAST.
* 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.
2017-12-29 15:07:17 +01:00
XaviDCR92 fef6629d96 * New LEVEL2.LVL was not being displayed correctly as I forgot to include the new tiles on Game.c.
* Some work done on runway exit detection, but still TODO.
* Minor change in LoadMenu.c.
2017-12-29 02:57:40 +01:00
XaviDCR92 eb6f4d6d8c * Added "Save map" function to MapEditor.
* Tiles can be now modified runtime.
+ tileset.ini now allows configuring tileset layout in an easy way.
2017-12-27 13:08:36 +01:00
XaviDCR92 88526570da * Minor: added comment headers on every function in GameGui.c. 2017-12-27 10:39:39 +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 f06d582d63 Merge branch 'master' of https://github.com/XaviDCR92/Airport 2017-10-01 04:40:43 +02:00
XaviDCR92 73bef893dd * Updated ELF. 2017-10-01 04:40:09 +02:00
XaviDCR92 f6f5a1ab11 * Removed now unneeded dprintf calls on Game.c.
* Imported MenuStar sprite into Menu.c.
* Minor changes on Makefile (clean_music target removed).
2017-09-26 21:52:39 +02:00
XaviDCR92 e6d41c59ff Bugfix: ptrPlayer->SelectedAircraft was being substracted when == 0 and caused a game crash. Bugfix: aircraft did not stop when DIR_SOUTH. 2017-09-23 01:32:26 +02:00
XaviDCR92 286d13d71d Renamed BMP/WAV data to uppercase (Linux case-sensitivity). 2017-09-16 12:50:06 +02:00
XaviDCR92 d60819e75a + New sprites. 2017-09-16 12:44:23 +02:00
XaviDCR92 69584f0a2a + Added source WAV files. See SOUND_SOURCES for license reference. 2017-09-16 12:30:18 +02:00
XaviDCR92 56ed60ff3a + Added BIN/CUE image for non-CDDA mode. 2017-09-16 03:35:52 +02:00