1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 11:41:18 -04:00

commit all random stuff to repo

This commit is contained in:
2018-05-17 14:47:47 -05:00
parent f38f231cae
commit 809962e1ed
62 changed files with 9187 additions and 26 deletions

68
static/candies/scripts/sea.js Executable file
View File

@@ -0,0 +1,68 @@
var sea = {
// Variables
size : 25,
// Functions
onload : function(){
land.addLand("sea", this.size, -1, this.load.bind(this), this.getText.bind(this));
},
load : function(){
},
getText : function(){
// Get the character position
var index = quest.getCharacterIndex();
// Create the text
var text = " \"The sea\"\n\n\n";
for(var i = 0; i < index; i++){
text += " ";
}
text += " _\n";
for(var i = 0; i < index; i++){
text += " ";
}
text += " /|\\\n";
for(var i = 0; i < index; i++){
text += " ";
}
text += " /_|_\\\n";
for(var i = 0; i < index; i++){
text += " ";
}
text += " ____|\\o/_\n";
for(var i = 0; i < index; i++){
text += " ";
}
text += " \\_______/\n";
for(var i = 0; i < this.size + 2; i++){
text += " ~ ";
}
text += "\n ";
for(var i = 0; i < this.size + 1; i++){
text += " ~ ";
}
return text;
}
/*
_
/|\
/_|_\
____|\o/_
\_______/
*/
};