NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

var currentLocation = 0;
var items = [
{
name: "Torch",
type: "pocketable",
loc: 11
},
{
name: "Sword",
type: "stabbingWeapon",
loc: 50
},
{
name: "Kitty",
type: {
type1: "backpackable",
type2: "handHeld"
},
loc: 24

}
];
var locations = [
{
name : "Village",
description : "You are in a small village that you live in, and there is a castlen in the distance. It appears that no one else is awake yet.",
options : [{
description :"Go to the castle",
key : "c",
action: 1
},
{
description : "Explore the Village",
key:"e",
action: 5
}]
},
{
name:"Castle",
description: "You have walked to the castle and it has taken a half ann hour to get there. It is a run down, ivy covered buildingn with holes in the sides. One of the few things standingn is a big wooden door, two times the size of you.",
options: [{
description : "Open door",
key : "d",
action: 2
},
{
description: "Go back to village",
key: "v",
action: 0
},
{
description : "Go around the Castle",
key: "g",
action: 3
}
]
},
{
name: "In Castle",
description: "You open the door. It is heavy and it is hard to move. When n you finally get it open, rocks fall on your head n and you die.",
options: [{
description: "RIVIVE!!!!!",
key: "r",
action:0
}]

},
{
name: "Left Side Of Castle",
description: "You walk to the left and you find a large chink in the wall. It n is just the size for you to climb through. There is ivy hanging ndown.",
options: [{
description: "Go through the chink",
key: "k",
action: 4

},
{
description: "Go back to the front of the Castle",
key: "b",
action: 1
},
{
description: "Go on",
key: "o",
action: 6
}]
},
{
name: "Inside Chink",
description: "You climb into the chink and in there you find a room n and in the middle is a big chest with a big lock. The lock is to n big to break, but the keyhole is so small. On the chest there is n a riddle, but you are too far away to see what it says.",
options: [{
description: "Get closer to the Chest",
key: "t",
action: 7
},
{
description: "Get out of the room",
key: "h",
action: 3
},
{
description: "Look Around the room",
key: "l",
action: 8
}]

},
{
name: "In the Village",
description: "There are about 15-20 houses and they all are worn. n They seem to have been built and then never n used. One of the houses has smoke coming n out of the chimney.",
options: [{
description: "Go where the smoke is",
key: "h",
action: 9
},
{
description: "Explore More",
key: "m",
action: 10
},{
description: "Go to the Castle",
key: "c",
action: 1
}]
},
{
name: "Back Side of the Castle",
description: "You wander and before you can realize it, n you fall into a deep pit and die",
options: [{
description: "RIVIVE!!!!!",
key: "r",
action: 0
}]
},
{
name: "The Chest",
description: "You get closer to the chest and before you get ever close to n reading it,you get shot in the sides with arrows and you die.",
options: [{
description: "RIVIVE!!!!!",
key: "r",
action: 0
}]
},
{
name: "The Chest Room",
description: "You look around the room and you see the small n torch lights are removable and you can carry them.n You also see there are two other exits, one on n your left and one on your right.",
options: [{
description: "Get a torch",
key: "t",
action: 11
},
{
description: "Go to the left exit",
key: "l",
action: 12
},
{
description: "Go to the right exit",
key: "r",
action: 12
}]
},
{
name: "On the Roof",
description: "You climb up on the roof to find the smoke n(not a wise desision) and you suficate by the smoke. YOU n DIE!!!!!!!!",
options: [{
description: "RIVIVE!!!!!",
key: "r",
action: 0
}]
},
{
name: "In the Pit Of DOOM!",
description: "You explore through the village until the floor n colapses and you fall into oblivion.",
options: [{
description: "RIVIVE!!!!!",
key: "r",
action:0
}]
},
{
name: "Getting a torch",
description: "You grab a torch off the wall and you then n see the pressure plates surrounding the chest and n the aroow shooters on the walls.",
options: [{
description: "Put the torch down",
key: "d",
action: 13

}]
},
{
name: "The Exits",
description: "You come to the exit and it goes on for about n 50 feet and then turns. There are no n torches and no light that you can see.",
options: [{
description: "Go through the exits",
key: "e",
action: 6
}]
}, {
name:"Making a Bad Decision",
description: "You stoop down and put the torch down and then leave. nThen you smell the smell of burning wood. You turn and the ntorch is burning up the castle!",
options: [{
description: "Leave the Castle to Burn",
key: "l",
action: 14
},
{
description: "Try and stop the Fire!",
key: "f",
action: 15
}]
},
{
name: "Burning Castle",
description: "You run out of the burning castle and back to n the village. You can see the flames from where you are, nand... they seem to be getting closer to the village. (Dun dun nDUN!!!)",
options: [{
description: "RUN!!!",
key: "r",
action: 16
},
{
description: "Try to warn the villagers",
key: "w",
action: 17
}]
},
{
name: "I guess your gone in History",
description: "You take your shirt off and put it over the fire.n It stops that fire patch, but your shirt burns and you have nnothing else to stop it with. (You can use your pants, butn, nevermind)",
options: [{
description: "Use your pants",
key: "p",
action: 18
},
{
description: "Leave the Castle to Burn",
key: "l",
action: 14
}]
},
{
name: "Hunger is your Worst Enemy",
description: "You run for 3 days before you lose track of the nfire. It's then and only then you realize you forgot both food nand water. *Facepalm*",
options: [{
description: "Try and find water and food",
key: "f",
action:19
},
{
description: "Go back to the burning village",
action:20,
key: "b",
},
{
description: "Stay and technically kill yourself",
}]
},
{
name: "Warning just Might Work",
description: "You stop running, and then you start running from ndoor yelling, FIRE!!!! The people run out of their doors and bringing with them barrels of water",

}
];

var player = {
hunger:10,
health:10,
age:10,
name:"George"
};
var draw = function() {
background(255, 255, 255);
fill(0, 0, 0);
var loc = locations[currentLocation];
text(loc.description, 60, 75);
for(var i = 0; i < loc.options.length; i++) {
text(loc.options[i].description, 60, 150 + i * 15);
text("Press key "+loc.options[i].key,250,150 + i *15);

}
for (var i = 0 ; i < items.length ; i++) {
if (items[i].loc === currentLocation) {
text("The following items are in this location: " + items[i].name, 60 ,120);
}
}

};
var keyPressed = function() {
var i = 0;
var keyString = key.toString();
var loc = locations[currentLocation];
for(var i = 0; i < loc.options.length; i++) {
var opt = loc.options[i];
if(keyString=== opt.key){
currentLocation =opt.action;
}

}
};
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.