Commit graph

24109 commits

Author SHA1 Message Date
James R
e0583a19b3 Menus/Replay: do not draw border in non-green resolutions
The border draws over the buttons, which makes the menu
practically unusable. Not drawing the border is the
simplest thing I could do to fix this.
2024-01-28 17:56:38 -08:00
James R
50781ded69 Menus/Replay: correctly adjust position of quit button in Time Attack 2024-01-28 17:56:35 -08:00
Eidolon
83a32c5acc Merge branch 'fix-texture-scale-overflow-freeze' into 'master'
Prevent overflow when scaling textures

Closes #844

See merge request KartKrew/Kart!1879
2024-01-29 00:27:37 +00:00
Eidolon
742c895228 Merge branch 'xtralives-cheaters-in-tears' into 'master'
Don't affect GP status if retrying

Closes #997

See merge request KartKrew/Kart!1882
2024-01-29 00:27:21 +00:00
Oni
fc8600a0aa Merge branch 'highlight-stumble-floors' into 'master'
debugfinishline: show stumble sectors

See merge request KartKrew/Kart!1872
2024-01-28 23:36:06 +00:00
Oni
ff20f38ffa Merge branch 'in-flight-menus' into 'master'
Course List QOL

See merge request KartKrew/Kart!1867
2024-01-28 23:31:59 +00:00
Oni
a126a0c9a3 Merge branch 'new-credits' into 'master'
New Credits

See merge request KartKrew/Kart!1747
2024-01-28 23:31:30 +00:00
Sal
3958c15dfe New Credits 2024-01-28 23:31:30 +00:00
Oni
bc80233f1f Merge branch 'vote-level-names' into 'master'
Vote level names

See merge request KartKrew/Kart!1873
2024-01-28 23:29:44 +00:00
Oni
cf362c226f Merge branch 'its-ko-time' into 'master'
Battle: "K.O. READY!" appears on your screen when you reach the point limit

Closes #979

See merge request KartKrew/Kart!1871
2024-01-28 23:27:46 +00:00
Eidolon
9fb0efae3c Don't affect GP status if retrying
Fixes KartKrew/Kart#997, and then some. The bot difficulty was also
being affected by retrying after completing a race, so that's prevented
too.
2024-01-28 17:06:47 -06:00
Eidolon
0e307208f8 Add cmake option to skip comptime update
In VS Code, comptime forces the game to be relinked even when no code
has changed. This is a bit of a nuisance when starting with the
debugger in the C++ extension, adding around 5 seconds of startup time
to the game.
2024-01-28 14:54:28 -06:00
Eidolon
6648e55972 Prevent overflow when scaling textures
Fixes KartKrew/Kart#844 which is caused by scaling the texheight by a
spryscale that is too large, triggering arithmetic overflow before the
overflow check even occurs. This is a performance hit, but should not be
very intense with release optimizations.

Instead, we use saturating arithmetic using the same integer promotion
technique as before, but checking in both directions, and also checking
for the multiplication before the addition.

There is an optimization opportunity here and anywhere that overflow
checks are used, by using compiler intrinsics which check the overflow
flag bit on the CPU instead of using integer promotion.
2024-01-28 12:57:00 -06:00
Sally Coolatta
a7df7aa637 Add Medium Font
Monospaced in-between of Console & Thin
2024-01-27 20:38:52 -05:00
Sally Coolatta
f4db29574d Vote level names 2024-01-27 18:10:44 -05:00
toaster
106553f89d Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into srb2-tidy
# Conflicts:
#	src/p_mobj.c
2024-01-27 17:04:00 +00:00
James R
8e07dea007 Menus/Time Attack: add SPB Attack context clue in "Replay..." submenu
- Add a header that says "Time Attack..." or "SPB
  Attack..." depending on the mode
- This only applies to Race Time Attack, not Prisons or
  Special
- Header does not appear if SPB Attack is not unlocked
2024-01-27 04:33:11 -08:00
James R
378fb8ed07 Save SPB Attack replays with "spb-" in the file name
- Files
  - spb-time-best
  - spb-time-lap
  - spb-last
- Menu
  - Toggling SPB Attack refreshes the menu (to show/hide
    certain replay options)
