Premium Only Content
No Game Engine Game Dev: Word Sleuth 098: Switching between Chalkboard Doodads
Streamed on 2024-12-11 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
There are now five Chalkboard doodads. My original plan was to randomly select one and start it each time you start a new game, but I have changed my mind. Instead, we are going to start with none of them active, then you can choose one to start. You will also be able to stop the running one.
To accomplish this, I moved some of Doodad tracking out of GameContext and into GameScene. I made a piece of chalk and a chalk eraser and some chalk "buttons" to click on. Clicking on the chalk brings up the chalk "buttons", where each one has a logo indicating which doodad it represents. Clicking one of them will hide the menu and load the indicated doodad. Clicking the eraser either hides the menu or stops the current doodad.
The last piece was to make the doodads re-loadable so when you load one that you had already interacted with, it still loads in a good state. This was just moving a bit of code around from where things were initialized into the part that turns the doodad on. And that is the end of doodad work!
There was enough time left to tackle a couple of easy loose ends. I added a check to the surrender function to see if any guesses had been made. If not, it doesn't reveal the answer and is slightly more insulting. Lastly, switching between Notebooks feels bad if you click too fast; the pen can desync from the notebooks and pop. So I suppress the Notebook clicking actions while the pen is flying around or the Notebooks themselves open/close. It feels much better.
-
6:14
Buddy Brown
7 hours ago $0.76 earnedLaw Enforcement Caught SNOOPING on PRIVATE LAND! | Buddy Brown
4.66K6 -
16:21
Real Estate
1 month agoIt’s Not Just You..NO ONE CAN AFFORD KIDS ANYMORE
3.99K2 -
LIVE
LFA TV
23 hours agoLIVE & BREAKING NEWS! | MONDAY 11/3/25
1,165 watching -
1:11:07
vivafrei
2 hours agoFishing for Lawsuits! I Get Blocked Because Zohran is Anti-Gay? Halloween Terror Plot & MORE!
85.9K23 -
1:12:46
Russell Brand
4 hours agoWE’RE BACK! The Fight for Freedom Starts NOW - SF645
81.3K68 -
1:07:56
The Quartering
4 hours agoBen Shapiro Vs Tucker Carlson, Blackface Trick Works, Kash Patel Under Fire, Based Woman Vs Trans
58.2K18 -
1:35:28
The HotSeat With Todd Spears
2 hours agoEpisode 202: Ladies it's YOUR Battle too!
12.9K10 -
1:24:44
DeVory Darkins
5 hours agoTrump dominates 60 minutes interview as Democrats surrender to Mamdani
127K43 -
7:29
China Uncensored
7 hours agoThey’re Beautiful. They’re Dangerous. They Work for the CCP.
12.3K16 -
1:50:43
Tucker Carlson
4 hours agoChris Williamson’s Advice to Men: How to Survive a World of OnlyFans and AI Girlfriends
81.4K78