Skip to content

Commit 52c48c3

Browse files
committed
Merge 'Move Triforce Hunt counter out of CRT unsafe area' (OoTRandomizer#2084)
# Conflicts: # ASM/build/asm_symbols.txt # ASM/build/bundle.o # ASM/build/c_symbols.txt # data/generated/rom_patch.txt # data/generated/symbols.json
2 parents 9532e81 + b28f55a commit 52c48c3

9 files changed

Lines changed: 8754 additions & 8777 deletions

File tree

ASM/build/asm_symbols.txt

Lines changed: 343 additions & 343 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ASM/build/bundle.o

-256 Bytes
Binary file not shown.

ASM/build/c_symbols.txt

Lines changed: 326 additions & 330 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ASM/c/triforce.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void draw_triforce_count(z64_disp_buf_t* db) {
2727
frames = frames % (TRIFORCE_SPRITE_FRAMES * FRAMES_PER_CYCLE);
2828
} else {
2929
// Do a fade in/out effect if not in pause screen
30-
if ( frames <= TRIFORCE_FRAMES_FADE_INTO ) {
30+
if (frames <= TRIFORCE_FRAMES_FADE_INTO) {
3131
alpha = frames * 255 / TRIFORCE_FRAMES_FADE_INTO;
3232
} else if (frames <= TRIFORCE_FRAMES_FADE_INTO + TRIFORCE_FRAMES_VISIBLE ) {
3333
alpha = 255;
@@ -65,9 +65,14 @@ void draw_triforce_count(z64_disp_buf_t* db) {
6565
// Setup draw location
6666
int str_len = required_digits + pieces_digits + 1;
6767
int total_w = str_len * font_sprite.tile_w + triforce_sprite.tile_w;
68+
// Draw the counter centered horizontally and at the bottom of CRT safe screen space.
6869
int draw_x = Z64_SCREEN_WIDTH / 2 - total_w / 2;
69-
int draw_y_text = Z64_SCREEN_HEIGHT - (font_sprite.tile_h * 1.5) + 1;
70-
int draw_y_triforce = Z64_SCREEN_HEIGHT - (triforce_sprite.tile_h * 1.5) + 3 + 1;
70+
// And on pause screen, keep the height but move it on the right, symmetric to the rupee icon.
71+
if (z64_game.pause_ctxt.state > PAUSE_STATE_OFF) {
72+
draw_x = (Z64_SCREEN_WIDTH - 26) - total_w;
73+
}
74+
int draw_y_text = 206;
75+
int draw_y_triforce = 206;
7176

7277
// Create collected/required string
7378
char text[str_len + 1];

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Bug fixes
1313
* The Deku Shield pot in the Spirit Temple is no longer shuffled when both `Fix Broken Drops` and `Include Empty Pots` are off.
1414
* For consistency with other location types, excluded pot/crate/beehive/wonderitem/etc. locations no longer behave as if their shuffle setting was off.
15+
* The Triforce Piece counter display has been moved to a CRT-safe position.
1516

1617
## Other changes
1718
* Big poe souls can now be collected while riding Epona.

data/generated/patch_symbols.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)