aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* player: limit data sizes for resources and populationXavier Del Campo Romero2022-06-263-3/+6
| | | | | - All platforms should allow for the same resources. - Population is not expected to exceed UCHAR_MAX on any platform.
* camera: implement fixed cursor movementXavier Del Campo Romero2022-06-243-3/+77
| | | | | | | | | | | On platforms with PERIPHERAL_TYPE_PAD, navigating through menus and options can be cumbersome if moving the cursor freely around the screen. Therefore, this commit instead defines a list of (X, Y) coordinates that the cursor can jump to. The implementation also attempts to guess which direction the cursor should jump to for the previous/next point, and hence determine which button should be pressed by the user.
* camera.c: refactor cursor_initXavier Del Campo Romero2022-06-241-4/+15
| | | | So that uninitialized members are set to 0.
* peripheral: provide common actionsXavier Del Campo Romero2022-06-246-38/+38
| | | | | | Whereas some actions are context-specific (e.g.: selecting a player), some are context-independent and can be executed for all screens (e.g.: exiting the game).
* README.md: add copyright noticeXavier Del Campo Romero2022-06-241-7/+12
|
* README.md: update according to current statusXavier Del Campo Romero2022-06-241-2/+8
|
* cmake/ps1.cmake: use add_library for libpsx.aXavier Del Campo Romero2022-06-191-5/+7
|
* Deprecate <TARGET>_BUILD in favor of CMAKE_TOOLCHAIN_FILEXavier Del Campo Romero2022-06-192-23/+32
|
* camera: remove dependency against terrainXavier Del Campo Romero2022-06-126-9/+20
| | | | | This will allow using camera for purposes other than showing the game map.
* Split peripheral-related logic into its own componentXavier Del Campo Romero2022-06-1213-78/+165
| | | | | | | | | | | This has several advantages: - `camera` no longer needs to define public functions for each peripheral type. - Peripheral-related is now no longer tighly coupled to human_player, so peripheral logic can be reused elsewhere e.g.: on menus. - Makes camera_update_touch consistent compared to equivalent functions, since now `pan` has now been moved to `camera` (as it should be).
* CMakeLists.txt: limit libraries linked to by ${PROJECT_NAME}Xavier Del Campo Romero2022-06-121-1/+2
| | | | | Old behaviour was linking to all components, but main.c currently only needs a few of them.
* sdl-1.2/sound.c: use SDL_WasInitXavier Del Campo Romero2022-06-111-4/+2
|
* sdl-1.2: return to original dimensions on fullscreen exitXavier Del Campo Romero2022-06-111-3/+8
|
* Implement button componentXavier Del Campo Romero2022-06-116-1/+170
|
* res: add btn_{left,mid,right}Xavier Del Campo Romero2022-06-111-0/+27
|
* res/CMakeLists.txt: do not use transparency for sel_mid_vXavier Del Campo Romero2022-06-111-1/+1
|
* README.md: reflect current statusXavier Del Campo Romero2022-06-081-11/+18
|
* win9x.cmake: remove unneeded dependenciesXavier Del Campo Romero2022-06-081-5/+1
|
* win9x.cmake: use target commands for SDL and SDL_mixerXavier Del Campo Romero2022-06-081-8/+12
| | | | | | | | | | | | Since libSDL.a and libSDL_mixer.a are compiled separately from this project, some hacks had been used to get the build running. However, this approach did not make proper use of target-level properties, which are encouraged according to modern CMake standards over global-level commands such as include_directories() or link_libraries(). OTOH, Win32 dependencies were being imported using link_libraries(), but they in fact are SDL dependencies, so target_link_libraries() can be used instead.
* pad/CMakeLists.txt: add missing call to target_link_libraries()Xavier Del Campo Romero2022-06-081-0/+1
|
* CMakeLists.txt: assume native build by defaultXavier Del Campo Romero2022-06-081-5/+4
| | | | | | | | | This has been decided to make the de-facto standard CMake build process (shown below) possible. $ mkdir build $ cd build/ $ cmake ..
* CMakeLists.txt: build host tools as ExternalProjectXavier Del Campo Romero2022-06-083-3/+14
|
* CMakeLists.txt: move target-specific logic awayXavier Del Campo Romero2022-06-074-7/+9
|
* Split CMakeLists.txt into platform-specific *.cmakeXavier Del Campo Romero2022-05-244-83/+82
|
* Make gfx_draw return intXavier Del Campo Romero2022-05-244-4/+11
|
* Use realloc(3) directlyXavier Del Campo Romero2022-05-241-7/+1
| | | | It is simply not true realloc(3) cannot be used with NULL pointers.
* font.c: avoid several va_list in favor of large bufferXavier Del Campo Romero2022-05-241-32/+6
|
* Allow systems without sound supportXavier Del Campo Romero2022-05-244-11/+32
|
* Remove unused minor stuffXavier Del Campo Romero2022-03-312-2/+1
|
* resource.c: decouple collbox from sprite dimensionsXavier Del Campo Romero2022-03-311-6/+26
|
* Fix exit conditionXavier Del Campo Romero2022-03-311-1/+1
|
* Implement touch controlsXavier Del Campo Romero2022-03-319-18/+177
|
* Implement sub-tile collboxesXavier Del Campo Romero2022-03-309-7/+104
| | | | These will be later used by the pathfinding algorithm.
* Rename MAP_{X|Y} to MAP_{W|H}Xavier Del Campo Romero2022-03-303-8/+8
|
* camera: implement mouse supportXavier Del Campo Romero2022-03-301-2/+27
|
* Move CURSOR_{WIDTH|HEIGHT} to library scopeXavier Del Campo Romero2022-03-302-13/+13
|
* sdl-1.2/mouse.c: fix right click eventsXavier Del Campo Romero2022-03-301-1/+8
|
* Import fixmathXavier Del Campo Romero2022-03-301-5/+1
|
* Add CONTRIBUTING.mdXavier Del Campo Romero2022-03-301-0/+71
|
* sdl-1.2: implement rect_init and semitrans_rect_initXavier Del Campo Romero2022-03-301-2/+7
|
* sdl-1.2: implement env.cXavier Del Campo Romero2022-03-301-7/+82
|
* gfx: separate port-specific interfacesXavier Del Campo Romero2022-03-3016-32/+105
|
* game.c: remove #if 0Xavier Del Campo Romero2022-03-301-2/+2
|
* Add comments on win9x buildsXavier Del Campo Romero2022-03-301-2/+23
|
* Add support for keyboard and mouseXavier Del Campo Romero2022-03-3028-254/+870
|
* Add metadata header to media filesXavier Del Campo Romero2022-03-3011-6/+244
| | | | | | | | | | The following properties are supported: - Sound: "loop". Must be either 0 or 1 - Images: "transparent". Must be either 0 or 1 These headers are only used for non-PS1 builds, since .TIM and .VAG files do already implement such information.
* container.c: distinguish ferror/feof from other errorsXavier Del Campo Romero2022-03-301-2/+8
|
* terrain.c: use long for map coordinatesXavier Del Campo Romero2022-03-301-1/+1
|
* sdl-1.2: hide system cursorXavier Del Campo Romero2022-03-301-0/+1
|
* Copy src/system.cnf to cdroot on PS1 buildsXavier Del Campo Romero2022-03-301-5/+1
|