Giter Club home page Giter Club logo

twine-games's Introduction

Twine Games (Deprecated)

Set of simple browser games built in Twine

Play them online!

Deprecated 11/2020 in favor of modular repository structure - twine.brisberg.dev.

Install

Install golang for your system.
Install the Tweego compiled binary with:
go get github.com/tmedwards/tweego

Editing

Tweego

Use the Tweego twee compiler to compile .twee or .tw files into built .html files ready for viewing.

  • Make edits to the .twee or .tw files for your game.
  • Compile it for viewing/distribution
    • go run builder/*

Story Formats

The Tweego compiled requires a local copy of any Storyformat you use, located in the storyformats/ directory. If you need a new format you will need to get them yourself, and add them to the formats folder.

For a list of all formats Tweego has access to: go run github.com/tmedwards/tweego formats

Online-editor

Less perferable, but if you'd like a graphical view of the story structure the compiled .html file can be edited using the online Twine 2 Editor.

NOTE: This will only work for games built in a single .twee file.

  • Open the Editor at https://twinery.org/2
  • Import from File and select the compiled <story>.html file.
  • Make any edits / rearrange stories
  • Publish to File and overrite the old <story>.html file.
  • Run the Tweego decompiler to backport your changes to the `.twee file.
    • go run github.com/tmedwards/tweego dist/<game>.html -o games/<game>/<game>.twee -d (-f <format>)

Analytics

This project uses Google Analytics and Google Tag Manager to track user engagement.

The analytics.html file initializes a GTM dataLayer for the container of all TwineGames: GTM-T6XR5LZ. This does not need to be modified per game, just set up a unique trigger/tag for each game and use the GameName as the event name.

Be sure to forward the GTM tag to a specific GA Property for each game.

Events

Because Twine games are run as a single page, GTM will only pick up a single page view event by default. If you want to track other engagement, you must provide custom events (such as "Start", "Finish", "Dead", etc).

Follow this naming scheme for custom events.

twine-games's People

Contributors

brisberg avatar

Watchers

 avatar  avatar

Forkers

mo-qam

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.