Commit Graph

43 Commits

Author SHA1 Message Date
787402efcf CMakeLists.txt: move target-specific logic away 2022-06-07 23:32:32 +02:00
9073d82ea6 Split CMakeLists.txt into platform-specific *.cmake 2022-05-24 22:20:04 +02:00
938ab93482 Make gfx_draw return int 2022-05-24 22:20:04 +02:00
132d8c860e Use realloc(3) directly
It is simply not true realloc(3) cannot be used with NULL pointers.
2022-05-24 22:20:04 +02:00
77d16c32cc font.c: avoid several va_list in favor of large buffer 2022-05-24 22:20:04 +02:00
dea345f412 Allow systems without sound support 2022-05-24 22:20:02 +02:00
354034b06b Remove unused minor stuff 2022-03-31 07:30:14 +02:00
b8c30e83e3 resource.c: decouple collbox from sprite dimensions 2022-03-31 07:29:16 +02:00
405819eef9 font*.bmp: Fix transparency on 6 2022-03-31 07:28:21 +02:00
360f14aa24 Fix exit condition 2022-03-31 07:27:22 +02:00
45337576df Implement touch controls 2022-03-31 06:50:33 +02:00
82c61e3d1d Implement sub-tile collboxes
These will be later used by the pathfinding algorithm.
2022-03-30 08:28:47 +02:00
638dbd0af1 Rename MAP_{X|Y} to MAP_{W|H} 2022-03-30 08:23:15 +02:00
e9d69f9083 camera: implement mouse support 2022-03-30 08:20:21 +02:00
244f0b26f8 Move CURSOR_{WIDTH|HEIGHT} to library scope 2022-03-30 08:20:21 +02:00
f95aed2624 sdl-1.2/mouse.c: fix right click events 2022-03-30 08:20:21 +02:00
94690d69c1 res: upload 24bpp bitmaps
sdl-1.2 cannot work with the 4bpp bitmaps used for the ps1 build, so
24bpp equivalents had to be reconstructed from the originals.
2022-03-30 08:20:21 +02:00
40b370ed42 res: add license info for gold_mine 2022-03-30 08:20:21 +02:00
ae5b0bed12 Import fixmath 2022-03-30 08:20:21 +02:00
3ede0358e0 Add CONTRIBUTING.md 2022-03-30 08:20:21 +02:00
c8cce5ea87 sdl-1.2: implement rect_init and semitrans_rect_init 2022-03-30 08:20:21 +02:00
c5434beff1 sdl-1.2: implement env.c 2022-03-30 08:20:21 +02:00
8347125b19 gfx: separate port-specific interfaces 2022-03-30 08:20:21 +02:00
6c5eb81b3c game.c: remove #if 0 2022-03-30 08:20:21 +02:00
a09fbf12cf Add comments on win9x builds 2022-03-30 08:20:21 +02:00
b7106543c4 .gitignore: add build-ps1 2022-03-30 08:20:21 +02:00
9eee43d3bb Add support for keyboard and mouse 2022-03-30 08:20:21 +02:00
18717569ac Add metadata header to media files
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.
2022-03-30 08:20:21 +02:00
3ce1418ce5 container.c: distinguish ferror/feof from other errors 2022-03-30 08:20:21 +02:00
c6ac388f86 terrain.c: use long for map coordinates 2022-03-30 08:20:21 +02:00
a927f627bb sdl-1.2: hide system cursor 2022-03-30 08:20:21 +02:00
7929aecc79 Copy src/system.cnf to cdroot on PS1 builds 2022-03-30 08:20:21 +02:00
bdd0af2ce0 Strip debug info for Win9x builds 2022-03-30 08:20:21 +02:00
3d90015c62 Replace x_get functions with macros
The PS1 port relies on a heap for primitives since the GPU renders the
scene asynchronously. However, SDL-based platforms render primitives
synchronously, so structures can be allocated on the stack instead.
2022-03-30 08:20:21 +02:00
df2ecf50e0 Set common cdroot path to all platforms 2022-03-30 08:20:20 +02:00
68383dad33 Refresh camera and terrain rendering on screen resize 2022-03-30 08:20:20 +02:00
91f80f9a2f Add build instructions for Win9x 2022-03-30 08:20:20 +02:00
410ad52640 Add project README.md and demo 2022-03-30 08:20:20 +02:00
24f1366b51 Add tools 2022-03-30 08:20:20 +02:00
8c10334252 Add project source code 2022-03-30 08:20:20 +02:00
fc9beffe01 Add project resources 2022-03-30 08:20:20 +02:00
adb7d06263 Set source code license 2022-03-30 08:20:20 +02:00
2ea85045b8 Add .gitignore 2022-03-30 08:20:16 +02:00