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.
-
1:19:56
MattMorseTV
4 hours ago $34.02 earned🔴Trump just DROPPED the HAMMER.🔴
105K140 -
24:21
cyphertank
1 day agoCYPHER TANK S01E03
14.8K -
19:01
Bearing
8 hours agoHasan Piker EXPOSED 🚨 You’re NOT READY For This Video 💥
17.4K16 -
2:46:05
LFA TV
9 hours agoTHE CREST REPORT LIVE ON LFA | 2.14.26 @1PM EST
90K1 -
53:34
Jeff Ahern
4 hours ago $0.63 earnedThe Saturday show with Jeff Ahern
15.3K2 -
52:56
X22 Report
8 hours agoMr & Mrs X - Halftime Narrative Failed, Epstein Is A Puppet, Trump Is Saving America - EP 26
142K35 -
24:09
The Rubin Report
9 hours agoHow Dems Created an ICE Recipe for Disaster on Purpose | Anna Paulina Luna
66.4K58 -
20:02
WhatCulture - Film
4 days ago $4.43 earned20 Movie Reveals Nobody Noticed
44.6K2 -
6:49
RidiculousRides
1 day ago $3.27 earnedPeel P50: The 59kg Car You Can Park Indoors
49.5K7 -
13:02
WhatCulture Gaming
2 days ago $1.76 earned10 Video Games That Broke The Rules
36.5K