-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0001-Sonic-Mania-TAS-Build-Patch-v1.patch
34 lines (31 loc) · 1.23 KB
/
0001-Sonic-Mania-TAS-Build-Patch-v1.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 41ce5e7f1d1e741fb0634f595d2ede0742c858f0 Mon Sep 17 00:00:00 2001
From: P-AS <[email protected]>
Date: Wed, 29 Nov 2023 00:36:55 -0500
Subject: [PATCH] Sonic Mania TAS Build Patch v1
---
SonicMania/Objects/Global/HUD.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/SonicMania/Objects/Global/HUD.c b/SonicMania/Objects/Global/HUD.c
index 61126c50..6213857d 100644
--- a/SonicMania/Objects/Global/HUD.c
+++ b/SonicMania/Objects/Global/HUD.c
@@ -194,6 +194,18 @@ void HUD_Draw(void)
HUD_DrawNumbersBase10(&drawPos, player->rings, 0);
}
+ // Sonic Mania TAS Build
+ if (RSDK_GET_ENTITY(SLOT_PLAYER1, Player)->classID != DebugMode->classID) {
+ // Draw Player YVel
+ drawPos.x = TO_FIXED(85);
+ drawPos.y = TO_FIXED(74);
+ HUD_DrawNumbersBase10(&drawPos, abs(player->velocity.y >> 0x0C), 4);
+
+ // Draw Player XVel
+ drawPos.x -= 0x90000;
+ HUD_DrawNumbersBase10(&drawPos, abs(player->onGround ? (player->groundVel >> 0x0C) : (player->velocity.x >> 0x0C)), 4);
+ }
+
if (RSDK_GET_ENTITY(SLOT_PLAYER1, Player)->classID == DebugMode->classID) {
if (player->camera) {
// Draw Camera YPos
--
2.43.0