Commit graph

24873 commits

Author SHA1 Message Date
James R.
bf20db1e5e HUD: draw item box over everything else 2023-10-03 21:28:34 -07:00
James R.
4631af55c4 HUD: do not include starting Battle Bumper count, "x/y" -> "x"
- 1P/2P:
  - Resize sticker with number of digits
- 3P/4P:
  - Pad to 2 digits
  - Use larger font
2023-10-03 21:28:34 -07:00
James R.
da2f083e2c HUD: fit bumpers, prisons, spheres, speedometer, rankings, item box HUD without overlapping 2023-10-03 21:28:34 -07:00
James R.
36bbf08ab0 HUD: fix alignment of 2P level timer and power-ups 2023-10-03 21:28:34 -07:00
James R.
454850d349 ST_CalculateFadeIn: do not interpolate at very beginning or end of fade 2023-10-03 21:28:34 -07:00
James R.
90d8a9643f G_CanView: unconditionally let view a player already viewed on a different splitscreen 2023-10-03 21:28:33 -07:00
James R.
8b79689d81 Add K_DirectorIsAvailable
Fixes director not working correctly if there are
duplicates in displayplayers.
2023-10-03 21:28:33 -07:00
James R.
d020c9faaa Add G_FixCamera, reset camera, angle and view interpolation 2023-10-03 21:28:33 -07:00
James R.
f2cc5ce36a R_ResetViewInterpolation: wait an extra tic if R_UpdateViewInterpolation has not run yet, do not add extra time for subsequent calls 2023-10-03 21:28:33 -07:00
James R.
7b3010c93d Fix many instances of splitscreen view number if there are duplicate displayplayers
- Avoid iterating displayplayers to find view number and
  prefer R_GetViewNumber.
- Iterate over all matching displayplayers if necessary,
  instead of stopping at the first match.
2023-10-03 21:28:33 -07:00
James R.
d5bac57409 Ring sting indicator: show for owner player as well 2023-10-03 21:28:33 -07:00
James R.
bcd4963f2e Always set starting bumpers in P_SpawnPlayer 2023-10-03 21:28:33 -07:00
Oni
f195b9742a Merge branch 'hardcode-chaos-chute' into 'master'
Hardcode Chaos Chute objects

See merge request KartKrew/Kart!1526
2023-10-04 03:50:56 +00:00
James R
035b6cca8f Merge branch 'reduce-tester-build-cope' into 'master'
Make making TESTERS builds simpler

See merge request KartKrew/Kart!1535
2023-10-04 03:40:15 +00:00
James R
6b18563549 Merge branch 'precip-height-random-crash' into 'master'
Conditionally randomize precip height

Closes #528

See merge request KartKrew/Kart!1536
2023-10-04 00:12:10 +00:00
Eidolon
f13871ddbf Conditionally randomize precip height 2023-10-03 19:07:25 -05:00
James R
99f816f34b Merge branch 'window-resolution-fixes' into 'master'
Fixes to HWR2 window, framebuffer resizing; scr_scale, scr_x, scr_y cvars for my personal use

See merge request KartKrew/Kart!1537
2023-10-03 23:43:20 +00:00
Eidolon
f364bfb565 Merge branch 'hanicef-branchless' into 'master'
Avoid branch prediction slowdowns in R_PointOnSide

See merge request KartKrew/Kart!1540
2023-10-03 22:57:15 +00:00
Gustaf Alhäll
2f01c6fa16 Avoid branch prediction slowdowns in R_PointOnSide
# Conflicts:
#	src/r_main.c
2023-10-02 19:35:53 -05:00
Oni
bcc8fc6438 Merge branch 'freeze' into 'master'
Mobj thinker freeze condition rework

Closes #690

See merge request KartKrew/Kart!1505
2023-10-02 05:42:19 +00:00
Oni
1387fa81a8 Merge branch 'ballz-activation' into 'master'
Ball Switch

See merge request KartKrew/Kart!1534
2023-10-02 05:41:46 +00:00
Oni
200986f8b9 Merge branch 'sunbeam-palm-draw-further' into 'master'
Make Sunbeam Paradise palm trees draw from infinite distance

