Premium Only Content
No Game Engine Game Dev: Word Sleuth 026: Finally fixed audio and started multi-line text
Streamed on 2024-08-06 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
I finally slayed the audio demons today. No more annoying popping at the end of every sound. There were two issues, both of them in the process that embeds the audio in the code. One was an erroneous offset increment which appended some trash data on the end of sounds, the other was the wrong size being written to the file, resulting in yet more trash data being appended to the sound data. Removing both left all the sounds minty fresh.
Then it was on to updating text rendering. The first task was to fix the y-axis popping when different characters are typed depending on how it fits relative to the text baseline. The initial y alignment algorithms just used the glyph heights. Instead it now uses the max height and min depth relative to the baseline to compute adjustments. It looks much better.
Finally, I started updating text to handle multi-line text. We didn't have much time, but there is a start. It does show things on multiple lines, but we ended before finishing vertical alignment or even looked at horizontal alignment. There will also be other fallout from these changes, like to the cursor handling of a TextEdit.
-
22:57
RTT: Guns & Gear
17 hours ago $0.03 earnedPSA Dagger vs. Bear Creek Arsenal BC-102 | The Better Pistol For The Poors
2517 -
8:28
MichaelBisping
4 hours agoBISPING: "Islam WILL RETIRE after UFC 311!?" | Makhachev Wants Belal or Shavkat at WELTERWEIGHT
921 -
1:13:55
Eye of the STORM
4 months agoEye of the STORM Podcast S2 E3 08/19/24 with Sam Anthony
4701 -
1:04:22
PMG
55 minutes ago"Your Marriage Can Be Saved with Art Thomas"
-
59:14
Tactical Advisor
3 hours agoNew Gun Build / Fires update | Vault Room Live Stream 013
23.3K8 -
LIVE
Vigilant News Network
16 hours agoMeta Staff MELT DOWN as Zuckerberg BETRAYS Wokeness | The Daily Dose
1,646 watching -
2:58:27
I_Came_With_Fire_Podcast
11 hours agoGWOT, Brotherhood, and Unspoken Truths: A JTAC's Insights" with Former Action Guys Podcast
18.7K2 -
15:59
GubbaHomestead
20 days agoWhy You Need This For Your Homestead
39.6K8 -
16:05
DEADBUGsays
1 day agoTHE BABYSITTER KILLER | Murder by Design #38
65.4K5 -
12:40
Chris From The 740
1 day ago $5.49 earnedIs The Walther P22 Still Trash? Let's Find Out
50.4K17