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:18
MrBigKid
3 hours ago $0.46 earnedInsanely Compact Hunting Tripod you HAVEN'T heard of... Revolve
9.94K1 -
20:29
marcushouse
10 hours ago $3.18 earnedUnleashing the Power of SpaceX's Starship: Why is it a Big Deal!?
36.8K8 -
10:46
Rethinking the Dollar
23 hours agoTrump Knows 'The Real Threat' To Your National Security
27K13 -
17:13
Degenerate Jay
6 hours ago $0.49 earnedWB Games Is Falling Apart
18.8K2 -
9:07
Bearing
9 hours agoElon Causes a Stir 🤣
16K29 -
8:41
BIG NEM
22 hours agoMeet Tommy: He's a 40 Year Virgin
9.99K1 -
1:09:02
Kat Espinda
1 day agoEP. 151 - Become a Paid "Citizen Journalist" [your]NEWS - Meet Sam Anthony
8.18K8 -
1:00:21
Trumpet Daily
1 day ago $5.07 earnedWhy Do Migrant Criminals Love Obama So Much? - Trumpet Daily | Jan. 24, 2025
10K22 -
55:39
PMG
21 hours ago $0.52 earnedDeep Sea Diver Explains Titanic and Space Shuttle Recovery Missions w/ Curt Newport
6.29K2 -
2:02:29
Wahzdee
8 hours agoIs It Too Late to Git Gud at Warzone? 🎮🔥 - Early Morning Solos! S1E3
85.5K1