See merge request KartKrew/Kart!1538
2023-10-02 03:38:00 +00:00
James R.
7c4bb65380 MT_SUNBEAMPALM_STEM, MT_SUNBEAMPALM_LEAF: add MF_DRAWFROMFARAWAY 2023-10-01 18:08:18 -07:00
James R.
a7382ca9d0 UpscaleBackbuffer::begin_pass: use separate renderpass to clear framebuffer if texture was recreated
Fixes wipes potentially reading invalid data from the
framebuffer if the texture was recreated but not yet
rendered to.
2023-09-30 19:23:14 -07:00
James R.
2ec5d3e6b0 Add scr_scale, scr_x, scr_y cvars to scale and adjust viewport position 2023-09-30 16:50:41 -07:00
James R.
37dc1189bb srb2::hwr2::BlitRectPass::set_output: set x/y as well 2023-09-30 16:38:56 -07:00
James R.
2d9d06e267 Let window be resizable 2023-09-30 16:09:10 -07:00
James R.
18efb35602 SDLSetMode: render immediately after resolution change to avoid 1-frame of texture presented at wrong size 2023-09-30 16:07:53 -07:00
Lach
7cd059dfb3 Merge remote-tracking branch 'origin/master' into hardcode-chaos-chute 2023-09-29 22:41:31 +10:00
Lach
2bdc055139 Scale Chaos Chute objects 2023-09-29 20:27:13 +10:00
Lach
abf784cc79 Have bots avoid MT_SPECIALSTAGEBOMB 2023-09-29 20:25:59 +10:00
Lach
1ea5b6759a Add screenshake to MT_SPECIALSTAGEBOMB explosions 2023-09-29 20:23:18 +10:00
toaster
c26b4036b7 Challenges Menu: Subtle glowverlay on the Chao Key in the top left if you're able to skip the currently selected tile 2023-09-29 11:01:20 +01:00
toaster
f1241d692f Improved tutorial messaging
They're now called Big Challenges, because Chrome used it for space reasons and it's funny to be reminded of the Sanrio character
2023-09-29 10:03:53 +01:00
toaster
5ac1854b1b The conversion rate for Rounds to Keys is now 32:1 per popular consensus 2023-09-29 10:03:05 +01:00
toaster
911588a5fe Challenges Tutorial messages
Currently exists for:
- Generating a Chao Key
- Attempting to use a Chao Key on a Major Challenge
    - Only shows after Generating a Chao Key just so it doesn't fire before you know what's going on
Text is preliminary
2023-09-29 00:25:51 +01:00
toaster
07afe6cb06 Challenge Grid is 5 tiles high now again
I'm sorry, it was just TOO SWAG.
Gamedata minor version increment
2023-09-28 22:30:26 +01:00
toaster
20f47a69dd Challenges Menu: Cooler winged counters for Chao Keys and Completion Percentage
Moves rounds-to-key metyr back to being horizontal and under the counter again, but integrated into the wing
2023-09-28 21:54:42 +01:00
toaster
aca676a7b6 M_DrawChallengePreview: Fix inverted presence of Alt-character stats dot on Character Select preview 2023-09-28 21:40:24 +01:00
toaster
54ddf72466 Challenges Menu: Do not show any conditiontext underlay for empty tile spots 2023-09-28 12:29:44 +01:00
toaster
cf1367fb8d Challenges Menu: Chao Medal icon in the top right
Fills up as you complete challenges.
Unlock all Challenges without using Chao Keys on a major tile to get the Beginner Chao Medal.
Do so without using any Chao Keys at all and you get 101%, with the Challenge Chao Medal!
(This can retroactively apply if you complete the relevant tasks legitimately at a later date.)

Also makes CC_s into an enum (now prefixed with CMC_, since CC_MAX exists in a header file already).
2023-09-28 12:28:14 +01:00
toaster
bd7be2dd6f M_DrawChallengeKeys: Grey out the last Chao Key on the stack if you're either out of them, or going to be out of them after the animation is over 2023-09-28 12:22:17 +01:00
toaster
6bf364545e Seperate our M_DrawChallengeKeys from the already pretty big M_DrawChallenges 2023-09-28 09:57:32 +01:00
SteelT
f63eb31d5b Remove host-testers configure preset from CMakePresets.json 2023-09-27 19:31:00 -04:00
toaster
1a91f41dbb Update Challenge Menu UI
- Percentage for Challenges completion
- Smaller footprint in either top corner
    - Uses mini rank numbers
    - Rounds to new Key meter is now vertical
2023-09-27 21:19:39 +01:00
toaster
f29430f29c Longer delay for using a Chao Key on a Major Challenge Tile
Also tidies up a lot of the code and constants related to the Key usage timing
2023-09-27 20:54:32 +01:00
toaster
3e901b312c Catch all unconditional cv_playercolor[] visuals
Resolves #704
Now converts to skin prefcolor in:
- Player menu party
- Challenges menu
    - Why it's done on this branch - want to avoid merge conflicts
- Gamepad indicator
    - Actually fixes a bug at the same time for skins with nonstandard startcolors
2023-09-27 16:02:29 +01:00
toaster
1ce41bdfb4 Large Challenge Tiles can now be Key'd.
- Must have every challenge surrounding it unlocked. (CHE_ALLCLEAR, see previous commits)
- Takes 10 Chao Keys.
- Has a swag animation.

In addition:
- Replace the DEVELOP-only Z button behaviour with "add a free key", since large tiles are no longer permalocked, only expensive.
2023-09-27 16:02:29 +01:00
toaster
33dfb697bf M_UpdateChallengeGridExtraData: Slight optimisation in initial setup 2023-09-27 16:02:28 +01:00
toaster
b33597e225 Beginnings of system for using Chao Keys on large tiles
- M_UpdateChallengeGridExtraData: Register whether major unlock tiles have had every surrounding Challenge cleared (CHE_ALLCLEAR)
- M_DrawChallengeTile: For locked tiles with CHE_ALLCLEAR, show a little dot (temporary drawer)
2023-09-27 16:02:28 +01:00