philschatz / puzzlescript

:video_game: Play Accessible PuzzleScript games in your terminal or embed them
https://philschatz.com/puzzlescript/
28 stars 11 forks source link
accessible game game-engine hacktoberfest puzzle puzzle-game

Accessible PuzzleScript

NPM version Downloads Code coverage

Play in a browser or on your mobile device

  1. Visit the website
  2. Click the "Add" button at the bottom to keep playing even without an internet connection
  3. Plug in a :video_game: controller! (tested with PS3/4/XBox)
If you are using iOS (Apple phone or tablet) click here for instructions 1. Visit the [website](https://philschatz.com/puzzlescript) 1. Click the Share button in Safari 1. Scroll over and click "Add to Home Screen" ![ios-install](https://user-images.githubusercontent.com/253202/53995149-c5bc5800-40f9-11e9-9e54-3f6a0e10b857.gif)

Play from the command line terminal

  1. Run npx puzzlescript-cli to start playing!

Screencaps

Here are some screencaps of games being played.

Pot Wash Panic! (source)

(click to see the ascii screencast)

video of install and a couple games

Skipping Stones to Lonely Homes (source)

video of the beginning of Skipping Stones (BIG)

Hack the Net (source)

video of a couple levels of Hack-the-Net

Entanglement (source)

video of the beginning of Entanglement

Mirror Isles (source)

This screencast shows playing the game in a terminal using ASCII and ANSI colors.

mirror-isles

Video games that blind people can play?

PuzzleScript lends itself nicely to be playable by people with low or no vision:

  1. each level is small (~10x10)
  2. each sprite has a human-readable name (since the whole game is in 1 text file and the logic refers to the sprites)
  3. a blind person has 2 sets of directions (one to move the player and one to move the “eye” which reads off which sprite is in that spot)
  4. the games do not require quick reflexes and have Undo built-in so it is easy to think and try different options
  5. we can just print to the terminal whenever something needs to be read (presumably the terminal is read aloud to the person)

If you are blind, you can play the games by running puzzlescript --no-ui and use the I, K, J, L, and P keys to move the cursor to explore the level.

If you want to experience what a non-sighted person would experience but still see the level, run NODE_ENV=development puzzlescript and use the I, K, J, L, and P keys to move the cursor to explore the level.

Screencap

This screencap is a visual demonstration of exploring and then playing a level.

exploring and playing a level without sight (visual depiction)

This screencap is the non-visual version of the same steps as shown above. This is what vision-impaired people will read when they move the Inspector cursor around and then move the player to play the game.

exploring and playing a level without sight

About

The goal of this project is to do 3 things:

  1. make PuzzleScript easier to embed (like in 404 pages, easter eggs, etc). See docs
  2. allow blind people to play video games (by passing the --no-ui argument)
  3. use the terminal as a GUI for playing games

Accessibility Notes

To use https://chromevox.com, table navigation keys on the Mac are Ctrl + Command + Up.

Development Instructions

  1. Install lerna
  2. lerna bootstrap --force-local
  3. lerna run compile
  4. lerna run test --stream
    • you can run test:unit or test:web to just run tests specific to a package
  5. lerna run test:integration --stream (this runs several games and takes about 30min)
  6. lerna run start:server --stream to start up a server

Maintainer Instructions

To publish a new version of the packages:

lerna publish prerelease

TODO