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
megimu32
59 minutes agoOTS: Born to Grill, Raised on Fireworks - 4th of July Throwbacks
147 watching -
1:27:38
Glenn Greenwald
3 hours agoGlenn Takes Your Questions on the Ukraine War, Peter Thiel and Transhumanism, Trump’s Middle East Policies, the New Budget Bill, and More | SYSTEM UPDATE #481
21.8K6 -
LIVE
SpartakusLIVE
3 hours agoSHAVING my BEARD on stream TONIGHT || Chiseled JAWLINE, peak MASCULINITY, and SUAVE FRESH FACE
175 watching -
10:10
Nicholas Bowling
1 hour agoWe Preached the Gospel to College Students… Then THEY Preached Too | UT Recap
21 -
1:52:01
TheRyanMcMillanShow
4 hours agoTrigger Happy 2: Heavy and Deep - RMS 035
221 -
DVR
Edge of Wonder
5 hours agoPresidential Hauntings, Bizarre Food & Independence Day Mandela Effect: EOW July 4th Party!
8.46K1 -
1:55:32
Nick Freitas
2 hours agoDo We Need a New Declaration of Independence?
3055 -
18:11
Blackstone Griddles
3 hours agoEpisode 3 | Breakfast, Lunch, and Dinner
211 -
38:28
The Lou Holtz Show
3 hours agoThe Lou Holtz Show S2 EP13 | Chris Zorich on Grit, Love & Building a Legacy at Notre Dame #podcast
124 -
6:25
Melonie Mac
5 hours agoTomb Raider is Struggling Confirmed
7.87K6