Skip to content

Phone Terminal Theme#85

Merged
cliffe merged 1 commit intocliffe:mainfrom
alixthegreat:phone-terminal-theme
May 9, 2026
Merged

Phone Terminal Theme#85
cliffe merged 1 commit intocliffe:mainfrom
alixthegreat:phone-terminal-theme

Conversation

@alixthegreat
Copy link
Copy Markdown
Contributor

  • Adds phoneTheme: "terminal" as an optional NPC config field that switches the phone-chat minigame from the default green LCD aesthetic to a black-screen CRT terminal mode
  • Terminal mode: black background, #00ff41 phosphor green text, CRT scanlines + vignette (same technique as bond-visualiser), letter-by-letter typewriter animation with trailing █ cursor that blinks then disappears
  • Theme is sourced from the NPC (single source of truth) and threaded through all four startMinigame('phone-chat') call sites: interactions.js, npc-manager.js, npc-barks.js, and returnToPhoneAfterNotes
  • History bulk-load bypasses animation so reopening a conversation renders instantly
  • Choices are held until the final message finishes typing

To use it, set phoneTheme: "terminal" on a phone NPC. To trigger it automatically on an event, add an eventMapping with conversationMode: "phone-chat" and a targetKnot. Theme is determined by the first NPC in the phone item's npcIds array — all contacts on the same phone should share the same phoneTheme.

A test scenario has been created in which the player is given 2 phones in order to view the difference between the phone themes. It also showcases the eventmapping, where the player can interact with the notes object in order to trigger the phone chat as if they are being contacted.

@cliffe cliffe merged commit a17425b into cliffe:main May 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants