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:18:43
Tundra Tactical
7 hours ago $3.89 earned$3200 ZEV HEARTBREAKER Contest!!!
38.5K1 -
LIVE
EuphioniaStudio
6 hours ago $3.83 earnedIt's BAAAASED, MARIO! | Mario Party 4
653 watching -
2:48:34
Adam Does Movies
15 hours ago $6.11 earnedAll The Big Movie Announcements From CinemaCon 2025- LIVE!
52.8K -
1:07:30
Josh Pate's College Football Show
8 hours ago $4.97 earnedBig CFB Changes Coming | USC + Texas + Alabama In 2025 | Truth About Officiating | I Am Engaged
50.2K1 -
4:43:40
Biscotti-B23
11 hours ago $2.38 earned🔴 LIVE VIEWERS VS MEMBERS BEEF 🔥 FINDING A NEW MAIN ⚔ BLEACH REBIRTH OF SOULS
42.6K2 -
3:21:55
DTDUBtv
8 hours agoOUTLAST TRIALS WITH SARAHSLOTH17
35.7K1 -
LIVE
Major League Fishing
5 days agoLIVE! - MLF Bass Pro Tour: REDCREST - Day 4
4,718 watching -
3:46:44
EricJohnPizzaArtist
8 hours agoAwesome Sauce PIZZA ART LIVE Ep. #42: It’s Cartman!
47.6K6 -
5:45:29
Ryker SteelVT
8 hours ago[Vtuber] Black Ops 6 warzone and mp! Ep.2
17K2 -
9:53
China Uncensored
12 hours agoThe UK Just Screwed Itself BADLY
29.5K19