GuildCrafts / web-development-js

Craft repository for Web Development with JavaScript
http://jsdev.learnersguild.org/
Other
1 stars 1 forks source link

Text Based Choose Your Own Adventure Game! #151

Open lizzkats opened 7 years ago

lizzkats commented 7 years ago

Description

Create an old school text-based choose your own adventure game!

Here are some examples of the types of games you can build: https://www.choiceofgames.com/category/our-games/

Here is a fun optional NPM package that you can use: https://www.npmjs.com/package/novel-js Demo: http://nanofus.github.io/novel.js/

You should be able to play this game in the browser.

Context

This goal is a fun practical application of JS.

Specifications

Stretch:

Required

Do not remove these specs - they are required for all goals.

Quality Rubric

Variables, functions, and classes/modules are clearly named: 100pts README and CONTRIBUTING files are well written: 50pts

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

lizzkats commented 7 years ago

@GuildCrafts/moderators can you please review this pull request?

mantinone commented 7 years ago

Re: Stretch Goal - There are a lot of potential uses for different data structures here. I think the overall structure of this sort of game is best represented with a Directed Graph.

lizzkats commented 7 years ago

@mantinone I changed it to be less specific on the data structure

tannerwelsh commented 7 years ago

@lizzkats it's a little light on description at the moment. Here's how you could improve it:

lizzkats commented 7 years ago

@tannerwelsh I updated the specs- do you have any ideas of how to make this more challenging? I think trying it in Python could be cool but I don't want to make it mandatory.

Also, i'm having trouble understanding how much of the content should be pre-built. Should I look for a JSON file containing story data?

tannerwelsh commented 7 years ago

Nice, looking better @lizzkats!

To make it more challenging, you could be more specific about how the UI should behave. This would be easy if it's just a series of alert() and confirm() messages, but slightly more challenging to have a running storyline, with prompts (kindof like a terminal).

You could also look at an app like https://writer.inklestudios.com/ for inspiration (or even just take a screenshot and say "build it like this").

Re: how much content. I'd say enough so that the goal could be completed without having to write your own story, but that people could add to it or use their own if they wanted to. With a little searching I came across this repo: https://github.com/jasongi/choose-your-own-adventure/. In the Story2 folder there are text files for each branch of the story, and a JPG of the flowchart that the story is based off of.

That's another thing you could do to help people jump-start: provide a few flow charts that they could rebuild as a story. That doesn't sound nearly as exciting, but maybe there are some fun ones out there.