Client side programming

Let's create a text based RPG

The exam II

Synopsis

The story begins the night before the exam. Should you go to sleep or study some more?

When you get there, you are asked for your photo ID and student card. Did you bring it?

The test then contains three JavaScript questions, can you answer them?

Is it true that the answers are hidden in the toilet?

The scenes

The hallway

  • time != 9.00
  • Warm black jacket
  • Fancy red jacket

The classroom

  • id == true?
  • note==false

loop three questions

if fail ask toilet

The toilet

  • Pick up the note?

The night before

Pass or Fail

each is a function

Or consider the flow of the game

What values does the game need to remember?

  • All the choices we make
  • Our "inventory"
  • Places we've been to
  • Results of test questions

Form a group and choose a function

Fork this codepen and start coding

The hallway

  • time != 9.00
  • Warm black jacket
  • Fancy red jacket

The classroom

  • id == true?
  • note==false

loop three questions

if fail ask toilet

The toilet

  • Pick up the note?

The night before

Pass or Fail

the game

the forks