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.
-
6:48
Ben Bankas
4 days ago $13.02 earnedBen Bankas Roasts Chinese Guy | Standup Comedy
80.8K16 -
19:01
Bearing
13 hours agoHasan Piker EXPOSED 🚨 You’re NOT READY For This Video 💥
55.9K27 -
LIVE
TheCrsFamily
54 minutes agoCRS Firearms Live: Let's Talk
291 watching -
2:54:51
SavageJayGatsby
7 hours agoSpicy Saturday: Valentine’s Special 💘
13.5K -
2:35:32
Mally_Mouse
5 hours ago🎮 Let's Play!!: Superhot VR
125K10 -
20:09
MYLUNCHBREAK CHANNEL PAGE
13 hours agoChicago's Hidden Tunnel Network
114K26 -
2:05:49
Putther
6 hours ago $8.33 earned🔴BILLY ANDERSON'S VALENTINES DAY SPECIAL!
80.3K4 -
LIVE
Rallied
7 hours ago $5.10 earnedSolo Challenges & High Vibrations
167 watching -
1:19:56
MattMorseTV
8 hours ago $68.20 earned🔴Trump just DROPPED the HAMMER.🔴
162K301 -
24:21
cyphertank
1 day agoCYPHER TANK S01E03
50K1