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
SpartakusLIVE
5 hours agoWZ Solos || GCX St. Jude Charity Marathon @ 8PM EST
108 watching -
LIVE
elwolfpr
3 hours agoThe Reaper Returns: I’m Back, Baby!
47 watching -
LIVE
TinyPandaface
2 hours agoYour FACE is a Gaming Channel! | Birth
94 watching -
1:49:18
FreshandFit
5 hours agoLauren Southern Accuses Tate Of Abuse!
31.2K60 -
LIVE
Toolman Tim
1 hour agoDOOM: Dark Ages - First Runthrough | Gaming Thinktank
161 watching -
2:52:05
TimcastIRL
4 hours agoBREAKING: Trump DOJ FIRES Epstein Prosecutor, James Comey's Daughter Amid Controversy | Timcast IRL
215K79 -
3:23:07
Barry Cunningham
5 hours agoPRESIDENT TRUMP IS BUILDING A NEW MAGA! ARE YOU READY FOR THE NEXT ACT?
55.4K64 -
2:33:10
Laura Loomer
3 hours agoEP133: GOP Congresswoman Caught Leaking To Qatar
38.4K13 -
LIVE
I_Came_With_Fire_Podcast
10 hours agoTRUMP vs FED CHAIR JEROME POWELL | NATO Playing Ball? | Doxxing ICE | AI Music Hoax
208 watching -
LIVE
Geeks + Gamers
2 hours agoMario Kart World LIVE - Nintendo Switch 2
186 watching