Nov 26, 2026

Get the Point

Intervention - game victory conditions.

  In this blog post, I continue a series of posts documenting how I have used Google's Playground software to vibe-code a science fiction time travel game called Intervention. This blog post is Part 14 of a series of blog posts about how the game Intervention was built. Parts 1 - 13 of the series are here: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13. 

Is there anything more frustrating than computer software that confuses its user? While building the came Intervention, I included an Instruction Manual. However, I wanted to have "Help" buttons on the game pages that could link the game player to the most relevant part of the Instruction Manual. On this blog page I describe several edits that added "Help" buttons to pages in the game Intervention, but first I provide a look at the rules for awarding game players with game points.

 Point System. When the game Intervention was first begun by Playground's AI agent, the player earned points by blasting aliens 👽. I never suggested to Playground's AI agent that my game should include blasting aliens; that's just what the AI spontaneously decided to do. I've begun the process of making new ways for the game player to earn points by taking actions that actually involve time travel (see the Time Loop). Below, in Figure 1, is the Playground AI agent's description of how the game player can earn points in Intervention...

Figure 1. Intervention points system.

This image was uploaded to Playground.

 Me: In the main "Future Earth" gameplay window there is a grouped palette of three buttons along the left side of the game window that is labeled "COMMANDS" (see the attached screenshot). In that grouped palette of buttons, increase the font sizes of the text labels, "COMMANDS", "SPEED", "Manual", "Technology" and "Tree" so as to fill the available blank space in that button palette. Remove the horizontal line between the text "Technology" and "Tree". Move the text "Tree" slightly to the right so that the letter "T" in the word "Tree" is directly under the  letter "T" in the word "Technology". Add a forth clickable button to the bottom of that button palette and label it "Help". If the "Help" button is clicked by the game player, then a pop-up window frame opens that contains the following text: "The only way you can lose the game is by leaving the sector nodes understaffed. Sequentially click on each of the six sector nodes and while each node is selected, press the [E] key to position a tactical agent at the node. Tactical agents are teleported to nodes and each teleportation event requires energy. If you run out of energy, teleportation of additional tactical agents will pause until more energy accumulates." Also in that pop-up window frame, include an image showing the appearance of a sector node. While the "Help" pop-up window frame is open, gameplay is paused. Include in the "Help" pop-up window frame a button that closes the "Help" pop-up window frame and re-starts the gameplay.

New "Help" pop-up window frame. Tyhry (left) and Manny (right) added by me.
Image uploaded to Playground.

  AI: Updated the left-side COMMANDS palette in Future Earth (App.tsx) with larger typography for COMMANDS, SPEED, MANUAL, Technology, and Tree, removed the horizontal divider line while aligning the T in Tree directly beneath the T in Technology, and added a fourth Help button that pauses gameplay and opens a pop-up displaying the Sector Node image (icon_sector_node.png), staffing/teleportation instructions, and a close button to resume gameplay. 

 Me: Modify the left-side COMMANDS palette in the "Future Earth" main gameplay window with larger typography for the numerical feature that is included in the button that is labeled "Technology Tree" (see the attached screenshot). Double the font text side for the numbers that indicate what fraction of the 34 available technologies have already been researched.

 AI: Updated the Technology Tree button in the left-side COMMANDS palette (App.tsx) to double the font size of the researched-technology fraction badge ({researchedTechs.length}/34) cleanly alongside Tree, while keeping the T in Tree aligned beneath Technology with zero clipping or wrapping. The updated build passed QA verification and has been published. 

Me: In the previous edit, there was an increase (to 133% of its previous size) in the width of the COMMANDS palette, and now the COMMANDS palette extends too far to the right into the "Future Earth" gameplay window. Return the width of the COMMANDS palette to its previous, narrower width. In the "Technology Tree" button, move the numerical feature that is included in the button (that indicates what fraction of the 34 available technologies have already been researched) to a new position in the lower left corner of that button, below the word "Tree".

