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.
-
19:53
MetatronHistory
18 hours agoRome VS Greece - Ultimate Clash of Civilizations Explained
38.7K9 -
LIVE
The Big Migâ„¢
4 hours agoThe Big Mig Show's Greatest Hits w/ Americas Future, Karmageddon, Operation Gideon,..
108 watching -
1:32:33
VapinGamers
3 hours ago $4.46 earnedTools of the Trade - EP12 The Art of Story Telling with MidnightinTheMountains - !rumbot !music
17.6K2 -
LIVE
SOLTEKGG
2 hours ago🔴LIVE - Battlefield 6 - Going Pro in RED SEC
186 watching -
LIVE
Midnight In The Mountainsâ„¢
4 hours agoThe Midnights Play Arc Raiders | Loot Scoot and KILL | Crypto Wallet up n running GO JOIN THE BETA!
92 watching -
53:25
X22 Report
5 hours agoMr & Mrs X - Trump Is Using The Same Tactic As Our Founding Fathers To Rebuild America - EP 17
89K23 -
LIVE
PudgeTV
2 hours ago🟣 Arc Raiders - Gaming on Rumble | Going Topside w My Daughter’s Husband
66 watching -
2:05:43
LFA TV
22 hours agoRUMBLE RUNDOWN WEEK 7 with SHAWN FARASH 11.22.25 9AM
148K9 -
LIVE
ttvglamourx
3 hours ago $1.14 earnedGLAMOURX VS CALL OF DUTY LOBBIES !DISCORD
89 watching -
LIVE
DannyStreams
5 hours agoSaturday Morning Tarky
29 watching