Some text adventure games written for HERITAGE
Clone
HTTPS:
git clone https://vervis.peers.community/repos/Krnxv
SSH:
git clone USERNAME@vervis.peers.community:Krnxv
Branches
Tags
main.heritage
info():
author: fr33domlover
title: Box
license: CC0 Public Domain Dedication
note: Inspired by an idea from a film. Don't watch it before you play.
spoiler_warning: If you look at the game source .heritage files before
playing, it may reveal things and ruin the game. Don't
worry, it's CC0, you can look as soon as you play the
game.
note2: There may be more than one way to reach "game over". Explore.
version: 0.1
import(cave)
import(escape)
import(first)
import(rest)
import(vars)
room(0.0.0):
description: $(equals:light,0;You are standing. But it's hard to say where,
because it's dark. You can't see anything. Just black
everywhere.
It seems there's some large object on the floor. You can feel
it using your legs, but it's too dark to see what it is.)$
$(equals:light,1;You are in a small room, lit by a
power-saving, environment-friendly light bulb attached to the
ceiling.
There is a stationary bicycle standing here.
There is an exit to the north, leading to another room.)$
items: object, bicycle, bulb
exits: north.1
exit(1):
fail: Where? I can't see!
equals: light,1
item(object):
on_examine: $(equals:light,0;It's dark, you can't see it. But you could try
to touch it.)$
$(equals:light,1:It's a stationary bicycle.)$
on_touch: Hmmm... it seems to be a stationary bicycle. Like the ones you
can find in a gym.
item(bicycle):
on_examine: It's a stationary bicycle. People use them for exercise and
for generating electricity.
on_ride: You sit on the bicycle and start riding. It's very difficult to
move, maybe due to rust. But it seems to generate power! And that
power is now powering a light bulb. Woohoo, I can see!#(light=1)#
item(bulb):
on_examine: It's a power-saving, environment-friendly light bulb. When it
stops working, which will happen in roughly a hundred years, it
can be recycled into a new light bulb.