Premium Only Content

No Game Engine Game Dev: Word Sleuth 061: Moving mediocre programmer art from Sandbox into GameScene
Streamed on 2024-10-07 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
Today I started moving the new mediocre programmer art from the Sandbox into the GameScene. The floor, back wall, chalkboard, bookshelf, table and notebooks are all in. I broke out the Bookshelf into its own class to handle the layout and rendering a bit cleaner. It also handles the books on its own shelves. I also broke the Notebook code out into its own class. Detecting clicks on the Notebooks is a bit nuanced and would clutter up the GameScene code more than I would like.
Through the course of this there were a few opportunities to refactor and cleanup. Code that checks for point in rectangle or triangle has been put into a Math namespace for easier reuse. I did a bit of math checking and the "scaleW" and "scaleH" have been collapsed into a single "scale" function. This works because all of the supported resolutions have a 4:3 aspect ratio. Also a few other incidental refactors and cleanups.
-
LIVE
The Jimmy Dore Show
1 hour agoTrump Tariffs Working As Planned? Trump Open to Raising Taxes on the Rich! w/ Stephen Gardner
7,926 watching -
LIVE
LFA TV
1 day agoThat Big, Beautiful Wall Around the Vatican | TRUMPET DAILY 4.28.25 7PM
115 watching -
1:19:06
Kim Iversen
4 hours agoEpstein Victim DEAD at 41, Ruled Suicide. Suspicious? | The Left DOUBLES DOWN on Extremism
34.8K21 -
2:38:55
vivafrei
10 hours agoLive with Myron Gaines - from Global Politics to the "Manosphere" & Everything in Between
73.3K63 -
1:28:38
Redacted News
3 hours agoEUROPE'S BLACKOUT CRISIS "Nothing works!" & Israel's Silent War vs Iran just got worse | Redacted
85.3K88 -
1:07:19
Candace Show Podcast
3 hours agoFarewell Show: LIVE With Ian Carroll | Candace Ep 183
55.6K83 -
33:37
Kimberly Guilfoyle
6 hours agoThe First 100 Days: Interview with Bienvenido President Abraham Enriquez | Ep217
44K7 -
42:58
Stephen Gardner
3 hours ago🔥BOOM! Trump's NEW EO just changed EVERYTHING!!
27.6K30 -
LIVE
Dr Disrespect
7 hours ago🔴LIVE - DR DISRESPECT - TRIPLE THREAT CHALLENGE - WZ, PUBG, FORTNITE
2,792 watching -
2:12:54
The Quartering
6 hours agoAdam Schiff IN TROUBLE, Woke Lefties MELTDOWN Over Temu, Karmelo Anthony Family LIES, & Much More
136K44