Repository navigation
Conversation
A panel for any project that lays out a game's chapters, scenes, levels or quests as cards joined by arrows, on OhMyGame's own canvas (omg-canvas, API 2.38), kept in story-board/, with a Skill so agents read and update the board.
The board's canvas is the plugin's own panel/canvas.js, with a copy of the app's alignment guides, instead of a new OhMyGame page component: plugins are mostly not canvases yet, so the shared one waits until more need it. The plugin now needs API 2.37.
…empty board OhMyGame drops its own Story canvas, and an interactive story is a web game whose flow is graph.json. An empty board in such a project offers to make a card per Scene, where the old canvas placed it, with its picture and files, and an arrow per connection named after its Exit. Undo takes it back.
Contributor
Author
|
Closing for now. Interactive stories are moving to the separate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
A new Beta plugin,
ohmygame/story-board, inplugins/story-board:panel/canvas.jsholds<story-canvas>and<story-card>, andpanel/canvas-alignment.jsis a copy of the app'ssrc/renderer/canvas-alignment.ts.editor-canvas.tsx,canvas-node-label.tsx,canvas-node-interactions.tsxand the Story canvas styles.story-board/board.json(version 1: read tolerantly, written strictly, and never written over when a later version saved it),layout.json, andimages/.story-boardSkill tells agents the format and to keep the board in step with the game.Why
A design document for a game's flow that works for any kind of game. It runs nothing and is tied to no project type.
How I checked
dev, without any canvas component:plugin:checkreports no problems.test/official.test.ts,catalogandcheckspass for story-board. The one failure is game-tests, which needsnpm run build:game-testsfirst.dev's page components, I checked cards, ports, edge hover and scissors, the menu, undo, redo, duplicate, copy and paste.Before merging
It needs API 2.37. Pictures added from the panel need WhiteTowerAI/ohmygame#1141: without it, the app reloads the panel while the picture is written, and the card doesn't keep it. Merging here publishes the plugin, so merge it once an app with #1141 is out, or accept that pictures don't stick until then.