Tyhry and one of her replicoid copies.
Image generated by Leonardo.
 AI: Restored the narrower width (144px) of the left-side COMMANDS palette in Future Earth (App.tsx) and moved the doubled-font technology fraction badge ({researchedTechs.length}/34) to the lower-left corner of the Technology Tree button directly below Tree. The updated build passed QA verification and has been published. 

 Me. For over a week, every time I saved ("published") a new version of the game Intervention, a new launch-screen image was generated. This no longer happens, but there is a button I can press that allows for generation of a new image.  Today, the newly-generated images started having speech bubbles for Dr. Vance, as seen in the image below.

The main image was generated by Playground. I added Tyhry, Manny and the speech bubble inset image.
  Me: Change the order of the four listed Temporal Prerequisites in the pop-up window frame that is titled "Temporal Prerequisite Unmet: The Casanay Quartet". Move prerequisite #1 "Tyhry Watson (Casanay Basement Workshop)" to the bottom of the list, making it item #4 in the list.

 AI: Reordered the four prerequisites inside the "Temporal Prerequisite Unmet: The Casanay Quartet" pop-up window (App.tsx), moving "Tyhry Watson (Casanay Basement Workshop)" to the bottom of the list as item #4 and updating the item numbering (#1–#4 / (I)–(IV)). The build passed QA verification and has been published. 

 Me: At the bottom of the game window titled "Eddy's Reality Viewer" there is a set of four clickable buttons labeled: "Open 1942 Biochem Lab", "Open 1989 Bookstore", "Enter Ekcolir Reality", and "End Viewing". Move the "End Viewing" button to the top header window frame of the game window. Delete the three redundant "Open 1942 Biochem Lab", "Open 1989 Bookstore", "Enter Ekcolir Reality" buttons from the bottom buttons window frame, while retaining the other copies of those buttons that are higher up in the game window.

 AI: Updated Eddy's Reality Viewer (CasanayGreatRoomModal.tsx) to move the "End Viewing" button into the top header bar and remove the bottom footer frame containing the redundant "Open 1942 Biochem Lab", "Open 1989 Bookstore", and "Enter Ekcolir Reality" buttons while retaining those primary buttons inside the upper Reality cards. The updated build passed QA verification and has been published. 

 Me: In the game window titled "Eddy's Reality Viewer", there is this text: "16:9 Showcase Ready". Change that text to: "1989 Bookstore."

 AI: Updated "Eddy's Reality Viewer" (CasanayGreatRoomModal.tsx) by replacing "16:9 Showcase Ready" with "1989 Bookstore.", verified the build with QA, and published the updated game. 

Tyhry and her robot.
 Me: In the Casanay great room game window, double the width of the pop-up window frame that is used for speaking to Eddy Watson. Increase the font size of the text in that pop-up speech window frame, making it easier to read. 

 AI: Updated Eddy Watson's speech pop-up frame inside the Casanay Great Room (CasanayGreatRoomModal.tsx) to double its width (to 760px/840px, safely bounded to the viewport) and enlarged the typography across the speaker caption, headers, spoken dialogue, topic buttons, and close button for easier reading. The build passed QA verification and has been published. 

Me: Add a "Help" button in the top header window frame in the game window titled "Simulation of the 1942 Biochemistry Laboratory". When that "Help" button is clicked, it opens a pop-up help window frame that has this text: "Sequentially move your Tactical Agent to the position of each of the three alien technology devices on the lab bench. After Vance explains each device, Manny the bumpha will arrive inside the Simulation."

Uploaded to Playground.
 AI: Added a "Help" button to the top header bar of "Simulation of the 1942 Biochemistry Laboratory" (FoundationReality1942Modal.tsx) that opens a pop-up help frame displaying the instructions for visiting the three alien technology devices on the lab bench so Vance explains each one before Manny the bumpha arrives, with a close button (and [Return] key support) to resume exploring the Simulation. The updated build passed QA verification and has been published. 

Me: In some cases, game text is shown backwards. In the attached screenshot, the text "CASANAY ARCHIVES" has a backwards orientation when displayed in the Casanay great room game window. This text is associated with the game player's tactical agent sprite. When the sprite faces to the left side of the game window, the text is backwards. All game text should be displayed in the normal orientation, NOT backwards. 

 AI: Fixed the horizontally mirrored canvas text across all scenes (CasanayGreatRoomModal.tsx, CasanayBasementModal.tsx, VythothLabModal.tsx, TyhryLabModal.tsx, HierozymeLabModal.tsx, TimeVaultModal.tsx, and App.tsx) by drawing "CASANAY ARCHIVES" and all companion holographic/telemetry labels outside the ctx.scale(-1, 1) transform so all game text always reads left-to-right regardless of sprite facing direction. The updated build passed QA verification and has been published. 

This image was uploaded to Playground.
 Me:  In the game window titled "Simulation of the 1942 Biochemistry Laboratory", the game player's walkable tactical agent sprite appears in two different poses that appear to be derived from two different game assets (see the uploaded image which has two screenshot views of the "same" sprite). In the standing pose, the sprite is shorter, has a different jumpsuit style and has a ponytail hair style. In the running pose, the sprite is taller, has a second style of jumpsuit and a different hair style. Correct the game code so as to use the same sprite to generate all of the tactical agent poses in this game window.

 AI: Unified the walkable tactical agent in "Simulation of the 1942 Biochemistry Laboratory" (FoundationReality1942Modal.tsx) so both standing and moving poses render from the same spritesheet_agent_tactical_idle asset at consistent dimensions—freezing on frame 0 when stationary and animating smoothly when moving with no change in height, jumpsuit, or hairstyle. The updated build passed QA verification and has been published. 

Zeta Gohrlay and the tactical agent.
 Me: In the game window for the Casanay great room, when the pop-up window frame opens for speaking to Zeta, position that pop-up speech window frame against the extreme right hand edge of the game window. Increase both the height of the pop-up speech window frame for speaking to Zeta and increase the font size of that small text in that window frame so as to make it easier to read. Make the pop-up speech window frame for speaking to Zeta extend from the extreme top of the game window to the extreme bottom of the game window. One of the clickable buttons that is in the pop-up speech window frame for speaking to Zeta is labeled: "The Chronicles of Eddy's Novels". Change the label on that button to "Visions of the future". When the game player clicks on the "Visions of the future" button, Zeta says: "Both Tyhry and I sometimes receive information from the future by way of the Sedron Time Stream. Sometimes messages sent by Tyhry of the future are received here in the past by me or visitors to Casanay. Be prepared to experience such a message from the future."

 AI: Updated Zeta's speech pop-up frame inside the Casanay Great Room (CasanayGreatRoomModal.tsx) so it docks flush against the extreme right edge spanning from the extreme top to the extreme bottom of the window, increased the font sizes across the frame for readability, and replaced "The Chronicles of Eddy's Novels" with "Visions of the future" displaying Zeta's Sedron Time Stream message. The updated build passed QA verification and has been published. 

Updated speech window frame.
Uploaded to Playground.
  Me: Make two changes to the Simulation of 1989. (1) In the game window titled "Simulation of Manny the bumpha's Office", double the on-screen apparent height of the tactical agent sprite to better match the background image. (2) In the game window titled "Simulation of a 1989 Bookstore", there is an active zone in the game window for speaking to an "Avid Science Fiction Reader". That active zone is too close to the doorway, so remove it from the game window. Add to the game window a copy of the game asset "Reader Sprite". As soon as the game player begins walking the game player's tactical agent sprite, allow the Reader Sprite to begin automatically wondering around the displayed bookstore floor part of the background image for the window. If the player walks the tactical agent sprite to the position of the Reader Sprite, then open the existing speech pop-up window frame for the Avid Science Fiction Reader.

