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.
-
10:17
Dermatologist Dr. Dustin Portela
1 day ago $6.35 earnedOlay Cleansing Melts: Dermatologist's Honest Review
43.3K -
1:02:20
Trumpet Daily
1 day ago $23.55 earnedObama’s Fake World Comes Crashing Down - Trumpet Daily | Dec. 20, 2024
27.3K34 -
6:29
BIG NEM
21 hours agoCultivating God Mode: Ancient Taoist NoFap Practices
21.2K6 -
30:53
Uncommon Sense In Current Times
1 day ago $6.01 earned"Pardon or Peril? How Biden’s Clemency Actions Could Backfire"
42.6K2 -
40:01
CarlCrusher
19 hours agoSkinwalker Encounters in the Haunted Canyons of Magic Mesa - ep 4
40.9K2 -
59:44
PMG
1 day ago $4.29 earned"BETRAYAL - Johnson's New Spending Bill EXPANDS COVID Plandemic Powers"
50.2K15 -
6:48:50
Akademiks
17 hours agoKendrick Lamar and SZA disses Drake and BIG AK? HOLD UP! Diddy, Durk, JayZ update. Travis Hunter RUN
172K28 -
11:45:14
Right Side Broadcasting Network
9 days agoLIVE REPLAY: TPUSA's America Fest Conference: Day Three - 12/21/24
355K28 -
12:19
Tundra Tactical
17 hours ago $13.10 earnedDaniel Penny Beats Charges in NYC Subway Killing
72.1K13 -
29:53
MYLUNCHBREAK CHANNEL PAGE
1 day agoUnder The Necropolis - Pt 1
161K52