7384 Commits

Author SHA1 Message Date
UnknownShadow200
454e41fcd3 Add a terminal/CLI window backend 2024-05-21 21:31:14 +10:00
Goodlyay
f82cdb7a7b Some more minor tidyup 2024-05-20 23:09:54 -07:00
UnknownShadow200
1290640a7c Some minor tidyup 2024-05-20 22:21:50 +10:00
UnknownShadow200
48c5c0dc88 Start making scroll wheel bindable 2024-05-20 21:55:39 +10:00
UnknownShadow200
dfe2ae1dd1 Increase default map size in classic mode to match original classic 2024-05-20 20:51:09 +10:00
UnknownShadow200
99c3c07988 PS2: Really fix this time 2024-05-20 20:01:16 +10:00
UnknownShadow200
f4865e4376 Try to fix Dreamcast/PS2 ports failing to compile 2024-05-20 07:25:57 +10:00
UnknownShadow200
e91fff6f85 TNT shouldn't blow up in singleplayer when in classic mode 2024-05-19 22:31:48 +10:00
Goodlyay
21ee159b2c Don't pointlessly reload chunks if lighting mode is the same as before 2024-05-18 21:16:50 -07:00
Goodlyay
9d83d8a345 Merge branch 'master' into ModernLighting 2024-05-18 17:33:24 -07:00
Goodlyay
f4aaced448 Support server changing, locking, and reverting lighting mode 2024-05-18 17:32:26 -07:00
UnknownShadow200
b24e2cb56b Linux: Try adding AltGr support 2024-05-19 08:14:00 +10:00
UnknownShadow200
9d7bde7218 Windows/Linux: Add more special keys support 2024-05-18 20:19:11 +10:00
Goodlyay
64c4582b01 Merge branch 'master' into ModernLighting 2024-05-18 00:20:58 -07:00
Goodlyay
3e797338db Fix out of bounds colors in fancy lighting 2024-05-17 18:09:04 -07:00
UnknownShadow200
a9929e52b0 Saturn: Double performance and fix timing sort of 2024-05-17 23:14:59 +10:00
Goodlyay
44d808016c Fix grass physics in singleplayer 2024-05-17 02:16:50 -07:00
UnknownShadow200
1e765919ea More multimedia keys 2024-05-17 18:31:59 +10:00
UnknownShadow200
0ad6d4e8ba Windows: Add support for binding to some media keys 2024-05-17 17:53:36 +10:00
Goodlyay
883d93c6b8 Change "Fancy lighting" option bool to "Lighting mode" enum
Fully rename modern lighting to fancy lighting internally
Other misc code cleanup and rename "sun" light type to "lamp"
2024-05-16 20:21:38 -07:00
UnknownShadow200
a5dfd2ef8b All graphics backends can now see if in 2D mode or not 2024-05-16 21:28:10 +10:00
UnknownShadow200
2d5e0e2edf Fix NetBSD workflow 2024-05-16 18:47:09 +10:00
UnknownShadow200
a3e559add9 Linux/macOS: Support 4 extra buttons, partially addresses #1186 2024-05-16 17:20:17 +10:00
Goodlyay
d18a8fe988 Fix overly bright env colors 2024-05-15 22:12:44 -07:00
Goodlyay
fd7988e492 Support LavaLight and LampLight colors 2024-05-15 21:42:40 -07:00
Goodlyay
40f454b602 Support LavaLight and LampLight env color part 1 2024-05-15 20:41:39 -07:00
Goodlyay
c4235fa653 Support blocks casting "sun" color 2024-05-15 18:46:23 -07:00
Goodlyay
a994bf367c Update lighting appropriately when block definitions are changed 2024-05-15 17:04:18 -07:00
UnknownShadow200
29859ca9ab Dreamcast: Unify assembly 2024-05-15 22:00:24 +10:00
Goodlyay
f1e7cad094 Rename and clarify lighting-related options 2024-05-15 03:54:27 -07:00
Goodlyay
a9c5c7167c Support BlockLight EnvColor variable 2024-05-15 03:38:46 -07:00
UnknownShadow200
9a69e3fac6 Fix order of buttons in PauseScreen to work better for gamepad input 2024-05-15 20:17:06 +10:00
Goodlyay
d401b13cbb Fix wrong axis in Z light unspread 2024-05-14 16:50:57 -07:00
Goodlyay
c93a3c56c2 Fix missing return value in Block_WriteFullBright (thanks Unk) 2024-05-14 01:31:09 -07:00
UnknownShadow200
8621415f50 Dreamcast: Move clipflag calculation into vertex transform code 2024-05-14 17:52:02 +10:00
Goodlyay
e82fb20943 Not to jinx it, but lighting updates seems to fully work now
TODO: Handle "sun" color light updates and calculations
2024-05-14 00:15:40 -07:00
Goodlyay
1077948a13 WIP remove lights when blocks update 2024-05-13 20:54:37 -07:00
Goodlyay
0b597fbb3f Light updates when placing light sources now 2024-05-13 14:40:14 -07:00
UnknownShadow200
effa39f3aa Merge remote-tracking branch 'origin' into ModernLighting 2024-05-13 22:56:18 +10:00
UnknownShadow200
66cf05667c Try to be a bit more efficient in LightHint 2024-05-13 22:54:26 +10:00
UnknownShadow200
1151eb473d Fix can't manually run workflows on non-master branches 2024-05-13 22:24:47 +10:00
UnknownShadow200
779c75022b Make it compile with non-MSVC compilers 2024-05-13 21:35:20 +10:00
UnknownShadow200
6b089ccb22 Xbox: Use proper way of infinite timeout when waiting for a signal 2024-05-13 21:10:49 +10:00
Goodlyay
957d89ecd0 Break lighting update 2024-05-13 02:06:28 -07:00
UnknownShadow200
e0970e1c9f Xbox: Add support for disabling stuff that doesn't work in cxbx-reloaded 2024-05-12 21:52:10 +10:00
Goodlyay
b26e9fc3a9 Lighting now updates in an unoptimized way when blocks are changed 2024-05-12 01:10:34 -07:00
Goodlyay
d759277961 Don't pointlessly allocate memory for chunks with no block lighting data 2024-05-11 20:39:40 -07:00
Goodlyay
5221a827c7 revert "always use sunlight color" test 2024-05-11 19:55:37 -07:00
Goodlyay
4e01e2ac67 Less code duplication when calculating lighting
Also don't actually include sunlight in chunkLightingData as it's already calculated from classic heightmap.
TODO: don't waste memory allocating lighting data for chunks that have no light-casting block influence
2024-05-11 19:44:35 -07:00
UnknownShadow200
8a3f02dc0c Xbox: Don't pointlessly create unused index buffer 2024-05-12 11:27:47 +10:00