Dethe Elza
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Garden Design Notes ###### tags: `sketchdance` Garden of Forking Paths: A distributed, collaborative tool for making and playing games. Goals: * Import from Inky and Twine games * Integrate Trizbort (or Twine?) for mapping * Make Twine/Chapbook the native format? With some multiplayer extensions? Tempting. * Inky: https://www.inklestudios.com/ink/ * Twine: https://twinery.org/ * Chapbook: https://klembot.github.io/chapbook/ * How hard will it be to convert Garden to the [Standard Stack](https://hackmd.io/-11_ctzwS7C0V62ipeLyNg?both)? * How hard will it be to adapt Twine/Chapbook to multiplayer? Known bugs: * [x] Choosing a world broken in Wizard mode mode * [x] Missing `@change` handler in Player mode * [x] Fix `path()` * [x] Fix `<iframe>` in wizard mode * [x] Fix persistent problem saving messages Next: * [ ] Parse messages into HTML * [ ] HTML editor for description fields * [ ] Filter HTML * [x] Add messages to player view * [x] Add flag for private for worlds in Wizard mode * [x] Load room when world is loaded * [x] Prompt player to create a character if they don't have one Fixmes: * [ ] exitRoom function * [ ] sendMessage function * [ ] updatePlayer function * [ ] filter out private worlds from Players * [ ] sanitize data using https://github.com/punkave/sanitize-html * [ ] parse messages -> markup using https://github.com/pocka/slack-message-parser First round of extensions: * [ ] Only able to use/see exit if carrying specific item * [ ] Only able to use/see exit if specific event happened (intract with NPC, visit room, used item): reversible, not * [ ] Pick up items * [ ] Drop / Give / Use items * [ ] NPCs in chat rooms * [ ] Money / points accumulation * [ ] Spend money ## Optional (i.e., LATER) features * Auto-mapping to give a view like Twine * Graphics for rooms * Chat within rooms * Import/Export game (not chats) as Markdown * Using variables & randomness * Basic nouns and verbs, inventory * Creating new nouns and verbs * General availability of programming * Elm for coding? ## Inspiration and Examples * [Caves of Quilth - Twine](https://hackmd.io/yiGEiGleTX-9BEe4Q5bIwg?both) * [Flatpack - Inky](https://hackmd.io/OzM3lFILSQ2If1J0bMwRCg?both) Minimum requirements: Minimal authentication (so we can see who edits what), Lightly marked up text for "room", places to add "exits", play vs. edit. User: Name, password, friends, description, short description, per-world: inventory, rooms visited, secrets known World: Starting room (can be a function, e.g. to randomize), current room Room: exits, inventory, description, short description NPCs: name, description, location, motivations?, likes/dislikes?, inventory Item: name, description, edible?, weapon?, throwable? container?, carryable? Update 2019-02-10: Put exits and messages directly in Room object. Playing the game: * One world * One room * Exits for that room * Characters in that room & login status * Chat for that room * Subscribe to changes on all of the above * Changing online status, entering or exiting room should generate system chat messages Working on the game * One world * Edit view for world, room * Current room in Play view in iframe * List of orphaned rooms (no way to reach them) * List of dead-end rooms (no-way to get out) * Ideally, a map * A way to choose room to edit * A way to promote/demote/ban/unban characters (or players?) Admining the game * Stream of all events, filterable * Stream of all chats, filterable * Stream of all errors * Stream of possible code of conduct violations Needs a highly visible code of conduct for the game. Include respect for code of conduct as part of license agreement. Still needs data sanitization, throttling, max characters in schema, etc. ## Objects MODEL CHANGES NEEDED: * Move wizard roles from character to a list of player ids in world * Move banned roles from character to a list of player ids in world * Create a universal banned list List of Worlds World * ID * created * createdBy * modified * modifiedBy * Name * Summary * Description * Exits: list * Starting Room Player * ID * created * lastLogin * online * Name * Password * Summary Character * ID * created * modified * wizard * Name * Summary * Description * Player * Room * World Room * ID * created * createdBy * modified * modifiedBy * Name * Short Description * Notes - for authors, not shown to players * Exits: array of {name,destination} pairs Message * text * name * player (id) * room (id) * createdAt * createdBy ## Description Rather than having a parsing engine, will use a HTML GUI, so all available verbs, nouns, and exits are clearly avalable. In edit mode, all exits are available, but ones that don't go anywhere are colour-coded and clicking allows them to be targeted. Don't want to make it too complicated. ## Architecture * ~~Nginx server for static html~~ irrelevant * JavaScript (would love to use elm if db can interface) * Also looked at Vue.js, looks pretty good, but feather/vue adapter requires webpack/browserify (ugh) and may be out of date. UPDATE: vue.js is fine, don't need adapter. * Trix for editing copy? * Sanitize-html for cleaning copy * Slack-message-parser for richer messages * ~~GUN for database?~~ * ~~Rethinkdb for database (alternate: https://pusher.com/)~~ * FeatherJS for database connection layer / realtime updates * Question: can I handle users with FeatherJS? Answer: Yes * Question: can I hook up Elm with Rethinkdb? Answer: Probably * ~~Bliss for helpers~~ Not needed with vue.js * AWSM for styling (WIN!) * WebSockets / WebRTC ### Why not GUN? Aside from potential performance issues with distributing the entire list of worlds among all peers (and storing them in localStorage), there is no way to remove data from GUN, so if someone builds racist, sexist, or homophobic content, there is no way to delete it. That is not acceptable for my use case.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully