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.
-
52:00
Uncommon Sense In Current Times
20 hours ago $12.64 earned"Inclusive or Excluding? The Hidden Agenda Behind 'Happy Holidays"
63K11 -
2:36
Canadian Crooner
1 year agoPat Coolen | Frosty the Snowman
36.9K5 -
55:02
Bek Lover Podcast
20 hours agoAl Qaeda Take Over of Syria Backed by US & Israel? More Strange News...
26.4K6 -
4:04:32
Alex Zedra
11 hours agoLIVE! New Scary Game w/ Heather
130K3 -
49:19
barstoolsports
16 hours agoThe Game is Officially On | Surviving Barstool S4 Ep. 5
177K5 -
4:33:30
BSparksGaming
12 hours agoYou're Next FAVORITE Rumble Streamer! Hump Day BO6 Grind! #RumbleTakeover
65.6K2 -
3:22:22
Pepkilla
13 hours agoCan we get to Silver II on ranked toniiiight ~
48.4K1 -
5:00:49
Drew Hernandez
12 hours agoPROJECT BLUE BEAM OR IRANIAN DRONES?
66.7K41 -
1:42:58
Kim Iversen
15 hours agoEvacuating My Christian Family from Al-Qaeda-Controlled Syria: Kevork Almassian | Trump To End Birthright Citizenship? Jamarl Thomas
159K98 -
33:31
Stephen Gardner
12 hours ago🔴JUST IN: DA Alvin Braggs THREATENS Trump | Canada Justin Trudeau OFFENDS Americans!
89.3K316