Premium Only Content

No Game Engine Game Dev: Word Sleuth 029: Finish text clipping/wrapping, updating text edit cursor
Streamed on 2024-08-12 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
Today we ported the text clipping from Text to MultiLineText. This was a fairly straightforward copy/paste operation. Then we simplified: I replaced Text with MultiColorText everywhere, removed Text, then renamed MultiColorText to Text. Now we only have one thing that renders text.
With clipping done, I did text wrapping. There are some caveats around very long words, however, that still need to be addressed. The trick is to maintain a "last good wrapping point" as you march through the string, then if you walk off the edge, move everything after the last-good-wrapping-point to your current character to the next line and shift it to the start of the line and do your usual new-line processing.
After all those updates, the TextEdit cursor was unusable so I started updating it. I found that there are a lot more caveats to finding a cursor position with all the new multi-line and word wrapping support. We'll wrap that up tomorrow.
-
46:24
The Rubin Report
1 hour agoListen to Dem Stutter as He’s Forced to Admit Trump Did the Impossible
4.57K6 -
LIVE
The Shannon Joy Show
1 hour agoCountdown To SJ Live - Hey Fam Town Hall 12pm ET LIVE! Tune In HERE
91 watching -
LIVE
The Mel K Show
1 hour agoMORNINGS WITH MEL K -Grand Conspiracy Against the People of the United States Unfolds 10-10-25
557 watching -
LIVE
Dr Disrespect
3 hours ago🔴LIVE - DR DISRESPECT - BATTLEFIELD 6 - THE WAR BEGINS | BF6 LAUNCH DAY
1,909 watching -
DVR
Dr. Eric Berg
4 days agoThe Dr. Berg Show LIVE October 10, 2025
4.23K2 -
LIVE
LFA TV
13 hours agoLIVE & BREAKING NEWS! | FRIDAY 10/10/25
3,846 watching -
59:17
VINCE
3 hours agoBig Tish Gets A Taste Of Her Own Medicine | Episode 144 - 10/10/25
134K145 -
1:57:56
Right Side Broadcasting Network
3 hours agoLIVE REPLAY: First Lady Melania Trump Makes an Announcement - 10/10/25
32.9K33 -
LIVE
Caleb Hammer
3 hours agoHe's So F*cked (I brought in his mom) | Financial Audit
118 watching -
1:13:49
The Big Migâ„¢
4 hours agoLetitia James Indicted FINALLY! More Indictments Coming
3.82K13