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.
-
2:13:26
Badlands Media
12 hours agoDevolution Power Hour Ep. 390 - Political Warfare, Jimmy Kimmel & ANTIFA
87.4K26 -
2:43:56
TimcastIRL
7 hours agoJimmy Kimmel FIRED, ABC Pulls Show Over Charlie Kirk Assassination Comments | Timcast IRL
373K202 -
1:58:02
Barry Cunningham
7 hours agoJIMMY KIMMEL CANCELLED | OBAMA IS WHINING! | JD VANCE ON JESSE WATTERS!
104K120 -
2:34:46
TheSaltyCracker
7 hours agoWe Got Him Fired ReeEEStream 9-17-25
150K362 -
43:44
Man in America
9 hours agoAmericans Are About to Lose Everything—And They Don’t Even Know It
54.2K27 -
1:41:11
Adam Does Movies
2 days ago $2.89 earnedTalking Movies + Ask Me Anything - LIVE
41.9K2 -
3:40:08
I_Came_With_Fire_Podcast
15 hours agoNASA Blocks China, TPUSA BOOSTED, Chinese Spamoflauge, & Factional Division
41.6K6 -
33:40
Jamie Kennedy
7 hours agoEp 222 Processing the Loss of Charlie Kirk | HTBITY with Jamie Kennedy
62.1K19 -
1:32:05
Badlands Media
22 hours agoAltered State S3 Ep. 46: Tactical Nukes, Thermite, and the 9/11 Puzzle
74.7K10 -
9:18
ARFCOM News
12 hours ago $1.97 earnedNSSF "Celebrates" ATF Partnership | Glocks BANNED | Redundant Spooky Boi Ban
39.3K9