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
Astral Doge Plays!
1 hour agoHyrule Warriors: Age of Imprisonment ~LIVE!~ Ganondorf Is a Jerk
70 watching -
1:25:13
Kim Iversen
3 hours agoMKUltra Victims Are SUING — The CIA's Darkest Secret EXPOSED
88.9K44 -
LIVE
GritsGG
5 hours ago#1 Most Warzone Wins 4015+!
83 watching -
16:30
Stephen Gardner
3 hours ago🚨OVAL OFFICE EXPOSES TRUMP TAKEOVER – FILIBUSTER NUKED!
17.5K24 -
LIVE
The Rabble Wrangler
16 hours agoThe Best in the West Dominates Battlefield
26 watching -
LIVE
cosmicvandenim
4 hours agoCOSMIC VAN DENIM
58 watching -
1:34:03
Redacted News
4 hours agoBREAKING! CIA FURIOUS & EMERGENCY WHITE HOUSE MEETING - ISRAELI SPY CAUGHT MEETING WITH AMB HUCKABEE
128K115 -
1:22:06
vivafrei
5 hours agoCFIA Goes After a REFUGE? Charlie Kirk Missing Evidence "Uncovered"? Democrats are Epostein Simps!
130K69 -
1:44:33
The Quartering
6 hours agoTrump Calls For Hangings, McDonalds SNAP Controversy, The Demonic Relationship In Wicked & More
159K70 -
21:40
Bitcoin Policy Institute
8 hours agoCongressman Warren Davidson Unveils the “Bitcoin for America Act” | Spotlight Series #1
36.4K