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.
-
3:10:46
Ellie_roe
5 hours agoEllie and Errys Halloween Spooktacular || Random Horror Games
16.2K -
50:27
Sarah Westall
7 hours agoBig Banks Caught Rigging Market, IMF tells World to “Buckle Up” w/ Andy Schectman
32.2K10 -
13:54
Degenerate Jay
14 hours ago $1.15 earned5 Best Superhero Movies To Watch On Halloween
15.6K4 -
59:03
NAG Podcast
7 hours agoSarah Fields: BOLDTALK W/Angela Belcamino
25.5K7 -
1:21:41
Glenn Greenwald
9 hours agoGlenn Takes Your Questions: On the Argentina Bailout, Money in Politics, and More; Plus: Journalist Jasper Nathaniel on Brutality and Settler Attacks in the West Bank | SYSTEM UPDATE #541
82.8K41 -
3:10:08
Barry Cunningham
7 hours agoPRESIDENT TRUMP TO USE NUCLEAR OPTION? FOOD STAMPS END! | SHUTDOWN DAY 31
49.4K34 -
1:06:56
BonginoReport
14 hours agoThe Battle Between Good & Evil w/ Demonologist Rick Hansen - Hayley Caronia (Ep.168)
100K38 -
1:12:57
Kim Iversen
9 hours agoBill Gates Suddenly Says “Don’t Worry About Climate Change”?
90.5K62 -
1:05:12
Michael Franzese
9 hours agoI Waited 50 Years to Tell You What Happened on Halloween 1975
45.4K17 -
1:07:15
Candace Show Podcast
9 hours agoINFILTRATION: Charlie Kirk Was Being Tracked For Years. | Candace Ep 256
93.6K373