Giter VIP home page Giter VIP logo

statico / the-archive-public Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 28 KB

๐Ÿงžโ€โ™‚๏ธ Public version of The Archive, the text adventure game on langworth.com, but without secrets.

Home Page: https://langworth.com/

License: MIT License

Inform 7 86.31% Shell 7.92% Dockerfile 5.77%
inform inform7 interactive-fiction if text-adventure text-adventure-game z-machine z8

the-archive-public's Introduction

The Archive - PUBLIC REDACTED VERSION

This is the public redacted version of the text adventure game found on https://langworth.com. It's mostly the same source but without the initial puzzle secret and most of the story and secrets.

๐Ÿ‘‰ The file you probably want to look at is the-archive.inform/Source/story.ni. ๐Ÿ‘ˆ

It's built with Inform 7, a system for creating interactive fiction (IF) games like Zork. On the web site it runs in a CRT terminal emulator (langterm) with a Z-machine HTTP server (glulxe-httpd).

You almost certainly want to read Inform 7 for Programmers.

image

Development (macOS)

We'll install the IDE and use its pre-compiled tools, but I prefer to do development in the terminal using glulxe.

  1. brew cask install inform - installs the IDE and compiler
  2. brew install glulxe frotz - installs a command-line Glulx player and dfrotz for testing
  3. Open the extensions folder from Inform.app (probably ~/Library/Inform/Extensions) and download https://github.com/i7/archive and extract the contents there
  4. Make sure the game compiles from Inform.app by opening the-archive.inform and clicking the "Go!" button.
  5. npm install -g nodemon for an easy file watcher
  6. Open three terminals:
  7. vim story.ni - to edit the story (and install my port of the vim-inform7 syntax file)
  8. nodemon -e ni -x ./build - to build the .ulx file when the story changes
  9. nodemon -e ulx -w run -w . -x ./run - to run a script through the game when the .ulx file changes

Testing

  1. To build a non-ncurses, text-only version of glulxe: Check out glulxe and cheapglk beside each other. Build cheapglk and then glulxe. Copy the glulxe binary to dglulxe somewhere in your path. (The "d" is for "dumb.")

./test will compare the game's output against the saved snapshots.

Run ./test -s to update the snapshots.

Deploy

Run RELEASE=1 ./build and copy the .ulx file to the server.

the-archive-public's People

Contributors

statico avatar

Stargazers

 avatar

Watchers

 avatar  avatar

the-archive-public's Issues

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.