 |
Figure 1. When viewed in Chrome browser, the "play now" button shifts towards the center of the launch screen. I added Manny the bumpha (left), Vythoth the Fru'wu, a Phari (center), Klaudy, and replicoid copies of Tyhry (right) young Tyhry. |
In
my previous blog post, I vibe-coded into the science fiction time travel game
Intervention a micro-change that only influenced the life of Tyhry and did not trigger a
Reality Change. Both "micro-change" and "Reality Change" are terms from Isaac Asimov's time travel novel
The End of Eternity.
This blog post is Part 17 of a series of blog posts about how the game Intervention was built. Parts 1 - 16 of the series are here: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16.
 |
| Tyhry (right) and Klaudy. Image by Leonardo. |
I continue to make "small" play-ability edits to
Intervention that I am not documenting in this blog. For example, I just had the
Playground AI agent modify the game's technology tree so that it will automatically scroll down past all of the technologies that have already been researched.
I'm rather amazed at how bad Chrome browser is at working with Playground. I was just playing a game of Intervention using Chrome and when I exited from Full Screen Mode, I saw a Playground pop-up message saying that the latest edit of the game had passed its review. I closed that pop-up message and that crashed the game. 😒
 |
| The new screen that was Added to Playground today. This is seen after "publishing" a new game edit. |
Today, there was a dramatic change in the way Playground behaves when a game edit is "published". It used to show a misleading "publish" button in the interface while it was reviewing the latest edit. Now a whole new window appears (see the image that is above this paragraph). This gives me hope that Jimmy the Google intern did not take off from work this Thanksgiving weekend and is still at work fixing bugs in Playground.
As seen above in Figure 1, I also noticed a change in the behavior of the game launch windows. Previously, all the text was to the left. It still is that way in Firefox browser, but now in Chrome the "Play now" button is more centered. I brightened the left hand side of the AI-generated image in Figure 1 to make it easier to see the "back room" of the spaceship HySy.
 |
| Tyhry and Klaudy and aliens. Image by Leonardo. |
I continue to make edits to the game
Intervention in an attempt to improve play-ability and repair the poor game design choices that have been made by the Playground AI agent. After dealing with a few user interface issues related to the 1942 Biochemistry Laboratory and the 1989 Bookstore game elements,
further down this page I added another time travel scenario to the game.
 |
The original Playground-generated image was modified by me to add Klaudy (left), Tyhry, Vythoth the Fru'wu, Manny the bumpha, the young Tyhry's replicoid (holding a book) and a Phari (right). |
Me: In game Level 1, after the payer has already gone into the Simulation of the 1942 Biochemistry Laboratory, they return to the game window titled "Simulation of the Foundation Reality 1942 Biochemistry Research Laboratory" which provides a view of the Laboratory. After having already been inside the Simulation of the Laboratory, the game window titled "Simulation of the Foundation Reality 1942 Biochemistry Research Laboratory" should no longer have two flashing buttons labeled: "Enter Simulation". Instead, the button labeled, "Return to Reality Viewer" should be flashing. Change the button labeled, "Return to Reality Viewer" to the new label: "View Other Realities". Change the game window title "Simulation of the Foundation Reality 1942 Biochemistry Research Laboratory" to "Now Viewing the Foundation Reality 1942 Biochemistry Research Laboratory".
 |