The avid science fiction reader (left).
 AI: Both updates to the 1989 Simulation windows have been completed, verified, and published.
 - Simulation of Manny the bumpha's Office.  (MannyManagerOfficeModal.tsx) Doubled the tactical agent sprite's on-screen height (400x400, preserving the 1:1 512x512 frame ratio and stationary frame-0 freeze) with updated walkable vertical floor bounds so she matches the executive office backdrop cleanly.
 - Simulation of a 1989 Bookstore. (BookstoreSimulationModal.tsx). Removed the static doorway-adjacent Avid Science Fiction Reader hotspot and added the animated Reader Sprite (new_asset_1795718907578_idle / new_asset_1795718907578_walk) onto the central bookstore floor—standing idle until your tactical agent begins walking, then wandering across the visible bookstore floor and opening the existing Avid Science Fiction Reader speech pop-up when approached. 

 Me: In the game window titled "Simulation of a 1989 Bookstore", only open the speech pop-up window frame for the Avid Science Fiction Reader one time. After the game player's tactical agent has spoken to the Avid Reader, automatically walk the "Reader Sprite" to the most upper left hand part of the game window that still corresponds to Bookstore floor area in the game window's background image.

 AI: Updated "Simulation of a 1989 Bookstore" (BookstoreSimulationModal.tsx, CasanayGreatRoomModal.tsx, and App.tsx) so the Avid Science Fiction Reader speech pop-up opens only once (persisted across Manny's office and room transitions until a new game). After your tactical agent finishes speaking with the Avid Reader, the Reader Sprite stops wandering and automatically walks along the bookstore floor to the upper-leftmost bookstore floor area ({ x: 365, y: 520 } in bookstore_1989_fullbleed_interior.png), then switches to its idle pose. The updated build passed QA verification and has been published. 

Me: In the game window titled "Simulation of Manny the bumpha's Office", make two changes. (1) Change the spawning position of the tactical agent sprite to the extreme lower left hand corner of the game window. (2) Move the position of the on-screen active area titled "ENTRANCE DOORWAY" to the extreme lower left hand corner of the game window.

Tyhry and Manny the bumpha added manually.
 AI: Updated "Simulation of Manny the bumpha's Office" (MannyManager OfficeModal.tsx) so both the walkable tactical agent's spawn position and the "ENTRANCE DOORWAY" active zone sit in the extreme lower-left corner (with an anti-bounce guard so the player isn't immediately exited on spawn). The build passed QA verification and has been published. 

 Me: In the game there are are several of the numbered entries in the game Instruction Manual (also known as the "Intervention Field Manual") that refer to one specific game window. Create pop-up "Help" window frames for all such game Instruction Manual entries.  Example: entry #10 in the game Instruction Manual is titled: "The Hierion Domain & Phari Telepathy Resonance Test". Entry #10 in the game Instruction Manual refers specifically to the game window that is titled: "The Hierion Domain". Edit the game so as to add a new clickable button labeled "Help" to the top header window frame of game window that is titled: "The Hierion Domain". When the game player clicks on that "Help" button, the action is to open a new pop-up window frame that displays for the game player the contents of entry #10 from the game Instruction Manual. That pop-up window frame has both a "Close" (X) button and a "Return to Gameplay" button. 

Tyhry making the companion robot.
 AI: Added clickable "Help" buttons to the top header frames of all game windows referenced by numbered entries in the Intervention Field Manual—including "The Hierion Domain" (Entry #10: The Hierion Domain & Phari Telepathy Resonance Test), Technology Tree, Faction Command Dossier, Tyhry's Storyline Journal, Eddy Watson's Chronicle Log, Temporal Bridge, Fru'wu Spaceship, Great Hall Simulation, Time Travel, and the dedicated laboratory/reality modals—opening a synchronized FieldManualHelpModal pop-up displaying that entry's contents with both "Close" (X) and "Return to Gameplay" buttons (and [Return] dismissal while keeping [Esc] bound to the Tactical Game Menu).   

Note: that last edit, above, took about 20 minutes. The Playground AI agent seemingly added new "Help" buttons to about 15 game windows during that single edit. The image below shows the "Help" pop-up for the 1942 Biochemistry Laboratory Simulation, which correctly incorporated the help text that I provided in an earlier edit:

"Help" pop-up window frame for the 1942 Biochemistry Laboratory Simulation.


Next: finding new ways to build time travel adventure into the game Intervention.

The Playground AI generated an image that depicts sending a message back through time during the game Intervention
in order to help guide Tyhry Watson into the future, earning the game player 10,000 bonus points.
I modified the AI-generated image to include Tyhry and Manny the bumpha and the text in red.

No comments:

Post a Comment