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.
-
LIVE
Sarah Westall
33 minutes agoTrillion Dollar 5G Lawsuit, Project Archimedes, Mind Control & DEW Weapons w/Attorney Todd Callender
421 watching -
53:11
Standpoint with Gabe Groisman
1 day agoTrump Is Crucial For Hostage Agreement Says Israeli Colonel
9.2K3 -
1:01:22
Anthony Pompliano
1 day ago $0.39 earnedTrump Inauguration Sends Bitcoin Flying
7.73K -
15:21
LFA TV
8 hours agoWHY GOLD WILL CONTINUE TO SKYROCKET
3.9K1 -
1:31:40
MTNTOUGH Fitness Lab
2 hours agoThe Power of Brotherhood: How Vulnerability and Grit Shape Resilient Men with Thosh Collins
16.3K -
1:45:21
Redacted News
3 hours agoTRUMP JUST SENT PUTIN AN ULTIMATUM ON WAR, ZELENSKY PUSHES FOR U.S. BOOTS ON THE GROUND | Redacted
85.7K146 -
1:02:19
In The Litter Box w/ Jewels & Catturd
23 hours agoStargate | In the Litter Box w/ Jewels & Catturd – Ep. 725 – 1/22/2025
92.1K38 -
1:44:50
The Quartering
6 hours agoJ6 Hostage Release Delayed, ICE Raids Begin, Woke Pastor Vs Trump & Biden's Letter To Trump!
131K81 -
DVR
Space Ice
6 hours agoSpace Ice & Redeye: Sylvester Stallone's Cobra With Critical Drinker
11.1K -
11:59
Bearing
10 hours agoCRAZY TikTok Lady's Reaction to Donald Trump's Inauguration 🤣
11.2K34