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
Pickleball Now
6 hours agoLive: IPBL 2025 Day 6 | Tie-Breaker Drama & Thrilling Qualifiers Take Over Indian Pickleball League
146 watching -
28:31
Living Your Wellness Life
3 days agoEating for Better Hormones
7.7K2 -
1:22:33
Dialogue works
1 day ago $12.43 earnedScott Ritter: Putin Warns Europe: “We’re Ready Right Now”
78.5K61 -
13:14
itsSeanDaniel
2 days agoIlhan Omar EXPOSED for LYING about Somalian Fraud
22.7K37 -
1:52:46
Side Scrollers Podcast
22 hours agoNintendo Fans Are PISSED at Craig + Netflix BUYS Warner Bros + VTube DRAMA + More | Side Scrollers
96.9K6 -
18:43
Nikko Ortiz
17 hours agoWorst Karen Internet Clips...
21.3K5 -
11:23
MattMorseTV
18 hours ago $16.23 earnedTrump just RAMPED IT UP.
33.6K60 -
46:36
MetatronCore
2 days agoHasan Piker at Trigernometry
19.8K7 -
29:01
The Pascal Show
19 hours ago $6.05 earnedRUNNING SCARED! Candace Owens DESTROYS TPUSA! Are They Backing Out?!
26.6K18 -
6:08:30
Dr Disrespect
22 hours ago🔴LIVE - DR DISRESPECT - ARC RAIDERS - FREE LOADOUT EXPERT
75.3K7