2024-01-27 04:30:38 -08:00
James R
2bf115cd46 Menus/Time Attack: group "Replay Last" with "Best Time" and "Best Lap" 2024-01-27 04:27:13 -08:00
James R
fb5e0d38ac Menus/Time Attack: fix ta_e enum 2024-01-27 04:25:28 -08:00
James R
ff07b92f18 Gamedata: save SPB Attack times separately from normal Time Attack
Bumps gamedata version! Gamedata version 10 -> 11
2024-01-27 04:23:44 -08:00
James R
05d8d83dcc Refactor recorddata_t and separate into recordtimes_t 2024-01-27 04:13:01 -08:00
James R
4576956ca6 Got_Cheat/CHEAT_GIVEPOWERUP: avoid reading out of bounds 2024-01-27 01:11:48 -08:00
James R
044bfdc83a debugfinishline: highlight stumble sectors in yellow 2024-01-26 18:10:07 -08:00
James R
1698e80650 Refactor R_PlaneIsHighlighted 2024-01-26 18:10:07 -08:00
James R
04ab02476f Battle: "K.O. READY!" appears on your screen when you reach the point limit 2024-01-26 17:54:27 -08:00
James R
e30534e574 Let Insta-Whip clashing ignore flashing tics 2024-01-26 16:44:08 -08:00
toaster
06c049bb7e More consistent lastOn --> itemOn and BGImage setting
Fixes Mari's background image bug
2024-01-27 00:02:16 +00:00
James R
c2c15f12d3 POINTS power-up: play SRB2 emerald token SFX on pickup 2024-01-26 15:26:13 -08:00
James R
87531075f1 Versus: fix item box staying invisible forever 2024-01-26 15:12:47 -08:00
James R
3df76ae9a5 Fix end camera freezing level on first tic after level loads
Fixes item boxes not spawning in Prison Break
2024-01-26 15:12:47 -08:00
James R
9adf6e9568 srb2::Draw: add clip method, optionally switch between draw chain's cliprect or global cliprect 2024-01-26 15:12:46 -08:00
James R
510c82ca6d srb2::Draw: inherit global cliprect by default
- Let srb2::Draw be mixed seamlessly with C-style
  V_SetClipRect
2024-01-26 15:12:46 -08:00
James R
fc40d86a73 HUD: draw sphere meter under player nametags 2024-01-26 15:12:46 -08:00
James R
25fa76104f HUD: draw item box next to player nametags if GTR_ITEMARROWS (in Battle) 2024-01-26 14:30:57 -08:00
James R
3278685ef4 HUD: load 4P item spy graphics 2024-01-26 14:30:57 -08:00
James R
23aef8f673 HUD tracking: cull nametags
- Background overlapping nametags become 60% transparent
- Culling is performed separately from other HUD trackers
2024-01-26 14:30:57 -08:00
James R
5ef2df577a HUD tracking: cull 20x10 blocks (previously 20x20) 2024-01-26 14:30:57 -08:00
James R
8ac2efe82c HUD tracking: refactor nametags to use generic HUD tracker sorting 2024-01-26 14:30:57 -08:00
James R
fa63dffe6b debughudtracker: fix splitscreen drawing 2024-01-26 14:30:57 -08:00
James R
9c075b68ec battleufotest: fix splitscreen BUFO spawnpoint HUD tracker 2024-01-26 14:30:57 -08:00
James R
ff0a088b04 V_DrawFill (HWR2): add transparency support 2024-01-26 14:30:56 -08:00
James R
2364fb80a0 Battle: remove overhead arrows (physical object)
Old shitty object from v1 that is about to be replaced by
HUD tracking. :D
2024-01-26 14:30:56 -08:00
James R
aefbd8c58a Remove unused overhead WANTED code
From v1 Battle
2024-01-26 14:30:56 -08:00
James R
a0fb79370b Battle: each player is worth 3 points toward the point limit (previously 4) 2024-01-26 14:30:56 -08:00
James R
45a9042650 srb2::Draw: relax type on colormap/colorize color argument
Lets you pass player_t.skincolor directly to the methods
without using static_cast<skincolornum_t>.

No, I don't want type safety on enums, this is SRB2.
2024-01-26 14:30:56 -08:00
James R
84641c896e Battle: add POINTS power-up, get 6 points 2024-01-26 14:30:56 -08:00
James R
b52384b294 Add K_GivePointsToPlayer, gives the points and spawns the VFX in one fell swoop 2024-01-26 14:30:56 -08:00
AJ Martinez
b08dcc06c1 Player-lock paperitems refinement
- Transparent for single-screen players who can't pick up
- Land quicker and closer after monitor destruction
- Lock for less time to compensate
2024-01-26 14:30:56 -08:00
James R
841827480b Add K_EndBattleRound, end the round and give a player 100 points if they won 2024-01-26 14:30:56 -08:00