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.
-
3:33:15
Alex Zedra
5 hours agoLIVE! New Game!
43.1K6 -
38:05
Man in America
13 hours agoEric Trump on Prosecuting TREASON, Civil War & the Battle of Good vs. Evil
49.7K27 -
3:04:23
Barry Cunningham
6 hours agoBREAKING NEWS: PRESIDENT TRUMP BROKERS HISTORIC PEACE DEAL IN THE MIDDLE EAST! AND MORE NEWS!
70.3K44 -
6:28:59
SpartakusLIVE
9 hours agoThe Boys are BACK || The Duke of NUKE and his Valiant Knights of the Tower of POWER
54.8K2 -
1:15:32
Tucker Carlson
6 hours agoICE Protests and Antifa Riots: Tucker Carlson Warns of Total Destruction if America Doesn’t Act Fast
73.6K260 -
3:47:33
I_Came_With_Fire_Podcast
14 hours agoChinese Spy GETS OFF | Is Comey's Indictment Selective | Posse Comitatus Dilemma
29K1 -
1:55:55
Adam Does Movies
16 hours ago $0.90 earnedTalking Movies + Ask Me Anything - LIVE
20.7K1 -
5:46
Gun Owners Of America
12 hours agoNew Data Shows Voters Want Pro Gun Politicians
13.7K6 -
9:22:30
Dr Disrespect
15 hours ago🔴LIVE - DR DISRESPECT - BLACK OPS 7 - BANG BANG BANG
135K5 -
6:54
China Uncensored
15 hours agoA SHOCKING Discovery Proves We're Already At War With China
19.7K42