main.heritage 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. info():
  2. author: fr33domlover
  3. title: Box
  4. license: CC0 Public Domain Dedication
  5. note: Inspired by an idea from a film. Don't watch it before you play.
  6. spoiler_warning: If you look at the game source .heritage files before
  7. playing, it may reveal things and ruin the game. Don't
  8. worry, it's CC0, you can look as soon as you play the
  9. game.
  10. note2: There may be more than one way to reach "game over". Explore.
  11. version: 0.1
  12. import(cave)
  13. import(escape)
  14. import(first)
  15. import(rest)
  16. import(vars)
  17. room(0.0.0):
  18. description: $(equals:light,0;You are standing. But it's hard to say where,
  19. because it's dark. You can't see anything. Just black
  20. everywhere.
  21. It seems there's some large object on the floor. You can feel
  22. it using your legs, but it's too dark to see what it is.)$
  23. $(equals:light,1;You are in a small room, lit by a
  24. power-saving, environment-friendly light bulb attached to the
  25. ceiling.
  26. There is a stationary bicycle standing here.
  27. There is an exit to the north, leading to another room.)$
  28. items: object, bicycle, bulb
  29. exits: north.1
  30. exit(1):
  31. fail: Where? I can't see!
  32. equals: light,1
  33. item(object):
  34. on_examine: $(equals:light,0;It's dark, you can't see it. But you could try
  35. to touch it.)$
  36. $(equals:light,1:It's a stationary bicycle.)$
  37. on_touch: Hmmm... it seems to be a stationary bicycle. Like the ones you
  38. can find in a gym.
  39. item(bicycle):
  40. on_examine: It's a stationary bicycle. People use them for exercise and
  41. for generating electricity.
  42. on_ride: You sit on the bicycle and start riding. It's very difficult to
  43. move, maybe due to rust. But it seems to generate power! And that
  44. power is now powering a light bulb. Woohoo, I can see!#(light=1)#
  45. item(bulb):
  46. on_examine: It's a power-saving, environment-friendly light bulb. When it
  47. stops working, which will happen in roughly a hundred years, it
  48. can be recycled into a new light bulb.