| Robot junkyard? |
AI: Updated the Level 1 1942 Biochemistry Research Laboratory viewer window (CasanayGreatRoomModal.tsx, FoundationReality1942Modal.tsx, App.tsx, and Entry #13 in src/data/manualEntries.tsx).
- Changed the window title to "Now Viewing the Foundation Reality 1942 Biochemistry Research Laboratory" and renamed the exit button to "View Other Realities".
- Added persistent hasVisited1942Simulation tracking so that once the player has entered the 1942 simulation, both "Enter Simulation" buttons stop flashing and the "View Other Realities" button flashes instead.
 |
Image uploaded to Playground. |
Me: Make five changes to the Level 1 game window titled "Simulation of a 1989 Bookstore". (1) Change the vertical position of the spawn location for game player's walkable tactical agent sprite to the bottom of the game window. (2) Change the vertical position of the active window marker labeled "Return to the Reality Viewer" to the bottom of the game window. (3) Change the vertical position of the spawn positions of the Avid Reader sprite so that the sprite spawns twice as far from the bottom of the game window. (4) Change the final end position for the Avid Reader sprite so that it is 30% further from the left edge of the game window. (5) Repair the active window marker for the doorway that connect to the Bookstore Manager's Office (see the attached screen shot). That doorway active marker is currently illegible. That doorway active marker is aligned with the doorway that is in the game window's background image, so the doorway active marker does not need to include a wire-frame diagram of a doorway. Simplify the doorway active marker so that it simple says "Doorway to Manager's Office". Lower the vertical position of the doorway active marker to half of its current distance from the bottom of the game window.

AI:
Updated the Level 1 "Simulation of a 1989 Bookstore" window (BookstoreSimulationModal.tsx) with all five requested changes.
- Tactical Agent Spawn. Moved both the initial spawn and return-from-Manny spawn vertically to the bottom of the game window (y = 755, extending walkable floor bounds to y = 768).
Return to the Reality Viewer Marker: Moved the "Return to the Reality Viewer" active marker and hotspot vertically to the bottom of the game window (y = 736).
- Avid Reader Sprite Spawn. Doubled the Avid Reader (Reader Sprite) spawn distance from the bottom (y = 462).
- Avid Reader Final End Position. Shifted the post-dialogue resting position 30% further from the left edge (x = 475, y = 520).
- Manager's Office Doorway Marker. Removed the wireframe doorway graphic and cluttered plaque, replaced it with a clean single-line "Doorway to Manager's Office" active marker, and lowered it to half its previous distance from the bottom (y = 647).  |
| Altered positions of elements inside the bookstore. |
Me: Investigate the game code for a bug that is revealed when the game player is moving the walkable tactical agent sprite in the Level 1 game window that shows the Simulation of the 1989 Bookstore Manager's Office. After having spoken to the manager, if the game player then clicks on the active window element for the doorway, the game window for the Simulation of the 1989 Bookstore opens with the tactical agent sprite is now located close to the position of the doorway that leads back to the Manager's Office. However, the tactical agent sprite is sometimes locked at that position and the arrow keys do not function to allow the tactical agent sprite to move. Try to repair the game code that can cause the arrow keys to stop functioning to move the game player's tactical agent sprite.
Me. The edit shown above had an edit duration of 11:09 - 11:20 PM on Sat. Nov. 28th.
AI: Found and fixed the arrow-key movement lock bug when returning from Simulation of Manny the bumpha's Office to Simulation of a 1989 Bookstore (BookstoreSimulationModal.tsx, MannyManagerOfficeModal.tsx, and App.tsx).
- Root Cause & Fix. Early return; exits inside the requestAnimationFrame movement loops could terminate the loop during doorway transitions, leaving movement permanently unresponsive alongside stale focus/key state and clamp mismatches around the return spawn. Both animation loops now stay alive safely across transitions, capture-phase keyboard listeners cleanly reset held keys and focus on return, and the return spawn stays strictly within walkable floor bounds.
 |
Flow-generated image used to make the Phari sprite. |
Me: Add to the game several new game elements in both Level 1 and Level 4 that create a new Time Loop scenario which can earn the game player 10,000 game points when the following game player actions are completed. In game Level 1, when the game player's walkable tactical sprite speaks to Tyhry Watson, upon clicking on the button labeled "Ask Tyhry about her plans for college", Tyhry replies, "I may study ocean microbe carbon sequestration at the University of Hawaii." Alter the speech pop-up window frame titled, "Tyhry's Research Transmission" so that when the text, "I may study ocean microbe carbon sequestration at the University of Hawaii" is shown in the pop-up speech frame, a new clickable button appears to the right of that that text. That button is labeled: "Message from the Phari". If the button "Message from the Phari" is clicked by the game player, then a new game window titled "Meeting with the Phari" opens. The background music that plays while the game window titled "Meeting with the Phari" is open is the existing game asset "Hierion Domain Music". The game window titled "Meeting with the Phari" uses the game asset bg_hierion_domain.png as its background image. When the game window titled "Meeting with the Phari" opens, the game asset "Alien Phari Sprite" spawns in the lower right hand corner of the game window and then begins walking and exploring the window. After five seconds, the game player's walkable tactical agent sprite spawns in the lower left hand corner of the game window. When the game player's walkable tactical agent sprite reaches the position of the Alien Phari Sprite, a pop-up window frame opens that is titled, "Speak to the Phari" and the Phari says, "Welcome to the Hierion Domain." There are three clickable buttons in that speech window frame: (1) The first clickable button is labeled "Will Tyhry go to Hawaii?". If the user clicks on the button "Will Tyhry go to Hawaii?", then the Phari says, "Our quantum calculations of the future predict that Tyhry will not study in Hawaii."
 |
| Klaudy at Pacific Deep. |
(2) The second clickable button is labeled "Will Tyhry perform research on carbon sequestration?" If the user clicks on the button "Will Tyhry perform research on carbon sequestration?" then the Phari says, "Only after Tyhry has built a companion robot that has human-like consciousness."
(3) The third clickable button is labeled "Exit from the Hierion Domain." In game Level 4, in the game window titled "Pacific Deep Hierozyme Research Laboratory", when the game player's walkable tactical sprite speaks to Klaudy the Robot, a pop-up window frame titled "Klaudy the Robot's Discourse" opens. If the game player clicks on the button that is labeled "Ask about working alongside Tyhry Watson at Pacific Deep Sieve", then a pop-up message appears saying that the game player has earned 10,000 game points for completing the Time Loop, iff the game player has also completed the first part of the Time Loop in game Level 1 by visiting the Hierion Domain. If the game player has earned the 10,000 game points by completing the Time Loop, then when the speech frame titled "Klaudy the Robot's Discourse" closes, then the Alien Phari Sprite spawns in the lower left hand corner of the game window and walks to the position of the tactical agent sprite. The Phari tells the tactical agent sprite: "With your help, our prediction of the future has been validated. With the help of Klaudy, Tyhry has learned how to use hierozymes to solve Earth's global warming problem." When that pop-up speech window frame closes, the Alien Phari Sprite disappears from the game window, having returned to the Hierion Domain.


AI:
Added the new Level 1 ↔ Level 4 Phari Time Loop (+10,000 game points) across Casanay Basement Workshop, the new Meeting with the Phari window, and Pacific Deep Hierozyme Research Laboratory.
- Level 1 (CasanayBasementModal.tsx & src/components/MeetingWithPhariModal.tsx).
- In "Tyhry's Research Transmission", clicking "Ask Tyhry about her plans for college" displays "I may study ocean microbe carbon sequestration at the University of Hawaii." alongside a new clickable "Message from the Phari" button to the right of that text.
- Clicking "Message from the Phari" opens the new "Meeting with the Phari" window (bg_hierion_domain.png and Hierion Domain Music), where the Alien Phari Sprite spawns in the lower-right and explores, followed 5 seconds later by your walkable tactical agent spawning in the lower-left. Reaching the Phari opens "Speak to the Phari" with "Will Tyhry go to Hawaii?", "Will Tyhry perform research on carbon sequestration?", and "Exit from the Hierion Domain.".

- Level 4 (HierozymeLabModal.tsx, App.tsx, & src/data/manualEntries.tsx):
- In "Pacific Deep Hierozyme Research Laboratory", clicking "Ask about working alongside Tyhry Watson at Pacific Deep Sieve" inside "Klaudy the Robot's Discourse" awards +10,000 bonus points and shows the bonus pop-up iff you previously visited the Hierion Domain in Level 1.
- Closing "Klaudy the Robot's Discourse" after earning that bonus spawns the Alien Phari Sprite in the lower-left corner to walk to your tactical agent, deliver the validation speech, and vanish back to the Hierion Domain upon closing the message. 
Me: Investigate the game code for the game Level 1 game window titled "Casanay Basement Workshop". When the pop-up speech window frame titled "Tyhry's Research Transmission" is closed after the game player's tactical agent sprite has already spoken to the Phari inside the Hierion Domain, a bug can cause the Future Visitor Sprite to spawn and then freeze at its spawn location in the game window while the actions of the arrow keys have changed from (1) normal: allowing control of the walking of the game player's tactical agent sprite to (2) abnormal: pressing the arrow keys causes selection and high-lighting of several of the clickable buttons that are in the upper window frame that holds the game window title and several clickable buttons such as the one labeled "Help". Repair the code that can cause the Future Visitor Sprite to fail to automatically walk after spawning. The arrow keys should always allow the the game player to walk of the game player's tactical agent sprite when the game player's tactical agent sprite is visible in a window.


AI:
Fixed both bugs in Casanay Basement Workshop (CasanayBasementModal.tsx, App.tsx, utils/helper.tsx, MeetingWithPhariModal.tsx, and across the sibling walkable 2D interior modals).
- Future Visitor Sprite Freeze Fixed. Wrapped the animation loops with live state/draw refs and clamped timing (dt >= 0), unlocked tactical agent movement while Manny walks in, and updated Manny's walk destination dynamically so he walks smoothly to the agent without stalling at spawn and triggers his Time Travel dialogue reliably.
- Arrow-Key Header Highlighting Fixed. Disabled modal focus-navigation on walkable 2D interior MenuOverlay containers, added tabIndex={-1} and active-element blur guards on header buttons (Help, etc.), wired isMeetingWithPhariOpen so returning from Meeting with the Phari or closing Tyhry's Research Transmission clears stale keys and restores canvas focus, and enforced capture-phase preventDefault() on Arrow/WASD keys whenever the walkable agent is active. Me: Examine the game code for the game Level 4 game window titled "Pacific Deep Hierozyme Research Laboratory". When the game player's walkable tactical sprite speaks to Klaudy the Robot, a pop-up window frame titled "Klaudy the Robot's Discourse" opens. If the game player clicks on the first clickable button in that pop-up speech window frame, then subsequently clicking on the second clickable button can result in a failure of the game player to complete the Time Loop that links game Level 1 to game Level 2. Upon completing both the required game Level 1 and game level 4 actions for the Time Loop, the game player should receive the 10,000 game point bonus regardless of what order the buttons are clicked in the "Klaudy the Robot's Discourse" pop-up window frame. Check the game code for a bug that allows clicking on the first button in the "Klaudy the Robot's Discourse" pop-up speech frame to interfere with completing the Time Loop.
AI:
Fixed the button-order bug in "Klaudy the Robot's Discourse" inside Level 4's Pacific Deep Hierozyme Research Laboratory (HierozymeLabModal.tsx). Clicking the first dialogue button ("Ask Klaudy how Pseudoalteromonas barosyntexis nano-teleports CO2 to Venus") or any follow-up science prompt now updates Klaudy's response while keeping "Ask about working alongside Tyhry Watson at Pacific Deep Sieve" persistently available in position #2. Regardless of which order the buttons in Klaudy the Robot's Discourse are clicked, clicking "Ask about working alongside Tyhry Watson at Pacific Deep Sieve" reliably awards the +10,000 bonus points, opens the 10,000-point Time Loop bonus pop-up, and queues the Alien Phari Sprite validation sequence when Klaudy's discourse closes (provided you visited Meeting with the Phari in Level 1). |
| Image uploaded to Playground. |
Me: Investigate the game code that control the completion of the Level 2 -Level 3 Time Loop (see the attached screenshot). Make sure that the pop-up window frame which announces that the Time Loop is completed and 10,000 bonus points have been earned by the game player is always shown, regardless of the order in which the clickable buttons are clicked by the game player in the "Dr. Marda Onway, Ph.D.'s Discourse" speech pop-up window frame.
AI: Fixed the Level 2 ↔ Level 3 Causal Time Loop completion bug in Dr. Marda Onway, Ph.D.'s Discourse (TyhryLabModal.tsx and VythothLabModal.tsx).
- Button-Order Fix (TyhryLabModal.tsx). Kept all topic buttons—including "Ask about her collaboration with Tyhry Watson and Elyrix"—persistently visible and clickable regardless of what order buttons are clicked inside Dr. Marda Onway, Ph.D.'s Discourse, and prevented [Return]/Enter from accidentally re-triggering a focused topic button instead of dismissing the modal.
- Bidirectional Bonus Pop-Up (VythothLabModal.tsx). Added the dedicated +10,000 Bonus Points pop-up window frame to Level 2's Dr. Vythoth's Robotics Research Laboratory as well, so completing the loop in either order always displays the bonus announcement.
 |
| This image was uploaded to Playground. |
Me: In game Level 6, when the game window titled "Interstellar Exodus Achieved" is displayed for the game player, the planet Koly view window frame, which should show an image of the exoplanet Koly, currently has a broken image icon showing in that window frame and not the image of the planet. Fix the game code for fetching and displaying the bg_planet_koly.png game asset in the game window titled "Interstellar Exodus Achieved".
AI: Fixed the broken Planet Koly image display in Level 6's "Interstellar Exodus Achieved" victory window (constants.ts, src/constants.ts, HySyConstructionModal.tsx, and VictoryModal.tsx).
- Registered bg_planet_koly (assets/images/bg_planet_koly.png, 1024x1024) in constants.ts and src/constants.ts and added preloading with complete && naturalWidth > 0 validation.
- Updated the Planet Koly View container in "Interstellar Exodus Achieved" to match the 1:1 square aspect ratio and safely fall back on error so no broken image icon appears.
Note: The edit shown just above on this page was the second time I had to ask for this repair. The same problem existed on the next game window in the end-of-game journey to the exoplanet Koly, but the
Playground AI agent fixed both windows in one edit.
With all of the game point bonuses for Time Loops, it was possible to win the game with a higher point total than ever before (see the image to the left). The "RyllaOnway" game player is the account that I use for Playground with Firefox browser. The game runs better with Firefox in a 15-year-old Intel chip Macintosh running under macOS 10.13 than it does with Chrome running under macOS 10.15 on a 7-year-old Intel core i5. I'm still using the EddyCWatson "Creator" account to build the game in Chrome browser.
Next: adding the final Time Loop to the game Intervention.