WebFund 2013F: Tutorial 6

From Soma-notes
Revision as of 04:24, 11 October 2013 by Soma (talk | contribs) (Created page with "In this tutorial you will be playing with [http://homeostasis.scs.carleton.ca/~soma/webfund-2013f/adventure-demo.zip adventure-demo]. Its key features are that it: * keeps tr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In this tutorial you will be playing with adventure-demo. Its key features are that it:

  • keeps track of player state (what room the player is in), and
  • generates room web pages (including routes) using a simple JSON description of rooms.

To get credit for this tutorial, make a non-trivial (but still simple) modification/extension to the adventure. Ideas for possible extensions:

  • Add a few rooms that are properly connected to the rest.
  • Make the text of the room links the title of the rooms (rather than their JSON property name).
  • Make it so that the player ends up in the secret room 25% of the time when they click on a new link.
  • Add an object that you can pick up and move to another room.
  • Use the player name in the descriptions of the world.
  • Implement game save/restore (persistent as long as the server is running.)

Feel free to make your own editions. Have fun!