jak-project/goal_src/jak2
Grateful Forest abef970f58
jak2: fix hud alignment (#4075)
There were a few things going on here.

Jak 2's menu wheel is zoomed in at 16:9 but zoomed out at 4:3. However,
the custom aspects use the scaling from the 4:3 mode, this makes sense
as you'd want the zoomed out wheel.

However I noticed HUD elements scaled correctly on PS2 16:9 but not PC
16:9, which was a hint.

The hardcoded values for every individual HUD element for 16:9 and 4:3
are in pixels, normalized across 480 being the stretch of the screen.

To fix the HUD alignment I scaled those offsets, scaling them inside
`set-hud-piece-position` meant both textures and merc models got scaled
at the same time.

Note that you can get (very tiny) snapping into different integer values
as you scale to different aspects. This is simply the result of scaling
integer offsets which is what the game uses.

<img width="1704" height="639" alt="2"
src="https://github.com/user-attachments/assets/81e75f7c-04ba-4c9a-8a50-215d13bd4089"
/>
2025-12-08 19:33:01 -05:00
..
build [opengoal] make `none` a child of `object` (#3001) 2023-09-22 10:54:49 +01:00
dgos Dependency graph work - Part 1 - Preliminary work (#3505) 2024-05-12 12:37:59 -04:00
engine jak2: fix hud alignment (#4075) 2025-12-08 19:33:01 -05:00
examples docs: fix method docstrings and grab `@file` comment blocks to use as a file description (#2289) 2023-02-27 18:58:01 -05:00
kernel [jak3] Decouple dust storm particles & push vector from FPS (#4046) 2025-10-08 15:30:33 +01:00
levels decomp: support `part-tracker-spawn` in jak2, part group constants (#4082) 2025-11-20 16:22:29 +01:00
lib custom levels: etie and build actor support for jak2/3 (#3851) 2025-02-01 18:04:26 +01:00
pc [jak3] Implement `city-peace` and `desert-peace` cheats (#4079) 2025-11-20 16:27:01 +01:00
tools g/j2: Some more work on the SQL editor - dump and seed `light` data (#2954) 2023-09-08 21:21:02 -04:00
compiler-setup.gc [goalc] compile/run code for jak2 ckernel, set up dummy KERNEL.CGO (#1625) 2022-07-08 19:23:49 -04:00
game.gp custom levels: etie and build actor support for jak2/3 (#3851) 2025-02-01 18:04:26 +01:00
kernel-defs.gc Add support for brightness and contrast modifiers (#4041) 2025-10-07 21:53:16 +01:00