mirror of
https://github.com/2009scape/2009scape.github.io.git
synced 2024-11-04 10:02:36 +01:00
69 lines
1.3 KiB
JavaScript
69 lines
1.3 KiB
JavaScript
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/_
|
|
\_______/
|
|
|
|
*/
|
|
|
|
};
|