Giter VIP home page Giter VIP logo

twinetest's Introduction

This is a Twine/Twee - testgame based on the setup from ChapelR/tweego-setup. Its not a real game but a testground.

!!!! >>>> See wiki for more information <<<< !!!!

It features:

  • interactive fiction where you move through locations
  • save-system (browser storage)
  • a basic inventory
  • very basic combat encounter
  • javascript code to make writing passages easier

In progress:

  • outfit-system with graphical/textual presentation
  • save-system (file storage)
  • quest tracker
  • States and effects

Todo:

  • combat logic and calculation

  • ???

Setting up everything

You need to install nm,gulp and tweego according to ChapelR's description (README_old.md) and dont forget "npm install".

This project uses storyformat "snowman2" (included in tweego). Run format.bat and select the storyformat snowman-2.

How to Edit this

Use an texteditor to edit twee's here .\project\twee. I use VSCode with Twee3 language tools. Place additional css/ js in the styles/scripts-folders. Place images/sounds,... here ./dist/assets Then execute run build.bat. This will compile the html in ./dist and should open the game in your browser.

If you have a project in twine editor you can export an archiv and use tweego to create a twee: tweego -d -o archiv.twee archiv.html You can load the html created by tweego into twine-editor

How to debug this

After opening the html in browser activate developer tools by pressing F12. You will not find the scripts on tab sources ! To find a function add a watch for the object containing the function. f.e window.gm You should see the functions in the watch. And you can right click and select "show function defenition". Now the script should be shown and you can set breakpoints and debug.

twinetest's People

Contributors

jackdarker avatar

Watchers

 avatar  avatar  avatar

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.