<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
</div>
</div>
// Press the S Key to get your Save File
// Copy, paste, and replace the ENTIRE Save Data into this Array
// Save as a Spin-off, this is YOUR game now.
var SAVE_FILE = [0,0,0,0,0,0,true,true,0,0,0,0,0,0,0,0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,"",0,0,0,""];
/*
HOW TO PLAY:
* Use ARROW KEYS to move
* use SPACEBAR to select
* Use the Q KEY to go to Avatar page/ quit Avatar page
* Use the W Key to switch Avatars
* PRESS S TO GET SAVE DATA!!!
I grew up with pokemon games, in fact I credit those games for sparking my interest in making games. I hope you all like this game, I put a lot of work into it.
And a BIG thanks to Skytobelow12™ #TGT for improving the graphics! Check out their other games at the link below, they're really cool.
https://www.khanacademy.org/profile/gingerlyginger1/projects
Log:
2-7-17: 330 Votes after just the first day... I'm speechless. This is now my program with the most successful release day, no contest. But I know from experience that the second day is usually the best indicator of how well a program will hold up over time. So I'll keep my fingers crossed for another good day tomorrow.
P.S. It took me all day, but I finally added a save feature to this game!
2-8-17: 607 Votes today! I did some work on the save feature and other minor fixes. I think it's safe to say that this program is going to steadily become more popular.
2-9-17: 833 Votes Today! I don't want to jynx anything, but the facts are that this program is still on top of the Hot List and the votes are steadily increasing.
2-10-17: 1024 Votes today! This game has made it past the 1000 vote mark and is still on top of the Hot List. This game has gradually been recieving less votes per day, but I still think this will end up being the most popular game I've made yet.
2-11-17: 1110 votes today and this game is now not on the top of the Hot List. But this game is only 30 votes away from being in the top 100 on the Top List.
2-12-17: 1162 Votes, and the hype for this game is reaching an end. I'm a little dissapointed that this didn't become my most popular program, but it is a close second.
7-20-17: 1687 Votes. Okay, this is now my biggest program, and it's still moving up the Top List.
9-7-17: I got some help from Skytobelow12™ #TGT, I saw a program on the Hot List where they improved the character designs for this game. I really liked them and I asked if I could use the new designs for this game. They agreed and even said they could improve the other graphics in this game! Thank you so much for your help!
3-21-18: Just Updated the game to add a battle tower and characters designed by the KA Community.
*/
var Skytobelow = true;
var diff=1;
var qwe=0;
var bob=0;
var story=0;
var dontWalk=0;
var x=0;
var y=0;
var walk=0;
var direction=4;
var gender=0;
var stopper=0; // Stops the buttons
var wild=0; // Determines if wild Avatars appear
var TallGrass=false; // Are you in the grass?
var ruffle =[0,0,0,0]; // Ruffling Grass
var page=-4; // Where are you?
var transition=0; // Transitions to a battle
var transition2=0; // transitions to trainer battle
var stop=false; // Keeps you from walking.
var personDirection=[3,4,4,0,0,1,2,1,4,4,1,3,1,3,3,2,3,1,4,2,4,1,4,4,4,4,4,4,4,4, 1,0,0,0,0,0,0,0]; //direction of people.
var personWalk=[6,1,0,0,0,0,0,0];
var talk=0;
var select=0;
var firstChoice = [1,1,1];
var stage=0;
var select2=0;
var four=0;
//Key Variables
var keys = [];
var keyPressed = function () {
keys[keyCode] = true;
};
var keyReleased = function () {
keys[keyCode] = false;
};
//Battle Variables ///////////////////////////////////
var wt = 0;
var lt = 0;
var appear=0; // Intro of the battle
var youGo=0; // Person leaving the battle
var lastPage=3; // The last place you were
// Your Avatar in Battle
var eLevel=0;
var avatarAppears=1; // Avatar coming into battle
var option=0; // Your battle options
var yourKind = 0;
var yourLevel=0;
var yourName="";
var nickname=false;
var yourType=0;
var yourHealth=150;
var yourAttack=0;
var yourDefense=0;
var yourSpeed=0;
var yourMove=[0,0,0,0];
var yourMovePower=0; // Power of your move
var yourAccuracy=0;
var catchPoints=5; // How many "Pokeballs" you have
var catcher=false; // Are you trying to catch the Avatar
var catchStat=0;
var battleText=""; // What the lower bar says durring battle
var yourFaint=0; // How many faints you have in a battle
var quake=0;
var moveText = function(x,y, q){
if(yourMove[q]===1){
text("Green Leaf",x,y,200,200);
}
if(yourMove[q]===2){
text("Red Leaf",x,y,200,200);
}
if(yourMove[q]===3){
text("Blue Leaf",x,y,200,200);
}
if(yourMove[q]===4){
text("Zen Light",x,y,200,200);
}
if(yourMove[q]===5){
text("Ignition",x,y,200,200);
}
if(yourMove[q]===6){
text("Cold Spark",x,y,200,200);
}
if(yourMove[q]===7){
text("Oak Forrest",x,y,200,200);
}
if(yourMove[q]===8){
text("Dragon Fire",x,y,200,200);
}
if(yourMove[q]===9){
text("Starlight",x,y,200,200);
}
if(yourMove[q]===10){
text("Earthquake",x,y,200,200);
}
if(yourMove[q]===11){
text("Doomsday",x,y,200,200);
}
if(yourMove[q]===12){
text("Vortex",x,y,200,200);
}
};
// Opponent in battle
var foeKind = 1;
var foeLevel = 0;
var foeName = "";
var foeType=0;
var foeHealth=150;
var foeAttack=0;
var foeDefense=0;
var foeSpeed=0;
var foeAccuracy=0;
var cosmoType=1;
var cosmo=true;
var avatarMan=true;
var yourTransform=false;
var foeMove=0;
var foeRunAway=0;
var foeMoveSelect =0;
var foeShow=true; // Is the opponent visible?
var foeTransform=false;
var blink=0;
var yourAvatarA = function(x,y){
if(yourKind===1){
image(getImage("avatars/leafers-seed"),x,y+100-avatarAppears,200,200);
if(stage===40){
playSound(getSound("rpg/hit-clop"));
}
if(nickname===false){
yourName="Leafers Seed";
}
yourMove=[1,1,1,1];
yourType=1;
yourSpeed=10;
yourAttack=15;
yourDefense=30;
eLevel=10;
}
if(yourKind===2){
scale(-1, 1);
image(getImage("avatars/leafers-seedling"),-x-190,y+120-(avatarAppears*1.5),200,200);
if(stage===40){
playSound(getSound("rpg/hit-clop"));
}
if(nickname===false){
yourName="Leafers Sprout";
}
scale(-1, 1);
yourMove=[1,1,1,1];
yourType=1;
yourSpeed=15;
yourAttack=20;
yourDefense=35;
eLevel=15;
}
if(yourKind===3){
scale(-1, 1);
image(getImage("avatars/leafers-sapling"),-x-190,y+110-(avatarAppears*1.3),200,200);
if(stage===40){
playSound(getSound("rpg/hit-clop"));
}
if(nickname===false){
yourName="Leafers Sapling";
}
scale(-1, 1);
yourMove=[1,4,1,1];
yourType=1;
yourSpeed=20;
yourAttack=25;
yourDefense=40;
eLevel=20;
}
if(yourKind===4){
scale(-1, 1);
image(getImage("avatars/leafers-tree"),-x-190,y+110-(avatarAppears*1.2),200,200);
if(stage===40){
playSound(getSound("rpg/hit-clop"));
}
if(nickname===false){
yourName="Leafers";
}
scale(-1, 1);
yourMove=[1,4,7,1];
yourType=1;
yourSpeed=25;
yourAttack=30;
yourDefense=45;
eLevel=25;
}
if(yourKind===5){
scale(-1, 1);
image(getImage("avatars/leafers-ultimate"),-x-140,y+110-(avatarAppears*1.3),200,200);
if(stage===40){
playSound(getSound("rpg/hit-clop"));
}
if(nickname===false){
yourName="Leafers-Ultimate";
}
scale(-1, 1);
noStroke();
fill(142, 197, 93);
ellipse(x+110,y+190-(avatarAppears*1.3),20,20);
stroke(0, 0, 0);
yourMove=[1,4,7,10];
yourType=1;
yourSpeed=30;
yourAttack=35;
yourDefense=50;
eLevel=undefined;
}
if(yourKind===6){
image(getImage("avatars/piceratops-seed"),x,y+100-avatarAppears,200,200);
if(stage===40){
playSound(getSound("retro/thruster-short"));
}
if(nickname===false){
yourName="πceratops Seed";
}
yourMove=[2,2,2,2];
yourType=2;
yourSpeed=20;
yourAttack=30;
yourDefense=10;
eLevel=10;
}
if(yourKind===7){
scale(-1, 1);
image(getImage("avatars/piceratops-seedling"),-x-190,y+120-(avatarAppears*1.5),200,200);
if(stage===40){
playSound(getSound("retro/thruster-short"));
}
if(nickname===false){
yourName="πceratops Sprout";
}
scale(-1, 1);
yourMove=[2,2,2,2];
yourType=2;
yourSpeed=25;
yourAttack=35;
yourDefense=15;
eLevel=15;
}
if(yourKind===8){
scale(-1, 1);
image(getImage("avatars/piceratops-sapling"),-x-190,y+120-(avatarAppears*1.3),200,200);
if(stage===40){
playSound(getSound("retro/thruster-short"));
}
if(nickname===false){
yourName="πceratops Sapling";
}
scale(-1, 1);
yourMove=[2,5,2,2];
yourType=2;
yourSpeed=30;
yourAttack=40;
yourDefense=20;
eLevel=20;
}
if(yourKind===9){
scale(-1, 1);
image(getImage("avatars/piceratops-tree"),-x-190,y+120-(avatarAppears*1.3),200,200);
if(stage===40){
playSound(getSound("retro/thruster-short"));
}
if(nickname===false){
yourName="πceratops";
}
scale(-1, 1);
yourMove=[2,5,8,2];
yourType=2;
yourSpeed=35;
yourAttack=45;
yourDefense=25;
eLevel=25;
}
if(yourKind===10){
scale(-1, 1);
image(getImage("avatars/piceratops-ultimate"),-x-190,y+120-(avatarAppears*1.3),200,200);
if(stage===40){
playSound(getSound("retro/thruster-short"));
}
if(nickname===false){
yourName="πceratops-Ultimate";
}
scale(-1, 1);
yourMove=[2,5,8,11];
yourType=2;
yourSpeed=40;
yourAttack=50;
yourDefense=30;
eLevel=undefined;
}
if(yourKind===11){
image(getImage("avatars/aqualine-seed"),x,y+100-avatarAppears,200,200);
if(stage===40){
playSound(getSound("rpg/water-bubble"));
}
if(nickname===false){
yourName="Aqualine Seed";
}
yourMove=[3,3,3,3];
yourType=3;
yourSpeed=30;
yourAttack=20;
yourDefense=20;
eLevel=10;
}
if(yourKind===12){
scale(-1, 1);
image(getImage("avatars/aqualine-seedling"),-x-190,y+120-(avatarAppears*1.5),200,200);
if(stage===40){
playSound(getSound("rpg/water-bubble"));
}
if(nickname===false){
yourName="Aqualine Sprout";
}
scale(-1, 1);
yourMove=[3,3,3,3];
yourType=3;
yourSpeed=35;
yourAttack=25;
yourDefense=25;
eLevel=15;
}
if(yourKind===13){
scale(-1, 1);
image(getImage("avatars/aqualine-sapling"),-x-190,y+120-(avatarAppears*1.5),200,200);
if(stage===40){
playSound(getSound("rpg/water-bubble"));
}
if(nickname===false){
yourName="Aqualine Sapling";
}
scale(-1, 1);
noStroke();
fill(138,212,241);
ellipse(x+100,y+230-(avatarAppears*1.5),60,30);
stroke(0, 0, 0);
yourMove=[3,6,3,3];
yourType=3;
yourSpeed=40;
yourAttack=30;
yourDefense=30;
eLevel=20;
}
if(yourKind===14){
scale(-1, 1);
image(getImage("avatars/aqualine-tree"),-x-190,y+120-(avatarAppears*1.4),200,200);
if(stage===40){
playSound(getSound("rpg/water-bubble"));
}
if(nickname===false){
yourName="Aqualine";
}
scale(-1, 1);
yourMove=[3,6,9,3];
yourType=3;
yourSpeed=45;
yourAttack=35;
yourDefense=35;
eLevel=25;
}
if(yourKind===15){
scale(-1, 1);
image(getImage("avatars/aqualine-ultimate"),-x-170,y+120-(avatarAppears*1.25),200,200);
if(stage===40){
playSound(getSound("rpg/water-bubble"));
}
if(nickname===false){
yourName="Aqualine-Ultimate";
}
scale(-1, 1);
noStroke();
fill(138,212,241);
ellipse(x+149,y+208-(avatarAppears*1.25),20,20);
stroke(0, 0, 0);
yourMove=[3,6,9,12];
yourType=3;
yourSpeed=50;
yourAttack=40;
yourDefense=40;
eLevel=undefined;
}
if(yourKind===16){
image(getImage("avatars/duskpin-seed"),x,y+100-avatarAppears,200,200);
if(stage===40){
playSound(getSound("retro/whistle2"));
}
if(nickname===false){
yourName="Duskpin Seed";
}
yourMove=[3,3,3,3];
yourType=3;
yourSpeed=25;
yourAttack=15;
yourDefense=20;
eLevel=10;
}
if(yourKind===17){
scale(-1, 1);
image(getImage("avatars/duskpin-seedling"),-x-190,y+120-(avatarAppears*1.5),200,200);
if(stage===40){
playSound(getSound("retro/whistle2"));
}
if(nickname===false){
yourName="Duskpin Sprout";
}
scale(-1, 1);
yourMove=[3,3,3,3];
yourType=3;
yourSpeed=30;
yourAttack=20;
yourDefense=25;
eLevel=15;
}
if(yourKind===18){
scale(-1, 1);
image(getImage("avatars/duskpin-sapling"),-x-190,y+120-(avatarAppears*1.6),200,200);
if(stage===40){
playSound(getSound("retro/whistle2"));
}
if(nickname===false){
yourName="Duskpin Sapling";
}
scale(-1, 1);
noStroke();
fill(213,164,232);
arc(x+110,y+240-(avatarAppears*1.6),83,70, -20,180);
stroke(0, 0, 0);
yourMove=[3,6,3,3];
yourType=3;
yourSpeed=35;
yourAttack=25;
yourDefense=30;
eLevel=20;
}
if(yourKind===19){
scale(-1, 1);
image(getImage("avatars/duskpin-tree"),-x-170,y+120-(avatarAppears*1.4),200,200);
if(stage===40){
playSound(getSound("retro/whistle2"));
}
if(nickname===false){
yourName="Duskpin";
}
scale(-1, 1);
noStroke();
fill(213,164,232);
arc(x+147,y+239-(avatarAppears*1.4),10,20, 33,180);
stroke(0, 0, 0);
yourMove=[3,6,9,3];
yourType=3;
yourSpeed=40;
yourAttack=30;
yourDefense=35;
eLevel=25;
}
if(yourKind===20){
scale(-1, 1);
image(getImage("avatars/duskpin-ultimate"),-x-170,y+120-(avatarAppears*1.4),200,200);
if(stage===40){
playSound(getSound("retro/whistle2"));
}
if(nickname===false){
yourName="Duskpin-Ultimate";
}
scale(-1, 1);
noStroke();
fill(213,164,232);
arc(x+138,y+189-(avatarAppears*1.4),13,20, -20,160);
ellipse(x+128,y+203-(avatarAppears*1.4),17,20);
fill(111,107,190);
arc(x+136,y+185-(avatarAppears*1.4),15,16, -20,160);
stroke(0, 0, 0);
yourMove=[3,6,9,11];
yourType=3;
yourSpeed=45;
yourAttack=35;
yourDefense=40;
eLevel=undefined;
}
if(yourKind===21){
image(getImage("avatars/primosaur-seed"),x,y+100-avatarAppears,200,200);
if(stage===40){
playSound(getSound("rpg/hit-splat"));
}
if(nickname===false){
yourName="Primosaur Seed";
}
yourMove=[2,2,2,2];
yourType=2;
yourSpeed=20;
yourAttack=25;
yourDefense=15;
eLevel=10;
}
if(yourKind===22){
scale(-1, 1);
image(getImage("avatars/primosaur-seedling"),-x-190,y+120-(avatarAppears*1.5),200,200);
if(stage===40){
playSound(getSound("rpg/hit-splat"));
}
if(nickname===false){
yourName="Primosaur Sprout";
}
scale(-1, 1);
yourMove=[2,2,2,2];
yourType=2;
yourSpeed=25;
yourAttack=30;
yourDefense=20;
eLevel=15;
}
if(yourKind===23){
noStroke();
fill(232,232,82);
arc(x+119,y+226-(avatarAppears*1.3),40,40, 50,120);
stroke(0, 0, 0);
scale(-1, 1);
image(getImage("avatars/primosaur-sapling"),-x-160,y+120-(avatarAppears*1.3),200,200);
if(stage===40){
playSound(getSound("rpg/hit-splat"));
}
if(nickname===false){
yourName="Primosaur Sapling";
}
scale(-1, 1);
yourMove=[2,5,2,2];
yourType=2;
yourSpeed=30;
yourAttack=35;
yourDefense=25;
eLevel=20;
}
if(yourKind===24){
scale(-1, 1);
image(getImage("avatars/primosaur-tree"),-x-180,y+120-(avatarAppears*1.5),200,200);
if(stage===40){
playSound(getSound("rpg/hit-splat"));
}
if(nickname===false){
yourName="Primosaur";
}
scale(-1, 1);
yourMove=[2,5,8,2];
yourType=2;
yourSpeed=35;
yourAttack=40;
yourDefense=30;
eLevel=25;
}
if(yourKind===25){
image(getImage("avatars/primosaur-ultimate"),x-20,y+120-(avatarAppears*0.83),200,200);
if(stage===40){
playSound(getSound("rpg/hit-splat"));
}
if(nickname===false){
yourName="Primosaur-Ultimate";
}
noStroke();
fill(182, 255, 140);
ellipse(x+130,y+192-(avatarAppears*0.83),20,24);
rect(x+130,y+172-(avatarAppears*0.83),50,34);
stroke(0, 0, 0);
yourMove=[2,5,8,10];
yourType=2;
yourSpeed=40;
yourAttack=45;
yourDefense=35;
eLevel=undefined;
}
if(yourKind===26){
image(getImage("avatars/starky-seed"),x-10,y+100-avatarAppears,200,200);
if(stage===40){
playSound(getSound("rpg/metal-chime"));
}
if(nickname===false){
yourName="Starky Seed";
}
yourMove=[1,1,1,1];
yourType=1;
yourSpeed=15;
yourAttack=20;
yourDefense=25;
eLevel=10;
}
if(yourKind===27){
scale(-1, 1);
image(getImage("avatars/starky-seedling"),-x-190,y+120-(avatarAppears*1.5),200,200);
if(stage===40){
playSound(getSound("rpg/metal-chime"));
}
if(nickname===false){
yourName="Starky Sprout";
}
scale(-1, 1);
yourMove=[1,1,1,1];
yourType=1;
yourSpeed=20;
yourAttack=25;
yourDefense=30;
eLevel=15;
}
if(yourKind===28){
scale(-1, 1);
image(getImage("avatars/starky-sapling"),-x-190,y+120-(avatarAppears*1.2),200,200);
if(stage===40){
playSound(getSound("rpg/metal-chime"));
}
if(nickname===false){
yourName="Starky Sapling";
}
scale(-1, 1);
yourMove=[1,4,1,1];
yourType=1;
yourSpeed=25;
yourAttack=30;
yourDefense=35;
eLevel=20;
}
if(yourKind===29){
scale(-1, 1);
image(getImage("avatars/starky-tree"),-x-190,y+120-(avatarAppears*1.58),200,200);
if(stage===40){
playSound(getSound("rpg/metal-chime"));
}
if(nickname===false){
yourName="Starky";
}
scale(-1, 1);
noStroke();
fill(70,53,65);
arc(x+118,y+210-(avatarAppears*1.58),49,56, 110,270);
fill(126,116,121);
arc(x+118,y+210-(avatarAppears*1.58),31,56, 90,280);
rect(x+114,y+190-(avatarAppears*1.58),11,40);
arc(x+97,y+243-(avatarAppears*1.58),60,60, 51,108);
stroke(0, 0, 0);
yourMove=[1,4,7,1];
yourType=1;
yourSpeed=30;
yourAttack=35;
yourDefense=40;
eLevel=25;
}
if(yourKind===30){
scale(-1, 1);
image(getImage("avatars/starky-ultimate"),-x-190,y+120-(avatarAppears*1.58),200,200);
if(stage===40){
playSound(getSound("rpg/metal-chime"));
}
if(nickname===false){
yourName="Starky-Ultimate";
}
scale(-1, 1);
noStroke();
fill(187, 185, 161);
beginShape();
vertex(x+110,y+168-(avatarAppears*1.58));
vertex(x+130,y+156-(avatarAppears*1.58));
vertex(x+120,y+180-(avatarAppears*1.58));
endShape();
fill(70,53,65);
arc(x+90,y+260-(avatarAppears*1.58),30,86, 180,450);
rect(x+74,y+240-(avatarAppears*1.58),11,40);
fill(126,116,121);
arc(x+98,y+190-(avatarAppears*1.58),62,60, 250,394);
stroke(0, 0, 0);
yourMove=[1,4,7,12];
yourType=1;
yourSpeed=35;
yourAttack=40;
yourDefense=45;
eLevel=undefined;
}
if(yourKind===31){
image(getImage("creatures/OhNoes"),x+20,y+120-(avatarAppears*1.0),140,120);
noStroke();
fill(188,231,177);
ellipse(x+100,y+178-(avatarAppears*1.0),80,90);
stroke(0, 0, 0);
if(stage===40){
playSound(getSound("rpg/giant-no"));
}
if(nickname===false){
yourName="Oh-Noes";
}
yourMove=[1,4,1,1];
yourType=1;
yourSpeed=15;
yourAttack=15;
yourDefense=15;
eLevel=10;
}
if(yourKind===32){
noStroke();
fill(255, 255, 0);
ellipse(x+70,y+152-(avatarAppears*1.0),57,54);
image(getImage("creatures/BabyWinston"),x+20,y+120-(avatarAppears*1.0),120,120);
fill(243, 243, 243);
ellipse(x+56,y+152-(avatarAppears*1.0),57,54);
stroke(0, 0, 0);
if(stage===40){
playSound(getSound("retro/jump1"));
}
if(nickname===false){
yourName="Baby Winston";
}
yourMove=[2,4,2,2];
yourType=2;
yourSpeed=25;
yourAttack=25;
yourDefense=25;
eLevel=15;
}
if(yourKind===33){
noStroke();
fill(255, 255, 0);
ellipse(x+95,y+197-(avatarAppears*1.0),150,150);
stroke(0, 0, 0);
if(stage===40){
playSound(getSound("retro/jump1"));
}
if(nickname===false){
yourName="Winston";
}
yourMove=[2,4,5,2];
yourType=2;
yourSpeed=35;
yourAttack=35;
yourDefense=35;
eLevel=25;
}
if(yourKind===34){
fill(92, 92, 92);
beginShape();
vertex(x+80,y+147-(avatarAppears*1.2));
vertex(x+50,y+127-(avatarAppears*1.2));
vertex(x+43,y+162-(avatarAppears*1.2));
endShape();
ellipse(x+90,y+212-(avatarAppears*1.2),140,140);
beginShape();
vertex(x+95,y+147-(avatarAppears*1.2));
vertex(x+125,y+127-(avatarAppears*1.2));
vertex(x+132,y+162-(avatarAppears*1.2));
endShape();
fill(0, 0, 0);
beginShape();
vertex(x+100,y+307-(avatarAppears*1.2));
vertex(x+80,y+187-(avatarAppears*1.2));
vertex(x+29,y+177-(avatarAppears*1.2));
vertex(x-33,y+302-(avatarAppears*1.2));
endShape();
if(stage===40){
playSound(getSound("rpg/giant-yah"));
}
if(nickname===false){
yourName="Bat-Winston";
}
yourMove=[3,4,5,9];
yourType=3;
yourSpeed=45;
yourAttack=45;
yourDefense=45;
eLevel=undefined;
}
if(yourKind===35){
noStroke();
image(getImage("avatars/orange-juice-squid"),x-10,y+125-(avatarAppears*1.7),200,200);
fill(236,101,55);
ellipse(x+90,y+180-(avatarAppears*1.7),110,110);
stroke(0,0,0);
if(stage===40){
playSound(getSound("retro/boom1"));
}
if(nickname===false){
yourName="OJ Squid";
}
yourMove=[2,5,8,2];
yourType=2;
yourSpeed=15;
yourAttack=25;
yourDefense=20;
eLevel=21;
}
if(yourKind===36){
noStroke();
image(getImage("avatars/purple-pi"),x-10,y+125-(avatarAppears*1.5),200,200);
fill(78,80,157);
ellipse(x+90,y+181-(avatarAppears*1.5),100,88);
stroke(0,0,0);
if(stage===50){
playSound(getSound("rpg/battle-spell"));
}
if(nickname===false){
yourName="Purple-π";
}
yourMove=[3,5,8,9];
yourType=3;
yourSpeed=35;
yourAttack=40;
yourDefense=40;
eLevel=undefined;
}
if(yourKind===37){
noStroke();
image(getImage("creatures/Hopper-Happy"),x+30,y+180-(avatarAppears*1.5),120,120);
fill(255,215,91);
ellipse(x+84,y+221-(avatarAppears*1.5),90,70);
beginShape();
vertex(x+39,y+226-(avatarAppears*1.5));
vertex(x+129,y+223-(avatarAppears*1.5));
vertex(x+100,y+451-(avatarAppears*1.5));
endShape();
stroke(0,0,0);
if(stage===40){
playSound(getSound("retro/laser4"));
}
if(nickname===false){
yourName="Hopper";
}
yourMove=[3,6,3,3];
yourType=3;
yourSpeed=25;
yourAttack=20;
yourDefense=20;
eLevel=12;
}
if(yourKind===38){
noStroke();
image(getImage("creatures/Hopper-Happy"),x+30,y+180-(avatarAppears*1.5),120,120);
fill(255,215,91);
ellipse(x+84,y+221-(avatarAppears*1.5),90,70);
beginShape();
vertex(x+39,y+226-(avatarAppears*1.5));
vertex(x+129,y+223-(avatarAppears*1.5));
vertex(x+100,y+451-(avatarAppears*1.5));
endShape();
stroke(0,0,0);
if(stage===40){
playSound(getSound("retro/laser4"));
}
if(nickname===false){
yourName="Hopper-2";
}
yourMove=[1,6,4,1];
yourType=1;
yourSpeed=30;
yourAttack=25;
yourDefense=30;
eLevel=13;
}
if(yourKind===39){
noStroke();
fill(0, 0, 0);
arc(x+124,y+214-(avatarAppears*1.5),60,70, 0,90);
arc(x+46,y+216-(avatarAppears*1.5),60,70, 0,180);
rect(x+11,y+206-(avatarAppears*1.5),148,10,4);
arc(x+86,y+209-(avatarAppears*1.5),140,30, -180,0);
image(getImage("creatures/Hopper-Happy"),x+30,y+180-(avatarAppears*1.5),120,120);
fill(255,215,91);
ellipse(x+84,y+221-(avatarAppears*1.5),90,70);
beginShape();
vertex(x+39,y+226-(avatarAppears*1.5));
vertex(x+129,y+223-(avatarAppears*1.5));
vertex(x+100,y+451-(avatarAppears*1.5));
endShape();
stroke(0,0,0);
if(stage===40){
playSound(getSound("retro/laser1"));
}
if(nickname===false){
yourName="Cool-Hopper";
}
yourMove=[2,6,4,5];
yourType=2;
if(stage===80){
yourSpeed=random(0,80);
yourAttack=random(0,80);
}
if(stage>80){
yourDefense=random(0,70);
}
eLevel=undefined;
}
if(yourKind===40){
noStroke();
image(getImage("avatars/marcimus"),x+30,y+180-(avatarAppears*1.5),120,120);
fill(222,70,147);
ellipse(x+90,y+241-(avatarAppears*1.5),104,80);
stroke(0,0,0);
if(stage===40){
playSound(getSound("retro/jump2"));
}
if(nickname===false){
yourName="Marcimus";
}
yourMove=[3,6,3,3];
yourType=3;
yourSpeed=30;
yourAttack=15;
yourDefense=20;
eLevel=19;
}
if(yourKind===41){
scale(-1, 1);
image(getImage("avatars/mr-pants-with-hat"),-x-160,y+122-(avatarAppears*1.5),140,200);
if(stage===40){
playSound(getSound("rpg/battle-magic"));
}
if(nickname===false){
yourName="Pants";
}
scale(-1, 1);
noStroke();
fill(66,183,161);
fill(94,190,169);
ellipse(x+85,y+241-(avatarAppears*1.5),78,120);
ellipse(x+87,y+188-(avatarAppears*1.5),30,30);
ellipse(x+143,y+209-(avatarAppears*1.5),30,30);
arc(x+100,y+211-(avatarAppears*1.5),89,60, -100,36);
stroke(0,0,0);
yourMove=[1,6,4,7];
yourType=1;
yourSpeed=40;
yourAttack=35;
yourDefense=40;
eLevel=undefined;
}
if(yourKind===42){
noStroke();
image(getImage("avatars/old-spice-man-blue"),x+30,y+180-(avatarAppears*1.5),120,120);
fill(20,178,197);
rect(x+52.5,y+205-(avatarAppears*1.5),74,100,20);
stroke(0,0,0);
if(stage===40){
playSound(getSound("rpg/step-heavy"));
}
if(nickname===false){
yourName="Old-Spice Man";
}
yourMove=[1,4,1,1];
yourType=1;
yourSpeed=10;
yourAttack=10;
yourDefense=35;
eLevel=16;
}
if(yourKind===43){
noStroke();
image(getImage("avatars/mr-pink"),x+30,y+180-(avatarAppears*1.5),120,120);
fill(185, 24,26);
ellipse(x+91,y+245-(avatarAppears*1.5),94,110);
stroke(0,0,0);
if(stage===40){
playSound(getSound("retro/rumble"));
}
if(nickname===false){
yourName="Mr. Pink";
}
yourMove=[2,4,5,8];
yourType=2;
yourSpeed=35;
yourAttack=40;
yourDefense=40;
eLevel=undefined;
}
if(yourKind===44){
noStroke();
yourMove=[3,4,5,6];
yourType=3;
yourSpeed=40;
yourAttack=40;
yourDefense=40;
eLevel=undefined;
if(foeType===1){
yourType=1;
yourMove[0]=1;
image(getImage("avatars/spunky-sam-green"),x+30,y+180-(avatarAppears*1.7),120,120);
fill(32, 163, 93);
ellipse(x+90,y+233-(avatarAppears*1.5),92,80);
}
else if(foeType===2){
yourType=2;
yourMove[0]=2;
image(getImage("avatars/spunky-sam-red"),x+30,y+180-(avatarAppears*1.7),120,120);
fill(190,58,20);
ellipse(x+90,y+233-(avatarAppears*1.5),92,80);
}
else{
yourType=3;
yourMove[0]=3;
image(getImage("avatars/spunky-sam"),x+30,y+180-(avatarAppears*1.7),120,120);
fill(0, 146,213);
ellipse(x+90,y+233-(avatarAppears*1.5),92,80);
}
stroke(0,0,0);
if(stage===40 || stage===44){
playSound(getSound("rpg/battle-swing"));
}
if(nickname===false){
yourName="Spunky Sam";
}
}
if(yourKind===45){
yourMove=[7,8,9,1];
yourType=cosmoType;
yourSpeed=50;
yourAttack=50;
yourDefense=50;
eLevel=undefined;
x=-150;
y=365;
scale(-1,1);
if(cosmoType===1){
yourMove[3]=10;
stroke(95, 148, 95);
fill(204, 242, 164);
arc(x+57,y+57-(avatarAppears*1.5),75,75, 0,200);
beginShape();
curveVertex(x+2,y+205-(avatarAppears*1.5));
curveVertex(x+21,y+46-(avatarAppears*1.5));
vertex(x+48,y-10-(avatarAppears*1.5));//
vertex(x+51,y-10-(avatarAppears*1.5));//
vertex(x+48,y+20-(avatarAppears*1.5));
vertex(x+94,y-25-(avatarAppears*1.5));//
vertex(x+94,y-20-(avatarAppears*1.5));
vertex(x+78,y+25-(avatarAppears*1.5));
vertex(x+108,y+5-(avatarAppears*1.5));//
vertex(x+114,y+5-(avatarAppears*1.5));//
vertex(x+94,y+58-(avatarAppears*1.5));
vertex(x+85,y+257-(avatarAppears*1.5));
endShape();
fill(163,209,116);
ellipse(x+55,y+60-(avatarAppears*1.5),60,60);
}
if(cosmoType===2){
yourMove[3]=11;
stroke(138, 2, 2);
fill(255, 104, 84);
arc(x+57,y+57-(avatarAppears*1.5),75,75, 0,200);
beginShape();
curveVertex(x+2,y+205-(avatarAppears*1.5));
curveVertex(x+21,y+46-(avatarAppears*1.5));
vertex(x+48,y-10-(avatarAppears*1.5));//
vertex(x+51,y-10-(avatarAppears*1.5));//
vertex(x+48,y+20-(avatarAppears*1.5));
vertex(x+94,y-25-(avatarAppears*1.5));//
vertex(x+94,y-20-(avatarAppears*1.5));
vertex(x+78,y+25-(avatarAppears*1.5));
vertex(x+108,y+5-(avatarAppears*1.5));//
vertex(x+114,y+5-(avatarAppears*1.5));//
vertex(x+94,y+58-(avatarAppears*1.5));
vertex(x+85,y+257-(avatarAppears*1.5));
endShape();
fill(219,61,61);
ellipse(x+55,y+60-(avatarAppears*1.5),60,60);
}
if(cosmoType===3){
yourMove[3]=12;
stroke(99,133,204);
fill(184, 171, 255);
arc(x+57,y+57-(avatarAppears*1.5),75,75, 0,200);
beginShape();
curveVertex(x+2,y+205-(avatarAppears*1.5));
curveVertex(x+21,y+46-(avatarAppears*1.5));
vertex(x+48,y-10-(avatarAppears*1.5));//
vertex(x+51,y-10-(avatarAppears*1.5));//
vertex(x+48,y+20-(avatarAppears*1.5));
vertex(x+94,y-25-(avatarAppears*1.5));//
vertex(x+94,y-20-(avatarAppears*1.5));
vertex(x+78,y+25-(avatarAppears*1.5));
vertex(x+108,y+5-(avatarAppears*1.5));//
vertex(x+114,y+5-(avatarAppears*1.5));//
vertex(x+94,y+58-(avatarAppears*1.5));
vertex(x+85,y+257-(avatarAppears*1.5));
endShape();
fill(138,212,241);
ellipse(x+55,y+60-(avatarAppears*1.5),60,60);
}
scale(-1,1);
stroke(0,0,0);
if(stage===40){
playSound(getSound("retro/whistle1"));
}
if(nickname===false){
yourName="Cosmo";
}
}
};
var yourAvatar = function(x,y){
if(foeKind===46 && yourTransform===true){
yourMove=[0,10,11,12];
yourType=3;
yourAttack=100;
yourDefense=100;
yourSpeed=100;
fill(0);
text("ERROR",50,260);
}
if(yourKind===46 || yourTransform===true){
if(yourTransform===false || stage<80 || yourHealth<1){
if(page<=1){
yourTransform=true;
}
else{
yourTransform=false;
}
y+=150;
x+=50;
fill(0);
rect(x+37,y+35-avatarAppears*1.5, -20,2);
rect(x+60,y+35-avatarAppears*1.5, 20,2);
rect(x+37,y+40-avatarAppears*1.5, -20,2);
rect(x+60,y+40-avatarAppears*1.5, 20,2);
fill(255, 100, 100);
beginShape();
vertex(x+21,y+12-avatarAppears*1.5);
vertex(x+21,y-10-avatarAppears*1.5);
vertex(x+30,y-10-avatarAppears*1.5);
vertex(x+30,y-0-avatarAppears*1.5);
vertex(x+40,y-0-avatarAppears*1.5);
vertex(x+40,y+11-avatarAppears*1.5);
vertex(x+50,y+11-avatarAppears*1.5);
vertex(x+50,y+0-avatarAppears*1.5);
vertex(x+60,y+0-avatarAppears*1.5);
vertex(x+60,y-10-avatarAppears*1.5);
vertex(x+70,y-10-avatarAppears*1.5);
vertex(x+70,y+10-avatarAppears*1.5);
endShape();
fill(175);
rect(x+20,y+10-avatarAppears*1.5, 50,50);
beginShape();
vertex(x+30,y+60-avatarAppears*1.5);
vertex(x+30,y+70-avatarAppears*1.5);
vertex(x+20,y+70-avatarAppears*1.5);
vertex(x+20,y+80-avatarAppears*1.5); //
vertex(x+10,y+80-avatarAppears*1.5);
vertex(x+10,y+90-avatarAppears*1.5);
vertex(x-10,y+90-avatarAppears*1.5);
vertex(x-10,y+70-avatarAppears*1.5);
vertex(x+0,y+70-avatarAppears*1.5);
vertex(x+0,y+60-avatarAppears*1.5);
vertex(x+10,y+60-avatarAppears*1.5); //
vertex(x+10,y+50-avatarAppears*1.5);
vertex(x+20,y+50-avatarAppears*1.5);
endShape();
if(stage===40){
playSound(getSound("retro/coin"));
}
yourType=foeType;
yourSpeed=30;
yourAttack=30;
yourDefense=30;
}
else{
yourKind=foeKind;
yourAvatarA(x,y);
eLevel=undefined;
}
if(yourHealth<1){
yourTransform=false;
}
yourName="C.A.T.";
}else{
yourAvatarA(x,y);
}
};
var battleFoeA = function(x,y){
if(foeKind===1){
image(getImage("avatars/leafers-seed"),x,y);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/hit-clop"));
}
foeName="Leafers Seed";
foeType=1;
foeSpeed=10;
foeAttack=15;
foeDefense=30;
foeMove=1;
}
if(foeKind===6){
image(getImage("avatars/piceratops-seed"),x,y);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/thruster-short"));
}
foeName="πceratops Seed";
foeType=2;
foeSpeed=20;
foeAttack=30;
foeDefense=10;
foeMove=2;
}
if(foeKind===11){
image(getImage("avatars/aqualine-seed"),x,y);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/water-bubble"));
}
foeName="Aqualine Seed";
foeType=3;
foeSpeed=30;
foeAttack=20;
foeDefense=20;
foeMove=3;
}
if(foeKind===16){
image(getImage("avatars/duskpin-seed"),x,y);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/whistle2"));
}
foeName="Duskpin Seed";
foeType=3;
foeSpeed=25;
foeAttack=15;
foeDefense=20;
foeMove=3;
}
if(foeKind===21){
image(getImage("avatars/primosaur-seed"),x,y);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/hit-splat"));
}
foeName="Primosaur Seed";
foeType=2;
foeSpeed=20;
foeAttack=25;
foeDefense=15;
foeMove=2;
}
if(foeKind===26){
image(getImage("avatars/starky-seed"),x,y);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/metal-chime"));
}
foeName="Starky Seed";
foeType=1;
foeSpeed=15;
foeAttack=20;
foeDefense=25;
foeMove=1;
}
if(foeKind===31){
scale(-1, 1);
image(getImage("creatures/OhNoes"),-105-x,y+20, 100,80);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/giant-no"));
}
foeName="Oh-Noes";
scale(-1, 1);
foeType=1;
foeSpeed=15;
foeAttack=15;
foeDefense=15;
if(foeMoveSelect<=1){
foeMove=1;
}else{
foeMove=4;
}
}
if(foeKind===35){
scale(-1, 1);
image(getImage("avatars/orange-juice-squid"),-125-x,y-25);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/boom1"));
}
foeName="OJ Squid";
scale(-1, 1);
foeType=2;
foeSpeed=15;
foeAttack=25;
foeDefense=20;
if(foeMoveSelect<=1){
foeMove=2;
}
if(foeMoveSelect>1 && foeMoveSelect<=3){
foeMove=5;
}
if(foeMoveSelect>3){
foeMove=8;
}
}
if(foeKind===40){
image(getImage("avatars/marcimus"),x+10,y+20,100,100);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/jump2"));
}
foeName="Marcimus";
foeType=3;
foeSpeed=30;
foeAttack=15;
foeDefense=20;
if(foeMoveSelect<=1){
foeMove=3;
}else{
foeMove=6;
}
}
if(foeKind===37){
image(getImage("creatures/Hopper-Happy"),x+20,y+20,80,80);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/laser4"));
}
foeName="Hopper";
foeType=3;
foeSpeed=25;
foeAttack=20;
foeDefense=20;
if(foeMoveSelect<1){
foeMove=3;
}else{
foeMove=6;
}
}
if(foeKind===42){
image(getImage("avatars/old-spice-man-blue"),x+20,y+20,80,80);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/step-heavy"));
}
foeName="Old-Spice Man";
foeType=1;
foeSpeed=10;
foeAttack=10;
foeDefense=35;
if(foeMoveSelect<=1){
foeMove=1;
}else{
foeMove=4;
}
}
if(foeKind===2){
image(getImage("avatars/leafers-seedling"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/hit-clop"));
}
foeName="Leafers Sprout";
foeType=1;
foeSpeed=15;
foeAttack=20;
foeDefense=35;
foeMove=1;
}
if(foeKind===3){
image(getImage("avatars/leafers-seedling"),x,y-0, 120,100);
image(getImage("avatars/leafers-sapling"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/hit-clop"));
}
foeName="Leafers Sapling";
foeType=1;
foeSpeed=20;
foeAttack=25;
foeDefense=40;
if(foeMoveSelect<=1){
foeMove=1;
}else{
foeMove=4;
}
}
if(foeKind===4){
image(getImage("avatars/leafers-tree"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/hit-clop"));
}
foeName="Leafers";
foeType=1;
foeSpeed=25;
foeAttack=30;
foeDefense=45;
if(foeMoveSelect<=1){
foeMove=1;
}
if(foeMoveSelect>1 && foeMoveSelect<=3){
foeMove=4;
}
if(foeMoveSelect>3){
foeMove=7;
}
}
if(foeKind===5){
image(getImage("avatars/leafers-ultimate"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/hit-clop"));
}
foeName="Leafers-Ultimate";
foeType=1;
foeSpeed=30;
foeAttack=35;
foeDefense=50;
if(foeMoveSelect<=0.5){
foeMove=1;
}
if(foeMoveSelect>0.5 && foeMoveSelect<1.5){
foeMove=4;
}
if(foeMoveSelect>=1.5 && foeMoveSelect<3.5){
foeMove=7;
}
if(foeMoveSelect>=3.5){
foeMove=10;
}
if(yourType===2){
if(foeMoveSelect>2){
foeMove=10;
}else{
foeMove=7;
}
if(foeAccuracy>=70 && foeAccuracy<90){
foeMove=4;
}
}
if(foeAccuracy<35){
foeMove=10;
}
}
if(foeKind===7){
image(getImage("avatars/piceratops-seedling"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/thruster-short"));
}
foeName="πceratops Sprout";
foeType=2;
foeSpeed=25;
foeAttack=35;
foeDefense=15;
foeMove=2;
}
if(foeKind===8){
image(getImage("avatars/piceratops-sapling"),x+12,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/thruster-short"));
}
foeName="πceratops Sapling";
foeType=2;
foeSpeed=30;
foeAttack=40;
foeDefense=20;
if(foeMoveSelect<=1){
foeMove=2;
}else{
foeMove=5;
}
}
if(foeKind===9){
image(getImage("avatars/piceratops-tree"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/thruster-short"));
}
foeName="πceratops";
foeType=2;
foeSpeed=35;
foeAttack=45;
foeDefense=25;
if(foeMoveSelect<=1){
foeMove=2;
}
if(foeMoveSelect>1 && foeMoveSelect<=3){
foeMove=5;
}
if(foeMoveSelect>3){
foeMove=8;
}
}
if(foeKind===10){
image(getImage("avatars/piceratops-ultimate"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/thruster-short"));
}
foeName="πceratops-Ultimate";
foeType=2;
foeSpeed=40;
foeAttack=50;
foeDefense=30;
if(foeMoveSelect<=0.5){
foeMove=2;
}
if(foeMoveSelect>0.5 && foeMoveSelect<1.5){
foeMove=5;
}
if(foeMoveSelect>=1.5 && foeMoveSelect<3.5){
foeMove=8;
}
if(foeMoveSelect>=3.5){
foeMove=11;
}
if(yourType===3){
if(foeMoveSelect>2){
foeMove=11;
}else{
foeMove=8;
}
if(foeAccuracy>=70 && foeAccuracy<90){
foeMove=5;
}
}
if(foeAccuracy<35){
foeMove=11;
}
}
if(foeKind===12){
image(getImage("avatars/aqualine-seedling"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/water-bubble"));
}
foeName="Aqualine Sprout";
foeType=3;
foeSpeed=35;
foeAttack=25;
foeDefense=25;
foeMove=3;
}
if(foeKind===13){
image(getImage("avatars/aqualine-sapling"),x+5,y-15,120,120);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/water-bubble"));
}
foeName="Aqualine Sapling";
foeType=3;
foeSpeed=40;
foeAttack=30;
foeDefense=30;
if(foeMoveSelect<=1){
foeMove=3;
}else{
foeMove=6;
}
}
if(foeKind===14){
image(getImage("avatars/aqualine-tree"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/water-bubble"));
}
foeName="Aqualine";
foeType=3;
foeSpeed=45;
foeAttack=35;
foeDefense=35;
if(foeMoveSelect<=1){
foeMove=3;
}
if(foeMoveSelect>1 && foeMoveSelect<=3){
foeMove=6;
}
if(foeMoveSelect>3){
foeMove=9;
}
}
if(foeKind===15){
image(getImage("avatars/aqualine-ultimate"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/water-bubble"));
}
foeName="Aqualine-Ultimate";
foeType=3;
foeSpeed=50;
foeAttack=40;
foeDefense=40;
if(foeMoveSelect<=0.5){
foeMove=3;
}
if(foeMoveSelect>0.5 && foeMoveSelect<1.5){
foeMove=6;
}
if(foeMoveSelect>=1.5 && foeMoveSelect<3.5){
foeMove=9;
}
if(foeMoveSelect>=3.5){
foeMove=12;
}
if(yourType===1){
if(foeMoveSelect>2){
foeMove=12;
}else{
foeMove=9;
}
if(foeAccuracy>=70 && foeAccuracy<90){
foeMove=6;
}
}
if(foeAccuracy<35){
foeMove=12;
}
}
if(foeKind===17){
image(getImage("avatars/duskpin-seedling"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/whistle2"));
}
foeName="Duskpin Sprout";
foeType=3;
foeSpeed=30;
foeAttack=20;
foeDefense=25;
foeMove=3;
}
if(foeKind===18){
image(getImage("avatars/duskpin-sapling"),x+5,y-15,120,120);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/whistle2"));
}
foeName="Duskpin Sapling";
foeType=3;
foeSpeed=35;
foeAttack=25;
foeDefense=30;
if(foeMoveSelect<=1){
foeMove=3;
}else{
foeMove=6;
}
}
if(foeKind===19){
image(getImage("avatars/duskpin-tree"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/whistle2"));
}
foeName="Duskpin";
foeType=3;
foeSpeed=40;
foeAttack=30;
foeDefense=35;
if(foeMoveSelect<=1){
foeMove=3;
}
if(foeMoveSelect>1 && foeMoveSelect<=3){
foeMove=6;
}
if(foeMoveSelect>3){
foeMove=9;
}
}
if(foeKind===20){
image(getImage("avatars/duskpin-ultimate"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/whistle2"));
}
foeName="Duskpin-Ultimate";
foeType=3;
foeSpeed=45;
foeAttack=35;
foeDefense=40;
if(foeMoveSelect<=0.5){
foeMove=3;
}
if(foeMoveSelect>0.5 && foeMoveSelect<1.5){
foeMove=6;
}
if(foeMoveSelect>=1.5 && foeMoveSelect<3.5){
foeMove=9;
}
if(foeMoveSelect>=3.5){
if(yourType!==foeType){
foeMove=11;
}else{
foeMoveSelect=random(0,3.49);
}
}
if(yourType===1){
if(foeMoveSelect>1){
foeMove=11;
}else{
foeMove=9;
}
if(foeAccuracy>=70 && foeAccuracy<90){
foeMove=6;
}
if(foeAccuracy<40){
foeMove=11;
}
}
}
if(foeKind===22){
image(getImage("avatars/primosaur-seedling"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/hit-splat"));
}
foeName="Primosaur Sprout";
foeType=2;
foeSpeed=25;
foeAttack=30;
foeDefense=20;
foeMove=2;
}
if(foeKind===23){
image(getImage("avatars/primosaur-sapling"),x+20,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/hit-splat"));
}
foeName="Primosaur Sapling";
foeType=2;
foeSpeed=30;
foeAttack=35;
foeDefense=25;
if(foeMoveSelect<=1){
foeMove=2;
}else{
foeMove=5;
}
}
if(foeKind===24){
image(getImage("avatars/primosaur-tree"),x+10,y-15);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/hit-splat"));
}
foeName="Primosaur";
foeType=2;
foeSpeed=35;
foeAttack=40;
foeDefense=30;
if(foeMoveSelect<=1){
foeMove=2;
}
if(foeMoveSelect>1 && foeMoveSelect<=3){
foeMove=5;
}
if(foeMoveSelect>3){
foeMove=8;
}
}
if(foeKind===25){
image(getImage("avatars/primosaur-ultimate"),x,y-10);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/hit-splat"));
}
foeName="Primosaur-Ultimate";
foeType=2;
foeSpeed=40;
foeAttack=45;
foeDefense=35;
if(foeMoveSelect<=0.5){
foeMove=2;
}
if(foeMoveSelect>0.5 && foeMoveSelect<1.5){
foeMove=5;
}
if(foeMoveSelect>=1.5 && foeMoveSelect<3.5){
foeMove=8;
}
if(foeMoveSelect>=3.5){
if(yourType!==foeType){
foeMove=10;
}else{
foeMoveSelect=random(0,3.49);
}
}
if(yourType===3){
if(foeMoveSelect>1){
foeMove=10;
}else{
foeMove=8;
}
if(foeAccuracy>=70 && foeAccuracy<90){
foeMove=5;
}
if(foeAccuracy<40){
foeMove=10;
}
}
}
if(foeKind===27){
image(getImage("avatars/starky-seedling"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/metal-chime"));
}
foeName="Starky Sprout";
foeType=1;
foeSpeed=20;
foeAttack=25;
foeDefense=30;
foeMove=1;
}
if(foeKind===28){
image(getImage("avatars/starky-sapling"),x+10,y+10,100,100);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/metal-chime"));
}
foeName="Starky Sapling";
foeType=1;
foeSpeed=25;
foeAttack=30;
foeDefense=35;
if(foeMoveSelect<=1){
foeMove=1;
}else{
foeMove=4;
}
}
if(foeKind===29){
image(getImage("avatars/starky-tree"),x,y-20);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/metal-chime"));
}
foeName="Starky";
foeType=1;
foeSpeed=30;
foeAttack=35;
foeDefense=40;
if(foeMoveSelect<=1){
foeMove=1;
}
if(foeMoveSelect>1 && foeMoveSelect<=3){
foeMove=4;
}
if(foeMoveSelect>3){
foeMove=7;
}
}
if(foeKind===30){
image(getImage("avatars/starky-ultimate"),x-5,y-25);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/metal-chime"));
}
foeName="Starky-Ultimate";
foeType=1;
foeSpeed=35;
foeAttack=40;
foeDefense=45;
if(foeMoveSelect<=0.5){
foeMove=1;
}
if(foeMoveSelect>0.5 && foeMoveSelect<1.5){
foeMove=4;
}
if(foeMoveSelect>=1.5 && foeMoveSelect<3.5){
foeMove=7;
}
if(foeMoveSelect>=3.5){
if(yourType!==foeType){
foeMove=12;
}else{
foeMoveSelect=random(0,3.49);
}
}
if(yourType===2){
if(foeMoveSelect>1){
foeMove=12;
}else{
foeMove=7;
}
if(foeAccuracy>=70 && foeAccuracy<90){
foeMove=4;
}
if(foeAccuracy<40){
foeMove=12;
}
}
}
if(foeKind===32){
scale(-1, 1);
image(getImage("creatures/BabyWinston"),-125-x,y+5,100,100);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/jump1"));
}
foeName="Baby Winston";
scale(-1, 1);
foeType=2;
foeSpeed=25;
foeAttack=25;
foeDefense=25;
if(yourType===3){
foeMove=4;
}else{
foeMove=2;
}
}
if(foeKind===33){
scale(-1, 1);
image(getImage("creatures/Winston"),-115-x,y+5,100,100);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/jump1"));
}
foeName="Winston";
scale(-1, 1);
foeType=2;
foeSpeed=35;
foeAttack=35;
foeDefense=35;
if(yourType===3){
foeMove=4;
}else{
if(foeMoveSelect>1.5){
foeMove=5;
}else{
foeMove=2;
}
}
}
if(foeKind===34){
fill(0, 0, 0);
triangle(x+115,y-4, x+41,y+55, x+160,y+16);
fill(92, 92, 92);
beginShape();
vertex(x+51,y+9);
vertex(x+38,y+-4);
vertex(x+28,y+19);
endShape();
ellipse(x+64,y+54, 100,100);
beginShape();
vertex(x+75,y+9);
vertex(x+95,y-2);
vertex(x+98,y+21);
endShape();
fill(255,255,255);
stroke(0, 0, 0);
triangle(x+31,y+20, x+19,y+36, x+36,y+40);
triangle(x+82,y+24, x+89,y+40, x+63,y+42);
fill(255, 255, 0);
ellipse(x+46,y+64, 39,45);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/giant-yah"));
}
foeName="Bat-Winston";
foeType=3;
foeSpeed=45;
foeAttack=45;
foeDefense=45;
if(yourType===1){
foeMove=5;
}
if(yourType===3){
foeMove=4;
}
if(yourType===2){
if(foeMoveSelect>2){
foeMove=9;
}else{
foeMove=3;
}
}
}
if(foeKind===36){
image(getImage("avatars/purple-pi"),x-5,y-25);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/battle-spell"));
}
foeName="Purple-π";
foeType=3;
foeSpeed=35;
foeAttack=40;
foeDefense=40;
if(yourType===1){
if(foeMoveSelect<1){
foeMove=5;
}else{
foeMove=8;
}
if(foeAccuracy<90 && foeAccuracy>70){
foeMove=5;
}
}else{
foeMove=9;
if(foeAccuracy>85){
foeMove=3;
}
}
}
if(foeKind===38){
image(getImage("creatures/Hopper-Jumping"),x+20,y+20,80,80);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/laser4"));
}
foeName="Hopper-2";
foeType=1;
foeSpeed=30;
foeAttack=25;
foeDefense=30;
if(yourType===2){
foeMove=6;
}else{
if(foeMoveSelect<1){
foeMove=1;
}else{
foeMove=4;
}
}
}
if(foeKind===39){
image(getImage("creatures/Hopper-Cool"),x+16,y+20,87,80);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/laser1"));
}
foeName="Cool-Hopper";
foeType=2;
if(stage===80){
foeSpeed=random(0,80);
foeAttack=random(0,80);
}
if(stage>80){
foeDefense=random(0,70);
}
if(yourType===1){
if(foeMoveSelect<1){
foeMove=2;
}else{
foeMove=5;
}
}
if(yourType===2){
foeMove=6;
}
if(yourType===3){
foeMove=4;
}
}
if(foeKind===41){
scale(-1, 1);
image(getImage("avatars/mr-pants"),-109-x,y+3,100,100);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("rpg/battle-magic"));
}
foeName="Pants";
scale(-1, 1);
foeType=1;
foeSpeed=40;
foeAttack=35;
foeDefense=40;
if(yourType===2){
foeMove=6;
}else{
if(foeMoveSelect<=1){
foeMove=1;
}
if(foeMoveSelect>1 && foeMoveSelect<=3){
foeMove=4;
}
if(foeMoveSelect>3){
foeMove=7;
}
if(foeAccuracy<50){
foeMove=7;
}
}
}
if(foeKind===43){
image(getImage("avatars/mr-pink"),x+16,y+20,87,80);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/rumble"));
}
foeName="Mr. Pink";
foeType=2;
foeSpeed=35;
foeAttack=40;
foeDefense=40;
if(yourType===3){
foeMove=4;
}else{
if(foeMoveSelect<=1){
foeMove=2;
}
if(foeMoveSelect>1 && foeMoveSelect<=3){
foeMove=5;
}
if(foeMoveSelect>3){
foeMove=8;
}
if(foeAccuracy<50){
foeMove=8;
}
}
}
if(foeKind===44){
foeType=3;
foeSpeed=40;
foeAttack=40;
foeDefense=40;
if(yourType===1){
foeType=1;
image(getImage("avatars/spunky-sam-green"),x+16,y+20,87,80);
foeMove=5;
}
else if(yourType===2){
foeType=2;
image(getImage("avatars/spunky-sam-red"),x+16,y+20,87,80);
foeMove=6;
}
else{
foeType=3;
image(getImage("avatars/spunky-sam"),x+16,y+20,87,80);
foeMove=4;
}
if(stage===2 || stage===6 || page===1 && stage===10 || page===1 && stage===14 || page===1 && stage===525 || page===1 && stage===529){
playSound(getSound("rpg/battle-swing"));
}
foeName="Spunky Sam";
}
if(foeKind===45){
if(cosmoType===1){
stroke(95, 148, 95);
fill(204, 242, 164);
arc(x+57,y+57,75,75, 0,200);
beginShape();
curveVertex(x+2,y+205);
curveVertex(x+21,y+46);
vertex(x+48,y-10);//
vertex(x+51,y-10);//
vertex(x+48,y+20);
vertex(x+94,y-25);//
vertex(x+94,y-20);
vertex(x+78,y+25);
vertex(x+108,y+5);//
vertex(x+114,y+5);//
vertex(x+94,y+58);
vertex(x+85,y+257);
endShape();
fill(163,209,116);
ellipse(x+55,y+60,60,60);
image(getImage("avatars/leafers-seed"),x+4,y+16,103,92);
arc(x+55,y+60,60,60, -211,27);
}
if(cosmoType===2){
stroke(138, 2, 2);
fill(255, 104, 84);
arc(x+57,y+57,75,75, 0,200);
beginShape();
curveVertex(x+2,y+205);
curveVertex(x+21,y+46);
vertex(x+48,y-10);//
vertex(x+51,y-10);//
vertex(x+48,y+20);
vertex(x+94,y-25);//
vertex(x+94,y-20);
vertex(x+78,y+25);
vertex(x+108,y+5);//
vertex(x+114,y+5);//
vertex(x+94,y+58);
vertex(x+85,y+257);
endShape();
fill(219,61,61);
ellipse(x+55,y+60,60,60);
image(getImage("avatars/piceratops-seed"),x+4,y+16,103,92);
arc(x+55,y+60,60,60, -211,27);
}
if(cosmoType===3){
stroke(99,133,204);
fill(184, 171, 255);
arc(x+57,y+57,75,75, 0,200);
beginShape();
curveVertex(x+2,y+205);
curveVertex(x+21,y+46);
vertex(x+48,y-10);//
vertex(x+51,y-10);//
vertex(x+48,y+20);
vertex(x+94,y-25);//
vertex(x+94,y-20);
vertex(x+78,y+25);
vertex(x+108,y+5);//
vertex(x+114,y+5);//
vertex(x+94,y+58);
vertex(x+85,y+257);
endShape();
fill(138,212,241);
ellipse(x+55,y+60,60,60);
image(getImage("avatars/aqualine-seed"),x+4,y+16,103,92);
arc(x+55,y+60,60,60, -211,27);
}
stroke(0,0,0);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/whistle1"));
}
foeName="Cosmo";
foeType=cosmoType;
foeSpeed=50;
foeAttack=50;
foeDefense=50;
if(yourType===1){
foeMove=8;
if(cosmoType===2 && foeMoveSelect<1 || cosmoType===2 && foeAccuracy<25){
foeMove=11;
}
} else if(yourType===2){
foeMove=9;
if(cosmoType===3 && foeMoveSelect<1 || cosmoType===3 && foeAccuracy<25){
foeMove=12;
}
} else{
foeMove=7;
if(cosmoType===1 && foeMoveSelect<1 || cosmoType===1 && foeAccuracy<25){
foeMove=10;
}
}
}
};
var battleFoe = function(x,y){
if(foeKind===46 || foeTransform===true){
if(foeTransform===false || stage<80 || foeHealth<1 || stage>350 && stage<=540){
if(page<=1){
foeTransform=true;
}
else{
foeTransform=false;
}
fill(255, 100, 100);
beginShape();
vertex(x+21,y+12);
vertex(x+21,y-10);
vertex(x+30,y-10);
vertex(x+30,y-0);
vertex(x+40,y-0);
vertex(x+40,y+11);
vertex(x+50,y+11);
vertex(x+50,y+0);
vertex(x+60,y+0);
vertex(x+60,y-10);
vertex(x+70,y-10);
vertex(x+70,y+10);
endShape();
fill(175);
rect(x+20,y+10, 50,50);
beginShape();
vertex(x+60,y+60);
vertex(x+60,y+70);
vertex(x+70,y+70);
vertex(x+70,y+80); //
vertex(x+80,y+80);
vertex(x+80,y+90);
vertex(x+100,y+90);
vertex(x+100,y+70);
vertex(x+90,y+70);
vertex(x+90,y+60);
vertex(x+80,y+60); //
vertex(x+80,y+50);
vertex(x+70,y+50);
endShape();
fill(0);
rect(x+30,y+20, 5,10);
rect(x+45,y+20, 5,10);
rect(x+30,y+35, -20,2);
rect(x+53,y+35, 20,2);
rect(x+30,y+40, -20,2);
rect(x+53,y+40, 20,2);
fill(255, 100, 100);
rect(x+38,y+35, 5,10);
if(stage===2 || page===1 && stage===10 || page===1 && stage===525){
playSound(getSound("retro/coin"));
}
foeType=yourType;
foeSpeed=30;
foeAttack=30;
foeDefense=30;
foeMove=6;
}
else{
foeKind=yourKind;
battleFoeA(x,y);
}
if(foeHealth<1){
foeTransform=false;
}
foeName="C.A.T.";
}else{
battleFoeA(x,y);
}
if(yourKind===46 && foeTransform===true){
if(yourType===3){
foeMove=10;
}
if(yourType===1){
foeMove=11;
}
if(yourType===2){
foeMove=12;
}
foeType=3;
foeAttack=100;
foeDefense=100;
foeSpeed=100;
fill(255, 100, 100);
beginShape();
vertex(x+21,y+12);
vertex(x+21,y-10);
vertex(x+30,y-10);
vertex(x+30,y-0);
vertex(x+40,y-0);
vertex(x+40,y+11);
vertex(x+50,y+11);
vertex(x+50,y+0);
vertex(x+60,y+0);
vertex(x+60,y-10);
vertex(x+70,y-10);
vertex(x+70,y+10);
endShape();
fill(175);
rect(x+20,y+10, 50,50);
beginShape();
vertex(x+60,y+60);
vertex(x+60,y+70);
vertex(x+70,y+70);
vertex(x+70,y+80); //
vertex(x+80,y+80);
vertex(x+80,y+90);
vertex(x+100,y+90);
vertex(x+100,y+70);
vertex(x+90,y+70);
vertex(x+90,y+60);
vertex(x+80,y+60); //
vertex(x+80,y+50);
vertex(x+70,y+50);
endShape();
fill(0);
rect(x+30,y+20, 5,10);
rect(x+45,y+20, 5,10);
rect(x+30,y+35, -20,2);
rect(x+53,y+35, 20,2);
rect(x+30,y+40, -20,2);
rect(x+53,y+40, 20,2);
fill(255, 100, 100);
rect(x+38,y+35, 5,10);
}
};
// Your Avatar Variables Out of Battle//////////////////////////////
var sleepingKind=[];
var sleepingExp=[];
for(var j=0; j<101; j++){
sleepingKind[j]=0;
sleepingExp[j]=0;
}
var countAvatars=0;
var champ=0;
var boxSelect=200;
var boxKind=0;
var boxLevel=0;
var boxExp=0;
var boxName="";
var sleepingLevel=[];
var scroll=0; // Scrolls on the Avatar's Page
var infoPage=0; // Pages on the Information
var infoLevel=0;
var infoAttack=0;
var infoDefense=0;
var infoSpeed=0;
var infoType="";
var infoMove=[0,0,0,0];
var moveWhat="";
var thisMove = function(h,v, num, q){
if(q===1){
text("GREEN LEAF", h,v,200,50);
if(select2===num){
moveWhat="DESCRIPTION:\nThe user sends out a small pulse of green energy in the shape of a leaf. This move will never miss.\nType: GREEN\nPower: 50\nAccuracy: 100%";
}
}
if(q===2){
text("RED LEAF", h,v,200,50);
if(select2===num){
moveWhat="DESCRIPTION:\nThe user sends out a small pulse of red energy in the shape of a leaf. This move will never miss.\nType: RED\nPower: 50\nAccuracy: 100%";
}
}
if(q===3){
text("BLUE LEAF", h,v,200,50);
if(select2===num){
moveWhat="DESCRIPTION:\nThe user sends out a small pulse of blue energy in the shape of a leaf. This move will never miss.\nType: BLUE\nPower: 50\nAccuracy: 100%";
}
}
if(q===4){
text("ZEN LIGHT", h,v,200,50);
if(select2===num){
moveWhat="DESCRIPTION:\nThe user calms their mind and releases a light of pure positive thought.\nType: GREEN\nPower: 60\nAccuracy: 90%";
}
}
if(q===5){
text("IGNITION", h,v,200,50);
if(select2===num){
moveWhat="DESCRIPTION:\nThe user heats up the air around the foe, which causes a small fire to start.\nType: RED\nPower: 60\nAccuracy: 90%";
}
}
if(q===6){
text("COLD SPARK", h,v,200,50);
if(select2===num){
moveWhat="DESCRIPTION:\nWe're not sure... We think the user sends a jolt of anti-energy, which causes the target to become cold.\nType: BLUE\nPower: 60\nAccuracy: 90%";
}
}
if(q===7){
text("OAK FORREST", h,v,200,50);
if(select2===num){
moveWhat="DESCRIPTION:\nThe user sends natural energy into the ground and rapidly grows large trees below to strike the opponent.\nType: GREEN\nPower: 75\nAccuracy: 70%";
}
}
if(q===8){
text("DRAGON FIRE", h,v,200,50);
if(select2===num){
moveWhat="DESCRIPTION:\nThe user heats up the combustable gases inside their body and expell it at the foe.\nType: RED\nPower: 75\nAccuracy: 70%";
}
}
if(q===9){
text("STARLIGHT", h,v,200,50);
if(select2===num){
moveWhat="DESCRIPTION:\nThe user creates a bright light and launches it at the foe. Legends say this attack can also grant wishes.\nType: BLUE\nPower: 75\nAccuracy: 70%";
}
}
if(q===10){
text("EARTHQUAKE", h,v,200,50);
if(select2===num){
moveWhat="DESCRIPTION:\nThe user unleashes all their power into the ground and causes tremors.\nType: GREEN\nPower: 100\nAccuracy: 40%";
}
}
if(q===11){
text("DOOMSDAY", h,v,200,50);
if(select2===num){
moveWhat="DESCRIPTION:\nThe user summons all their power and unleashes an apocolyptic attack at the opponent.\nType: RED\nPower: 100\nAccuracy: 40%";
}
}
if(q===12){
text("VORTEX", h,v,200,50);
if(select2===num){
moveWhat="DESCRIPTION:\nThe user unleashes all their power and cause the air around the foe to swirl at hurricane speeds.\nType: BLUE\nPower: 100\nAccuracy: 40%";
}
}
};
//Nickname Variables
var textStr=[];
var name=[];
for(var k=0; k<101; k++){
name[k]="";
}
var keyTyped = function() {
if(infoPage===2 && page===2.5 && stopper<=0){
stopper=4;
if(keyCode===220){
println(textStr);
}
textStr += key.toString();
if(key.code===BACKSPACE||key.code ===DELETE){
textStr=textStr.substring(0,textStr.length-2);
}
if(key.code===ENTER){
textStr=textStr.substring(0,textStr.length-1);
}
if(textStr.length>12){
textStr=textStr.substring(0,textStr.length-1);
}
}
};
var sleepingAvatar=function(x,y, id){
if(sleepingLevel[id]===undefined || sleepingLevel[id]===0){
sleepingLevel[id]=0;
sleepingKind[id]=0;
}
if(sleepingKind[id]===0 && sleepingKind[id+1]!==0){
sleepingKind[id]=sleepingKind[id+1];
sleepingLevel[id]=sleepingLevel[id+1];
sleepingKind[id+1]=0;
name[id]=name[id+1];
name[id+1]="";
sleepingExp[id]=sleepingExp[id+1];
sleepingExp[id+1]=0;
stopper=10;
}
if(select===id){
fill(255, 0, 0);
rect(x-10,y-10,60,76,6);
if(stopper<=0 && keys[87] && boxSelect===200){
boxSelect=id;
boxKind=sleepingKind[id];
boxLevel=sleepingLevel[id];
boxName=name[id];
boxExp=sleepingExp[id];
stopper=10;
}
if(stopper<=0 && keys[87] && boxSelect!==200){
//Switch Kinds
sleepingKind[boxSelect]=sleepingKind[id];
sleepingKind[id]=boxKind;
//Switch Levels
sleepingLevel[boxSelect]=sleepingLevel[id];
sleepingLevel[id]=boxLevel;
//Switch Experience
sleepingExp[boxSelect]=sleepingExp[id];
sleepingExp[id]=boxExp;
//Switch Name
name[boxSelect]=name[id];
name[id]=boxName;
stopper=10;
boxSelect=200;
}
}
if(boxSelect===id){
fill(255, 255, 0);
rect(x-10,y-10,60,76,6);
}
fill(255, 255, 255);
rect(x,y+10, 40,46,6);
fill(186, 250, 255);
rect(x,y, 40,40, 6);
if(sleepingKind[id]!==0){
fill(0, 0, 0);
textSize(12);
text("Lv."+sleepingLevel[id], x+1,y+43,100,100);
}
// Going to Info Page
if(stopper<=0 && select===id && keys[32] && sleepingKind[id]!==0){
page=2.5;
stage=0;
textStr=name[select];
}
// Avatar Image & Kind
if(select===id){
foeKind=sleepingKind[id];
infoLevel=sleepingLevel[id];
}
if(sleepingKind[id]===1){
image(getImage("avatars/leafers-seed"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*10;
infoAttack=sleepingLevel[id]*15;
infoDefense=sleepingLevel[id]*30;
infoType="Green";
infoMove=[1,1,1,1];
}
}
if(sleepingKind[id]===2){
image(getImage("avatars/leafers-seedling"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*15;
infoAttack=sleepingLevel[id]*20;
infoDefense=sleepingLevel[id]*35;
infoType="Green";
infoMove=[1,1,1,1];
}
}
if(sleepingKind[id]===3){
image(getImage("avatars/leafers-sapling"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*20;
infoAttack=sleepingLevel[id]*25;
infoDefense=sleepingLevel[id]*40;
infoType="Green";
infoMove=[1,4,1,1];
}
}
if(sleepingKind[id]===4){
image(getImage("avatars/leafers-tree"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*25;
infoAttack=sleepingLevel[id]*30;
infoDefense=sleepingLevel[id]*45;
infoType="Green";
infoMove=[1,4,7,1];
}
}
if(sleepingKind[id]===5){
image(getImage("avatars/leafers-ultimate"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*30;
infoAttack=sleepingLevel[id]*35;
infoDefense=sleepingLevel[id]*50;
infoType="Green";
infoMove=[1,4,7,10];
}
}
if(sleepingKind[id]===6){
image(getImage("avatars/piceratops-seed"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*20;
infoAttack=sleepingLevel[id]*30;
infoDefense=sleepingLevel[id]*10;
infoType="Red";
infoMove=[2,2,2,2];
}
}
if(sleepingKind[id]===7){
image(getImage("avatars/piceratops-seedling"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*25;
infoAttack=sleepingLevel[id]*35;
infoDefense=sleepingLevel[id]*15;
infoType="Red";
infoMove=[2,2,2,2];
}
}
if(sleepingKind[id]===8){
image(getImage("avatars/piceratops-sapling"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*30;
infoAttack=sleepingLevel[id]*40;
infoDefense=sleepingLevel[id]*20;
infoType="Red";
infoMove=[2,5,2,2];
}
}
if(sleepingKind[id]===9){
image(getImage("avatars/piceratops-tree"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*35;
infoAttack=sleepingLevel[id]*45;
infoDefense=sleepingLevel[id]*25;
infoType="Red";
infoMove=[2,5,8,2];
}
}
if(sleepingKind[id]===10){
image(getImage("avatars/piceratops-ultimate"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*40;
infoAttack=sleepingLevel[id]*50;
infoDefense=sleepingLevel[id]*30;
infoType="Red";
infoMove=[2,5,8,11];
}
}
if(sleepingKind[id]===11){
image(getImage("avatars/aqualine-seed"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*30;
infoAttack=sleepingLevel[id]*20;
infoDefense=sleepingLevel[id]*20;
infoType="Blue";
infoMove=[3,3,3,3];
}
}
if(sleepingKind[id]===12){
image(getImage("avatars/aqualine-seedling"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*35;
infoAttack=sleepingLevel[id]*25;
infoDefense=sleepingLevel[id]*25;
infoType="Blue";
infoMove=[3,3,3,3];
}
}
if(sleepingKind[id]===13){
image(getImage("avatars/aqualine-sapling"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*40;
infoAttack=sleepingLevel[id]*30;
infoDefense=sleepingLevel[id]*30;
infoType="Blue";
infoMove=[3,6,3,3];
}
}
if(sleepingKind[id]===14){
image(getImage("avatars/aqualine-tree"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*45;
infoAttack=sleepingLevel[id]*35;
infoDefense=sleepingLevel[id]*35;
infoType="Blue";
infoMove=[3,6,9,3];
}
}
if(sleepingKind[id]===15){
image(getImage("avatars/aqualine-ultimate"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*50;
infoAttack=sleepingLevel[id]*40;
infoDefense=sleepingLevel[id]*40;
infoType="Blue";
infoMove=[3,6,9,12];
}
}
if(sleepingKind[id]===16){
image(getImage("avatars/duskpin-seed"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*25;
infoAttack=sleepingLevel[id]*15;
infoDefense=sleepingLevel[id]*20;
infoType="Blue";
infoMove=[3,3,3,3];
}
}
if(sleepingKind[id]===17){
image(getImage("avatars/duskpin-seedling"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*30;
infoAttack=sleepingLevel[id]*20;
infoDefense=sleepingLevel[id]*25;
infoType="Blue";
infoMove=[3,3,3,3];
}
}
if(sleepingKind[id]===18){
image(getImage("avatars/duskpin-sapling"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*35;
infoAttack=sleepingLevel[id]*25;
infoDefense=sleepingLevel[id]*30;
infoType="Blue";
infoMove=[3,6,3,3];
}
}
if(sleepingKind[id]===19){
image(getImage("avatars/duskpin-tree"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*40;
infoAttack=sleepingLevel[id]*30;
infoDefense=sleepingLevel[id]*35;
infoType="Blue";
infoMove=[3,6,9,3];
}
}
if(sleepingKind[id]===20){
image(getImage("avatars/duskpin-ultimate"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*45;
infoAttack=sleepingLevel[id]*35;
infoDefense=sleepingLevel[id]*40;
infoType="Blue";
infoMove=[3,6,9,11];
}
}
if(sleepingKind[id]===21){
image(getImage("avatars/primosaur-seed"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*20;
infoAttack=sleepingLevel[id]*25;
infoDefense=sleepingLevel[id]*15;
infoType="Red";
infoMove=[2,2,2,2];
}
}
if(sleepingKind[id]===22){
image(getImage("avatars/primosaur-seedling"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*25;
infoAttack=sleepingLevel[id]*30;
infoDefense=sleepingLevel[id]*20;
infoType="Red";
infoMove=[2,2,2,2];
}
}
if(sleepingKind[id]===23){
image(getImage("avatars/primosaur-sapling"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*30;
infoAttack=sleepingLevel[id]*35;
infoDefense=sleepingLevel[id]*25;
infoType="Red";
infoMove=[2,5,2,2];
}
}
if(sleepingKind[id]===24){
image(getImage("avatars/primosaur-tree"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*35;
infoAttack=sleepingLevel[id]*40;
infoDefense=sleepingLevel[id]*30;
infoType="Red";
infoMove=[2,5,8,2];
}
}
if(sleepingKind[id]===25){
image(getImage("avatars/primosaur-ultimate"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*40;
infoAttack=sleepingLevel[id]*45;
infoDefense=sleepingLevel[id]*35;
infoType="Red";
infoMove=[2,5,8,10];
}
}
if(sleepingKind[id]===26){
image(getImage("avatars/starky-seed"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*15;
infoAttack=sleepingLevel[id]*20;
infoDefense=sleepingLevel[id]*25;
infoType="Green";
infoMove=[1,1,1,1];
}
}
if(sleepingKind[id]===27){
image(getImage("avatars/starky-seedling"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*20;
infoAttack=sleepingLevel[id]*25;
infoDefense=sleepingLevel[id]*30;
infoType="Green";
infoMove=[1,1,1,1];
}
}
if(sleepingKind[id]===28){
image(getImage("avatars/starky-sapling"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*25;
infoAttack=sleepingLevel[id]*30;
infoDefense=sleepingLevel[id]*35;
infoType="Green";
infoMove=[1,4,1,1];
}
}
if(sleepingKind[id]===29){
image(getImage("avatars/starky-tree"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*30;
infoAttack=sleepingLevel[id]*35;
infoDefense=sleepingLevel[id]*40;
infoType="Green";
infoMove=[1,4,7,1];
}
}
if(sleepingKind[id]===30){
image(getImage("avatars/starky-ultimate"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*35;
infoAttack=sleepingLevel[id]*40;
infoDefense=sleepingLevel[id]*45;
infoType="Green";
infoMove=[1,4,7,12];
}
}
if(sleepingKind[id]===31){
scale(-1, 1);
image(getImage("creatures/OhNoes"), -x-38,y+2, 36,36);
scale(-1, 1);
if(select===id){
infoSpeed=sleepingLevel[id]*15;
infoAttack=sleepingLevel[id]*15;
infoDefense=sleepingLevel[id]*15;
infoType="Green";
infoMove=[1,4,1,1];
}
}
if(sleepingKind[id]===32){
scale(-1, 1);
image(getImage("creatures/BabyWinston"), -x-38,y+2, 36,36);
scale(-1, 1);
if(select===id){
infoSpeed=sleepingLevel[id]*25;
infoAttack=sleepingLevel[id]*25;
infoDefense=sleepingLevel[id]*25;
infoType="Red";
infoMove=[2,4,2,2];
}
}
if(sleepingKind[id]===33){
ellipse(x+20.5,y+20.5,35,35);
scale(-1, 1);
image(getImage("creatures/Winston"), -x-39,y+3, 36,36);
scale(-1, 1);
if(select===id){
infoSpeed=sleepingLevel[id]*35;
infoAttack=sleepingLevel[id]*35;
infoDefense=sleepingLevel[id]*35;
infoType="Red";
infoMove=[2,4,5,2];
}
}
if(sleepingKind[id]===34){
fill(92, 92, 92);
ellipse(x+20,y+20,34,34);
noStroke();
fill(250,250,0);
ellipse(x+14,y+24,14,16);
fill(250,250,250);
arc(x+10,y+12,4,4, 45,225);
arc(x+24,y+13,4,4, -45,135);
stroke(0, 0, 0);
if(select===id){
infoSpeed=sleepingLevel[id]*45;
infoAttack=sleepingLevel[id]*45;
infoDefense=sleepingLevel[id]*45;
infoType="BLUE";
infoMove=[3,4,5,9];
}
}
if(sleepingKind[id]===35){
scale(-1, 1);
image(getImage("avatars/orange-juice-squid"), -x-38,y+2, 36,36);
scale(-1, 1);
if(select===id){
infoSpeed=sleepingLevel[id]*15;
infoAttack=sleepingLevel[id]*25;
infoDefense=sleepingLevel[id]*20;
infoType="RED";
infoMove=[2,5,8,2];
}
}
if(sleepingKind[id]===36){
image(getImage("avatars/purple-pi"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*35;
infoAttack=sleepingLevel[id]*40;
infoDefense=sleepingLevel[id]*40;
infoType="BLUE";
infoMove=[3,5,8,9];
}
}
if(sleepingKind[id]===37){
image(getImage("creatures/Hopper-Happy"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*25;
infoAttack=sleepingLevel[id]*20;
infoDefense=sleepingLevel[id]*20;
infoType="BLUE";
infoMove=[3,6,3,3];
}
}
if(sleepingKind[id]===38){
image(getImage("creatures/Hopper-Jumping"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*30;
infoAttack=sleepingLevel[id]*25;
infoDefense=sleepingLevel[id]*30;
infoType="GREEN";
infoMove=[1,6,4,1];
}
}
if(sleepingKind[id]===39){
image(getImage("creatures/Hopper-Cool"), x+2,y+2, 36,36);
if(select===id){
infoSpeed="???";
infoAttack="???";
infoDefense="???";
infoType="RED";
infoMove=[2,6,4,5];
}
}
if(sleepingKind[id]===40){
image(getImage("avatars/marcimus"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*30;
infoAttack=sleepingLevel[id]*15;
infoDefense=sleepingLevel[id]*20;
infoType="BLUE";
infoMove=[3,6,3,3];
}
}
if(sleepingKind[id]===41){
scale(-1, 1);
image(getImage("avatars/mr-pants-with-hat"), -x-38,y+2, 36,36);
scale(-1, 1);
if(select===id){
infoSpeed=sleepingLevel[id]*40;
infoAttack=sleepingLevel[id]*35;
infoDefense=sleepingLevel[id]*40;
infoType="GREEN";
infoMove=[1,6,4,7];
}
}
if(sleepingKind[id]===42){
image(getImage("avatars/old-spice-man-blue"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*10;
infoAttack=sleepingLevel[id]*10;
infoDefense=sleepingLevel[id]*35;
infoType="GREEN";
infoMove=[1,4,1,1];
}
}
if(sleepingKind[id]===43){
image(getImage("avatars/mr-pink"), x+2,y+2, 36,36);
if(select===id){
infoSpeed=sleepingLevel[id]*35;
infoAttack=sleepingLevel[id]*40;
infoDefense=sleepingLevel[id]*40;
infoType="RED";
infoMove=[2,4,5,8];
}
}
if(sleepingKind[id]===44){
if(yourType===1){
image(getImage("avatars/spunky-sam-green"), x+2,y+2, 36,36);
}
else if(yourType===2){
image(getImage("avatars/spunky-sam-red"), x+2,y+2, 36,36);
}
else{
image(getImage("avatars/spunky-sam"), x+2,y+2, 36,36);
}
if(select===id){
infoSpeed=sleepingLevel[id]*40;
infoAttack=sleepingLevel[id]*40;
infoDefense=sleepingLevel[id]*40;
infoType="???";
infoMove=[3,4,5,6];
if(yourType===1){
infoMove[0]=1;
}
if(yourType===2){
infoMove[0]=2;
}
}
}
if(sleepingKind[id]===45){
if(select===id){
infoSpeed=sleepingLevel[id]*50;
infoAttack=sleepingLevel[id]*50;
infoDefense=sleepingLevel[id]*50;
}
if(cosmoType===1){
image(getImage("avatars/leafers-seed"), x+2,y+2, 36,36);
if(select===id){
infoType="GREEN";
infoMove=[7,8,9,10];
}
}
if(cosmoType===2){
image(getImage("avatars/piceratops-seed"), x+2,y+2, 36,36);
if(select===id){
infoType="RED";
infoMove=[7,8,9,11];
}
}
if(cosmoType===3){
image(getImage("avatars/aqualine-seed"), x+2,y+2, 36,36);
if(select===id){
infoType="BLUE";
infoMove=[7,8,9,12];
}
}
}
if(sleepingKind[id]===46){
fill(0,0,0);
text("|^---^|\n \\\\", x+5,y+10, 100,100);
//image(getImage("cute/Key"), x+2,y+2, 36,36);
if(select===id){
infoSpeed="???";
infoAttack="???";
infoDefense="???";
infoType="???";
infoMove=[0,0,0,0];
moveWhat="Information not found.";
}
}
};
// Foe Trainer Variables
var trainerID=0;
var trainerName="";
var trainerX=0;
var trainerLineup=[0,0,0,0];
var trainerLevel=[0,0,0,0];
var trainerFaint=0;
var loseTalk=0; // What a person says after losing
var willy=0; // How strong Willy is
var dojo=0; // Where you are in the Dojo Challenge
var theySay = 0;
var newTrainers = 12;
var designer = "";
var foeLastStat = 0;
var lastCom = []; // x,y,dir,page
var trainer = function(t){
//Looks
if(trainerID===1 || trainerID===12 || trainerID===16){
//The scientist.
//Neck.
fill(181, 144, 105);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(117, 108, 105);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(0, 89, 36);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(77, 77, 77);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The uniform.
stroke(194, 186, 186);
fill(235, 235, 235);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
endShape(CLOSE);
fill(255, 255, 255);
beginShape();
vertex(t-1, 66);
vertex(t, 115);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
//The green ball.
stroke(100, 148, 100);
fill(255, 255, 255);
ellipse(t-16,73, 15,15);
fill(0, 191, 0);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(133, 219, 245);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(255, 233, 178);
ellipse(t+3,42, 40,40);
//Hands.
ellipse(t-20,80, 15,15);
ellipse(t+35,100, 15,15);
//Eyes.
noStroke();
fill(0, 61, 135);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
}
if(trainerID===2){
//The shy boy.
//The neck.
noStroke();
fill(232, 183, 97);
quad(t-5, 60, t+5, 60, t+6, 65, t-6, 65);
//Jeans.
stroke(11, 38, 61);
fill(56, 84, 148);
beginShape();
vertex(t-14,95);
vertex(t-14,115);
vertex(t-12,130);
vertex(t+2,130);
vertex(t,115);
vertex(t+3,95);
vertex(t+5,115);
vertex(t+8,130);
vertex(t+22,130);
vertex(t+19,115);
vertex(t+19,95);
endShape();
//Shirt.
stroke(184, 67, 4);
fill(255, 119, 0);
beginShape();
vertex(t-12,67);
vertex(t-9, 65);
vertex(t+9, 65);
vertex(t+12,67);
vertex(t+21,100);
vertex(t-15,98);
endShape(CLOSE);
//Head.
strokeWeight(1);
stroke(171, 148, 103);
fill(245, 221, 159);
ellipse(t,40, 38,40);
//A bit of neck.
noStroke();
fill(230, 178, 87);
ellipse(t, 65, 10, 5);
//Left hand. (Your left, not his.)
stroke(145, 115, 81);
fill(222, 190, 126);
ellipse(t-10, 85, 14, 14);
//Right hand. (Your right, not his.)
stroke(156, 107, 75);
fill(235, 206, 120);
ellipse(t+0,85, 15,15);
strokeWeight(1);
//Eyes.
noStroke();
fill(0, 56, 6);
ellipse(t-9,47, 4,6);
ellipse(t,47, 4,6);
//Hair.
stroke(74, 33, 15);
fill(122, 76, 36);
arc(t, 36, 39, 33, -180, 15);
arc(t-15, 32, 12, 11, -220, -30);
noStroke();
triangle(t+18, 48, t+20, 40, t+13, 38);
//Mouth.
noFill();
strokeWeight(1.5);
stroke(54, 54, 54);
arc(t-7, 53, 20, 2, 20, 97);
//Shoes.
fill(199, 199, 199);
noStroke();
arc(t-12, 130, 15 ,9 ,180, 360);
arc(t+13, 130, 15, 9, 180, 360);
rect(t-20, 130, 21, 2);
rect(t+5, 130, 17, 2);
fill(158, 158, 158);
rect(t-20, 132, 21, 2);
rect(t+5, 132, 17, 2);
}
if(trainerID>2 && trainerID<12 || trainerID>12 && trainerID<16 || trainerID===18){
//The dojo student.
//The neck.
noStroke();
fill(176, 104, 26);
quad(t+-6, 62, t+6, 62, t+5, 55, t+-5, 55);
//The left hand. (Your left, not his.)
fill(240, 171, 118);
strokeWeight(1);
stroke(145, 105, 55);
ellipse(t-16,90, 15,15);
strokeWeight(1);
//Pants.
stroke(87, 87, 87);
fill(247, 247, 247);
beginShape();
vertex(t-13,95);
vertex(t-18,115);
vertex(t-16,130);
vertex(t+2,130);
vertex(t-3,115);
vertex(t+1,95);
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+15,95);
endShape();
//The shirt, er, tunic, erm, thing...
beginShape();
vertex(t-19,105);
vertex(t-16,87);
vertex(t+-15,65);
vertex(t+-9,61);
vertex(t+11,61);
vertex(t+18, 65);
vertex(t+19, 87);
vertex(t+22, 105);
endShape(CLOSE);
stroke(102, 102, 102);
line(t-15,66, t+5,105);
//Head.
strokeWeight(1);
stroke(168, 124, 77);
fill(240, 188, 125);
ellipse(t,37, 40,40);
//The right hand. (Your right, not his.)
fill(230, 151, 55);
stroke(145, 90, 27);
ellipse(t+9,75, 15,15);
//The eyes.
fill(145, 29, 0);
noStroke();
ellipse(t-10, 42, 4, 6);
ellipse(t, 42, 4, 6);
//The black belt and headband.
fill(8, 8, 8);
rect(t-17,84, 37,6, 2);
rect(t-18,24, 36,3, 2);
//Eyebrows.
stroke(0, 0, 0);
strokeWeight(1.5);
noFill();
arc(t+-12, 42, 9, 7, 250, 350);
arc(t+1, 42, 9, 7, 210, 305);
//Socks.
noStroke();
fill(0, 0, 0);
arc(t+-14, 130, 15, 5, 180, 360);
arc(t+13, 130, 13, 5, 180, 360);
rect(t+-22, 130, 22, 3, 1);
rect(t+5, 130, 16, 3, 1);
//The neck again.
fill(201, 130, 44);
ellipse(t, 62, 12, 7);
}
if(trainerID===17){
//The "Master". (Reminds me of Yoda...)
//The cane.
fill(163, 118, 83);
stroke(117, 68, 42);
rect(t-49, 94, 15, 8, 4);
beginShape();
vertex(t-49,99);
vertex(t-48,125);
vertex(t-44,125);
vertex(t-40,102);
endShape();
//The hands.
strokeWeight(2);
fill(235, 193, 141);
stroke(209, 165, 119);
ellipse(t-37,93, 15,15);
ellipse(t+38,103, 14,14);
strokeWeight(1);
//The tiny robe.
stroke(163, 41, 41);
fill(214, 0, 61);
arc(t, 108, 140, 38, 60, 120);
beginShape();
vertex(t-29, 122);
vertex(t-34, 85);
vertex(t-15, 67);
vertex(t+15, 67);
vertex(t+40, 95);
vertex(t+30, 122);
endShape();
strokeWeight(1);
line(t-15, 70, t+14, 127);
line(t+23, 77, t+5, 108);
//The head.
strokeWeight(2);
stroke(222, 181, 140);
fill(240, 211, 168);
ellipse(t, 60, 40, 40);
//The beard.
strokeWeight(1);
stroke(161, 161, 161);
fill(237, 226, 208);
beginShape();
vertex(t-12,73);
vertex(t-5,115);
vertex(t+4,75);
endShape();
//The "eyes".
stroke(0, 22, 41);
strokeWeight(1.5);
noFill();
arc(t+-14, 61, 14, 5, 270, 370);
arc(t+5, 62, 14, 5, 200, 280);
//The Eyebrows.
stroke(252, 252, 252);
strokeWeight(2);
arc(t-14, 59, 16, 9, 270, 332);
arc(t+5, 60, 17, 9, 230, 280);
}
if(trainerID===19){
//The Grand Four Chandler. (I call him Dancer...)
//Neat neck.
noStroke();
fill(227, 183, 134);
quad(t-2, 60, t+6, 60, t+7, 65, t-3, 65);
//Stylish pants.
fill(250, 240, 0);
stroke(217, 183, 91);
beginShape();
vertex(t-14, 100);
vertex(t-19, 115);
vertex(t-20, 130);
vertex(t-3, 130);
vertex(t-4, 115);
vertex(t+1, 103);
vertex(t+7, 115);
vertex(t+11, 130);
vertex(t+25, 130);
vertex(t+22, 115);
vertex(t+17, 95);
endShape();
//Super shirt.
fill(227, 105, 240);
noStroke();
rect(t+-9, 64, 18, 36);
quad(t+13, 66, t+7, 66, t+7, 100, t+20, 100);
//Vital vest.
stroke(212, 172, 104);
fill(255, 255, 0);
beginShape();
vertex(t-18, 103);
vertex(t-15, 68);
vertex(t+-7, 63);
vertex(t+-4, 65);
vertex(t-4, 104);
endShape(CLOSE);
fill(240, 240, 71);
stroke(212, 180, 53);
beginShape();
vertex(t+8, 64);
vertex(t+17, 67);
vertex(t+26, 97);
vertex(t+22, 102);
endShape(CLOSE);
//Hot head.
strokeWeight(1);
stroke(212, 179, 127);
fill(250, 234, 187);
ellipse(t,40, 40,40);
//Hip hands.
ellipse(t-32,90, 15,15);
ellipse(t+35,56, 15,15);
//Entertaining eyes.
fill(107, 77, 1);
noStroke();
arc(t, 43, 5, 5, 205, 400);
arc(t-9, 43, 5, 5, 150, 340);
//Heavenly cut hair.
stroke(100,0,0);
fill(235, 18, 18);
rect(t-20, 14, 38,22);//Hair
arc(t, 16, 65, 50, -230, 50);//Hair
beginShape();
vertex(t+8, 36);
vertex(t+21, 45);
vertex(t+26, 30);
endShape();
fill(94, 5, 40);
arc(t+2, 52, 16, 12, -45, 155);
//Shiny shoes.
noStroke();
fill(201, 201, 201);
arc(t+-21, 131, 16, 10, 180, 360);
arc(t+31, 130, 16, 12, 140, 320);
rect(t+13, 130, 12, 4, 1);
rect(t-30, 130, 26, 4, 2);
//Part of neat neck.
fill(247, 208, 140);
triangle(t+4, 73, t+6, 64, t-2, 64);
}
if(trainerID===20){
//Grand four Susan.
//The cane.
fill(163, 118, 83);
stroke(117, 68, 42);
rect(t-49, 94, 15, 8, 4);
beginShape();
vertex(t-49,99);
vertex(t-48,125);
vertex(t-44,125);
vertex(t-40,102);
endShape();
//Hands.
stroke(217, 174, 113);
strokeWeight(2);
fill(245, 201, 150);
ellipse(t-39, 91, 15, 15);
ellipse(t+34, 104, 15, 15);
strokeWeight(1);
//The robe.
stroke(65, 33, 84);
fill(97, 69, 110);
arc(t+1, 122, 70, 12, -35, 220);
beginShape();
vertex(t-29, 122);
vertex(t-39, 83);
vertex(t-15, 72);
vertex(t+10, 72);
vertex(t+36, 97);
vertex(t+30, 122);
endShape();
line(t-15, 72, t+20, 126);
line(t+15, 78, t, 95);
//Head.
fill(245, 201, 150);
strokeWeight(2);
stroke(201, 147, 80);
ellipse(t, 60, 44, 39);
//The eyes.
noFill();
strokeWeight(1.5);
stroke(133, 90, 61);
arc(t-6, 63, 11, 3, 85, 190);
arc(t, 63, 11, 3, 1, 100);
//The eyebrows.
stroke(148, 148, 148);
strokeWeight(2);
arc(t-6, 60, 12, 2, 80, 190);
arc(t, 60, 12, 2, 10, 103);
//The hair.
strokeWeight(1);
stroke(140, 140, 140);
fill(137, 133, 140);
arc(t-1, 51, 43, 22, -180, 0);
beginShape();
curveVertex(t-30, -155);
vertex(t-23, 51);
vertex(t-24, 95);
vertex(t-17, 100);
vertex(t-18, 51);
vertex(t, 1);
endShape();
beginShape();
curveVertex(t+8, -65);
vertex(t+21, 51);
vertex(t+31, 87);
vertex(t+22, 98);
vertex(t+10, 51);
vertex(t+5, 85);
endShape();
}
if(trainerID===21){
//Grand Four Violet. (Nothing like Violet from "The Incredibles" movie.)
//Neck.
noStroke();
fill(217, 186, 91);
quad(t-5, 60, t-6, 65, t+6, 65, t+5, 60);
//Left hand. (Your left, not her's.)
strokeWeight(2);
stroke(224, 204, 146);
fill(255, 227, 171);
ellipse(t-15, 85, 14, 14);
//Jeans. (That's pretty popular around here, I see.)
stroke(22, 60, 122);
strokeWeight(1);
fill(85, 112, 181);
beginShape();
vertex(t-14, 95);
vertex(t-16, 112);
vertex(t-12, 130);
vertex(t+1, 130);
vertex(t-2, 114);
vertex(t+1, 103);
vertex(t+5, 113);
vertex(t+11, 130);
vertex(t+23, 130);
vertex(t+19, 112);
vertex(t+18, 95);
endShape();
//The pink shirt. (Pink?? Her name's VIOLET! A.K.A. PURPLE! COME ON!)
stroke(173, 39, 194);
fill(242, 94, 203);
beginShape();
vertex(t-16,99);
vertex(t-15,68);
vertex(t+-9,65);
vertex(t+9,65);
vertex(t+15,68);
vertex(t+20, 98);
endShape(CLOSE);
//Bit of neck.
fill(214, 202, 178);
noStroke();
ellipse(t, 65, 10, 4);
//The pony tail. (... It looks a bit more like a ram's horn or something.)
stroke(196, 163, 63);
fill(235, 208, 89); // Pony Tail
beginShape();
curveVertex(t+55,50);
vertex(t+2,56);
vertex(t-6,67);
vertex(t-10,85);//
vertex(t-14,70);
vertex(t-6,39);
vertex(t+140,-5);
endShape();
//Head. (At least THAT'S alright...)
strokeWeight(2);
stroke(230, 208, 141);
fill(245, 228, 186);
ellipse(t,40, 40,40);
//Right hand. (Your right, not her's.)
ellipse(t+9, 70, 16, 16);
strokeWeight(1);
//Eyes. (Eh. Not bad.)
fill(128, 0, 153);
noStroke();
ellipse(t-9, 44, 4, 6);
ellipse(t, 44, 4, 6);
//Eyebrows. (Someone's angry.)
noFill();
strokeWeight(2);
stroke(194, 162, 0);
arc(t-9, 41, 6, 2, 40, 185);
arc(t, 41, 6, 2, 5, 130);
strokeWeight(1);
//Rest of hair.
stroke(196, 163, 63);
fill(230, 216, 67);
arc(t, 39, 43, 42, -174, 19);
beginShape();
vertex(t+21, 35);
vertex(t+23, 45);
vertex(t+22, 50);
vertex(t+20, 55);
vertex(t+17.5, 56.0);
vertex(t+14, 56);
vertex(t+19, 50);
vertex(t,39);
vertex(t-22,37);
endShape();
//Shoes.
fill(222, 42, 235);
stroke(150, 26, 161);
rect(t+7, 130, 16, 3, 2);
rect(t-18, 130, 18, 3, 2);
arc(t+14, 131, 13, 9, 180, 360);
arc(t-11, 131, 13, 9, 180, 360);
}
if(trainerID===22){
//Grand Four Benjamine.
//Neck.
noStroke();
fill(189, 135, 70);
quad(t-5, 58, t-6, 65, t+6, 65, t+5, 58);
//Pants.
stroke(71, 0, 0);
fill(163, 39, 39);
beginShape();
vertex(t-15,95);
vertex(t-17,116);
vertex(t-15,130);
vertex(t+-1,130);
vertex(t-2,116);
vertex(t+1,102);
vertex(t+3,116);
vertex(t+7,130);
vertex(t+20,130);
vertex(t+18,115);
vertex(t+17,95);
endShape();
//Shirt.
stroke(110, 1, 1);
fill(219, 41, 17);
beginShape();
vertex(t-16, 100);
vertex(t-14, 65);
vertex(t+-9, 62);
vertex(t+9, 62);
vertex(t+14, 65);
vertex(t+19, 100);
endShape(CLOSE);
//The Pokéball... or avatarball... or Khanéball? xD
stroke(0, 115, 10);
fill(235, 255, 236);
ellipse(t-11, 70, 15, 15);
fill(17, 153, 17);
arc(t-11, 70, 15, 15, 145, 335);
line(t-11, 70, t-4, 68);
//The head.
fill(250, 206, 168);
strokeWeight(2);
stroke(204, 180, 118);
ellipse(t, 38, 38, 40);
//Hands.
ellipse(t-15, 73, 16, 16);
ellipse(t+27, 93, 14, 14);
//Eyes.
strokeWeight(1);
fill(71, 71, 71);
noStroke();
ellipse(t-9, 45, 4, 6);
ellipse(t-0, 45, 4, 6);
//Eyebrows.
noFill();
stroke(82, 27, 1);
strokeWeight(1.5);
arc(t+2, 44, 11, 5, -150, -65);
arc(t-11, 44, 10, 5, 240, 335);
//The cap's back part.
fill(0, 53, 133);
rect(t, 33, 28, 3, 2);
//Hair.
fill(77, 31, 0);
triangle(t+13, 35, t+20, 35, t+18, 47);
triangle(t+5, 35, t+-9, 35, t+1, 39);
//The cap. (Interesting fact, there used to be a note here that said "Hair")
fill(10, 88, 204);
stroke(0, 57, 156);
arc(t, 36, 42, 38, -177, 5);
arc(t, 36, 28, 38, -177, 2);
arc(t, 36, 1, 38, -177, -3);
//The cap's hole.
fill(66, 26, 0);
rect(t-15, 27, 8, 4, 2);
//Mouth.
noFill();
stroke(150, 113, 74);
arc(t+2, 53, 18, 3, -147, -87);
//Neck.
fill(224, 150, 101);
noStroke();
ellipse(t, 62, 10, 4);
//Shoes.
fill(158, 95, 27);
stroke(112, 66, 16);
strokeWeight(1);
rect(t-22, 130, 20, 3, 2);
rect(t+3, 130, 16, 3, 2);
arc(t-14, 131, 15, 10, -180, 0);
arc(t+11, 131, 15, 10, -180, 0);
}
if(trainerID===23){
//Champion, Professor, & Awesome Guy BransfordC!
//The neck.
noStroke();
fill(235, 199, 146);
quad(t-5, 60, t-6, 65, t+6, 65, t+5, 60);
//The right hand. (Your right, not his.)
strokeWeight(2);
stroke(212, 182, 148);
fill(240, 212, 170);
ellipse(t+18, 90, 14, 14);
//The pants.
strokeWeight(1);
stroke(87, 87, 87);
fill(128, 128, 128);
beginShape();
vertex(t-14, 95);
vertex(t-17, 115);
vertex(t-18, 130);
vertex(t-4, 130);
vertex(t-3, 115);
vertex(t+2, 98);
vertex(t+9, 115);
vertex(t+11, 130);
vertex(t+25, 130);
vertex(t+21, 115);
vertex(t+14, 95);
endShape();
//The shirt. (Which is just a rectangle.)
fill(150, 215, 230);
noStroke();
rect(t-14, 67, 25, 32);
//The suit.
stroke(122, 122, 122);
fill(245, 245, 245);
beginShape();
vertex(t-17,68);
vertex(t+-10,65);
vertex(t+-6,66);
vertex(t-7,98);
vertex(t-6, 123);
vertex(t-21,121);
endShape(CLOSE);
beginShape();
vertex(t+15,69);
vertex(t+9,65);
vertex(t+6,66);
vertex(t+10,98);
vertex(t+11, 123);
vertex(t+23, 118);
vertex(t+20,106);
endShape(CLOSE);
//The head and the left hand. (Your left, not his.)
strokeWeight(2);
stroke(224, 193, 139);
fill(255, 231, 196);
ellipse(t, 40, 40, 40);
ellipse(t-20, 95, 15, 15);
strokeWeight(1);
//The eyes.
fill(56, 56, 56);
noStroke();
ellipse(t-10, 42, 4, 6);
ellipse(t-1, 42, 4, 6);
//The hairdo.
fill(209, 164, 30);
stroke(135, 94, 32);
beginShape();
vertex(t-30,13);
vertex(t-18,32);
vertex(t+12,35);
vertex(t+15,43);
vertex(t+21,47);
vertex(t+21, 32);
vertex(t+18, 27);
vertex(t+10, 20);
vertex(t+-6, 18);
vertex(t-30, 13);
endShape();
//The mouth.
noFill();
stroke(189, 151, 76);
strokeWeight(1.5);
arc(t-4, 49, 13, 8, 20, 135);
//The shoes.
noStroke();
fill(46, 46, 46);
rect(t-21, 130, 16, 3, 2);
rect(t+12, 130, 16, 3, 2);
arc(t-14, 130, 14, 8, -180, 0);
arc(t+20, 130, 14, 8, -180, 0);
//The neck.
fill(240, 206, 158);
ellipse(t, 66, 10, 5);
}
if(trainerID===24){
//Graphics Designer Sky.
//Neck.
noStroke();
fill(204, 154, 53);
quad(t-5, 58, t-6, 65, t+6, 65, t+5, 58);
//Pants.
stroke(0, 97, 23);
fill(20, 117, 41);
beginShape();
vertex(t-15,95);
vertex(t-17,116);
vertex(t-15,130);
vertex(t+-1,130);
vertex(t-2,116);
vertex(t+1,102);
vertex(t+3,116);
vertex(t+7,130);
vertex(t+20,130);
vertex(t+18,115);
vertex(t+17,95);
endShape();
//Shirt.
stroke(14, 113, 179);
fill(66, 161, 255);
beginShape();
vertex(t-16, 100);
vertex(t-14, 65);
vertex(t+-9, 62);
vertex(t+9, 62);
vertex(t+14, 65);
vertex(t+19, 100);
endShape(CLOSE);
//The Pokéball... or avatarball... or Khanéball? xD
stroke(69, 69, 69);
fill(255, 255, 255);
ellipse(t-15, 75, 15, 15);
fill(0, 235, 12);
arc(t-15, 75, 15, 15, 145, 335);
line(t-22, 80, t-9, 72);
fill(152, 227, 222);
ellipse(t+-15, 75, 5, 5);
//The head.
fill(255, 217, 186);
strokeWeight(2);
stroke(207, 182, 120);
ellipse(t, 38, 39, 40);
//Hands.
ellipse(t-20, 85, 16, 16);
ellipse(t+33, 95, 14, 14);
//Eyes.
strokeWeight(1);
fill(66, 66, 66);
noStroke();
ellipse(t-9, 45, 4, 6);
ellipse(t-0, 45, 4, 6);
//Eyebrows.
noFill();
stroke(97, 31, 0);
strokeWeight(1.5);
arc(t+-1, 44, 13, 5, -115, -41);
arc(t-9, 44, 13, 5, 228, 290);
//Hair.
fill(112, 45, 0);
stroke(112, 39, 0);
triangle(t+10, 35, t+20, 35, t+18, 49);
triangle(t+12, 35, t+-13, 35, t+4, 40);
triangle(t-13, 35, t-19, 40, t-19, 35);
//The cap.
fill(16, 84, 179);
stroke(26, 62, 117);
arc(t, 36, 42, 38, -177, 5);
arc(t, 36, 28, 38, -177, 2);
arc(t, 36, 1, 38, -177, -3);
//Cap's front.
//noStroke();
strokeWeight(3);
//fill(7, 112, 168);
stroke(7, 112, 168);
//rect(t-25, 33, 34, 2, 4);
line(t-25, 35, t+9, 36);
strokeWeight(2);
//Mouth.
noFill();
stroke(110, 82, 55);
arc(t+-4, 52, 13, 3, 4, 100);
//Neck.
fill(240, 190, 158);
noStroke();
ellipse(t, 62, 10, 4);
//Shoes.
fill(158, 144, 133);
arc(t-14, 130, 15, 8, -180, 0);
arc(t+11, 130, 15, 8, -180, 0);
fill(122, 122, 122);
rect(t-22, 130, 20, 3, 2);
rect(t+3, 130, 16, 3, 2);
}
// Nipe
if(trainerID===25){
//The neck.
noStroke();
fill(18, 18, 18);
quad(t+-6, 62, t+6, 62, t+5, 55, t+-5, 55);
//The left hand. (Your left, not his :P)
strokeWeight(1.5);
fill(255, 217, 0);
stroke(255, 170, 0);
ellipse(t-16,90, 15,15);
strokeWeight(1);
//Pants.
stroke(13, 12, 13);
fill(19, 19, 20);
beginShape();
vertex(t-13,95);
vertex(t-18,115);
vertex(t-16,130);
vertex(t,130);
vertex(t-3,115);
vertex(t+1,95);
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+15,95);
endShape();
//The shirt
fill(20, 19, 18);
beginShape();
vertex(t-17,105);
vertex(t-16,87);
vertex(t+-15,65);
vertex(t+-9,61);
vertex(t+11,61);
vertex(t+15, 65);
vertex(t+18, 87);
vertex(t+20, 105);
endShape(CLOSE);
//Head.
strokeWeight(2);
stroke(199, 184, 162);
fill(227, 209, 179);
ellipse(t,39, 40,40);
//Fancy Chest Stuff
noStroke();
fill(255, 213, 0);
arc(t+5,65,20,10,-90,0);
arc(t-5,65,20,10,-180,-90);
noFill();
strokeCap(SQUARE);
strokeWeight(2);
stroke(36, 36, 35);
//arc(t+5,65,20,20,-90,0);
strokeWeight(2);
noStroke();
fill(255, 200, 0);
triangle(t-17,100,t-16,75,t+10,100);
triangle(t+20,100,t+18,75,t-10,100);
rect(t-10,83,20,10);
fill(143, 135, 87);
quad(t-10,65,t+10,65,t+5,95,t-5,95);
fill(105, 99, 65);
rectMode(CENTER);
for(var i = 0; i < 30; i+=5){
rect(t,68+i,16-i/2,1);
}
rectMode(CORNER);
//The right hand. (Your right, not his :P.)
fill(255, 217, 0);
stroke(255, 170, 0);
ellipse(t+7,78, 15,15);
//Belt
rectMode(CENTER);
noStroke();
fill(31, 31, 31);
rect(t+1,99,38,10);
fill(255, 149, 0);
rect(t+1,102,38,4);
rectMode(CORNER);
//The eyes.
fill(28, 49, 168);
noStroke();
arc(t-10, 45, 7, 10,30,210);
arc(t, 45, 7, 10,-30,150);
//Hair
stroke(0, 0, 0);
fill(15, 13, 11);
arc(t, 36, 39, 33, -180, 15);
arc(t-15, 32, 12, 11, -220, -30);
noStroke();
triangle(t+20, 48, t+20, 40, t+13, 38);
//Shoes
noStroke();
fill(245, 170, 10);
arc(t+-14, 130, 15, 5, 180, 360);
arc(t+13, 130, 13, 5, 180, 360);
rect(t+-22, 130, 22, 3, 1);
rect(t+5, 130, 16, 3, 1);
beginShape();
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+20,110);
endShape();
quad(t-19,115,t-17,130,t,130,t-2,110);
//The neck again.
fill(41, 40, 38);
ellipse(t, 62, 12, 7);
}
// Psychic
if(trainerID === 26){
//Psychic John
//Part of elite four
//Says "I have read the stars over and over again. They say you will lose!
//When loses says "Sometimes the stars lie."
//Team:
//Duskpin Ultimate lvl 79
//Starky Ultimate lvl 80
//Mr.Pants lvl 78
//Purple Pi lvl 81
//Primosaur Ultimate lvl 80
//Winston lvl 84
//Neck.
fill(181, 144, 105);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(38, 55, 99);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(153, 155, 212);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(0, 0, 0);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The uniform.
stroke(151, 66, 166);
fill(117, 0, 117);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
endShape(CLOSE);
beginShape();
vertex(t+2, 66);
vertex(t, 115);
vertex(t-18, 115);
vertex(t-10, 69);
endShape(CLOSE);
//The purple ball.
fill(41, 171, 186);
ellipse(t-16,13, 25,25);
stroke(0, 0, 0);
fill(255, 255, 255);
ellipse(t-16,13, 15,15);
fill(137, 56, 217);
arc(t-16, 13, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(168, 168, 168);
ellipse(t-16,13, 7,7);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(237, 218, 165);
ellipse(t+3,45, 40,40);
//Hands.
ellipse(t-13,71, 15,15);
ellipse(t+35,55, 15,15);
//Eyes.
noStroke();
fill(0, 128, 255);
ellipse(t-9,44, 6,2);
ellipse(t+2,44, 6,2);
//Eyebrows.
fill(0);
beginShape();
vertex(t-5, 40);
vertex(t-12, 40);
vertex(t-11, 38);
endShape();
beginShape();
vertex(t+7, 38);
vertex(t+4, 39);
vertex(t-3, 38);
endShape();
}
// Team Rocket Grunt
if (trainerID === 27){
//Says "If you want to go ahead, you have to pass me."
//When loses says "Fine. Go ahead. Boss will be so mad."
//Team:
//Oh noes lvl 12
//Starky Sapling lvl 15
//Neck.
fill(181, 144, 105);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(87, 87, 87);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(38, 38, 38);
rect(t-5, 67, 19, 35);
fill(255, 0, 0);
textSize("20");
text("R", t-1, 93);
//Shoes.
noStroke();
fill(77, 77, 77);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The uniform.
stroke(66, 66, 66);
fill(0, 0, 0);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
endShape(CLOSE);
beginShape();
vertex(t-1, 66);
vertex(t, 115);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
//The ball.
stroke(0, 0, 0);
fill(255, 0, 0);
ellipse(t-16,73, 15,15);
fill(0, 0, 0);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(255, 255, 255);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(242, 219, 164);
ellipse(t+3,42, 40,40);
//Hands.
ellipse(t-20,80, 15,15);
ellipse(t+35,100, 15,15);
//Eyes.
noStroke();
fill(0, 61, 135);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
//Eyebrows.
fill(0);
beginShape();
vertex(t-5, 40);
vertex(t-12, 40);
vertex(t-11, 38);
endShape();
beginShape();
vertex(t+10, 41);
vertex(t+3, 38);
vertex(t-3, 40);
endShape();
//Beanie.
stroke(51, 51, 51);
fill(51, 51, 51);
arc(t+4, 38, 39, 35, -180, 12);
}
// Camper
if (trainerID === 28){
//Neck.
fill(168, 168, 16);
noStroke();
quad(t+9, 67, t-2, 72, t-0, 60, t+8, 60);
//Pants.
fill(48, 186, 83);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(232, 205, 51);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(117, 135, 0);
arc(t-10, 133, 20, 20, 180, 360);
arc(t+27, 125, 12, 8, 180, 360);
rect(t+8, 125, 25, 6);
//The uniform.
stroke(0, 0, 0);
fill(15, 105, 42);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
vertex(t+5, 100);
endShape(CLOSE);
fill(15, 105, 42);
beginShape();
vertex(t-1, 66);
vertex(t+5, 100);
vertex(t, 115);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
//The head.
strokeWeight(1);
stroke(217, 201, 176);
fill(245, 219, 152);
ellipse(t+3,45, 37,40);
//Hands.
ellipse(t-24,76, 15,15);
ellipse(t+35,90, 15,15);
//Eyes.
noStroke();
fill(138, 138, 138);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
//Hair
fill(74, 53, 3);
arc(t+14, 42, 15, 30, 240, 400);
triangle(t+18, 31, t-27, 33, t, 23);
ellipse(t+6, 27, 17, 8);
}
// Avatar Maniac
if (trainerID === 29){
//Avatar Maniac.
//Says "Winstons are the best avatar"
//When loses says "Maybe winstons aren't the best for battling"
//Team:
//Baby Winston lvl 6
//Winston lvl 9
//Neck.
fill(181, 144, 105);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(255, 0, 0);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(255, 0, 0);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(0, 0, 0);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The uniform.
stroke(194, 186, 186);
fill(255, 247, 0);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
endShape(CLOSE);
beginShape();
vertex(t-1, 66);
vertex(t, 115);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(255, 233, 178);
ellipse(t+3,42, 40,40);
//Hands.
ellipse(t-29,66, 15,15);
ellipse(t+37,65, 15,15);
//Eyes.
noStroke();
fill(0, 61, 135);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
//Hat.
image(getImage("creatures/Winston"), t+-21, 17,50,50);
}
// Max
if (trainerID === 30){
/*
(When you go next to him in the Overworld)
Hi, I'm Max. Are you ready to get beat?
(When he loses)
Pretend that didn't happen!
(Avatars)
Starky
Duskpin Ultimate
Pants
Mr Pink
*/
stroke(0);
//Neck.
fill(201, 169, 136);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(7, 0, 82);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(255, 255, 255);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(0, 0, 0);
arc(t-10, 133, 20, 20, 180, 360);
arc(t+27, 125, 12, 8, 180, 360);
rect(t+8, 125, 25, 6);
//The uniform.
stroke(0, 0, 0);
fill(0, 4, 115);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
vertex(t+5, 100);
endShape(CLOSE);
fill(0,4,115);
beginShape();
vertex(t-1, 66);
vertex(t+5, 100);
vertex(t, 115);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
//The head.
strokeWeight(1);
stroke(217, 201, 176);
fill(250, 249, 210);
ellipse(t+3,42, 40,40);
//Hands.
ellipse(t-24,88, 15,15);
ellipse(t+35,88, 15,15);
//Eyes.
noStroke();
fill(186, 67, 67);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
//Eyebrows
fill(0);
beginShape();
vertex(t-7, 40);
vertex(t-10, 36);
vertex(t-12, 38);
endShape();
beginShape();
vertex(t+7, 38);
vertex(t+4, 35);
vertex(t-3, 40);
endShape();
//Hair
fill(0);
arc(t+14, 42, 15, 30, 240, 400);
triangle(t+18, 31, t-27, 33, t, 23);
ellipse(t+6, 27, 17, 8);
}
// Battle Box
if (trainerID === 31){
fill(97);
stroke(128);
rect(t - 40, 30, 80, 100, 10);
fill(90);
noStroke();
rect(t - 40, 80, 80, 50, 10);
rect(t - 40, 80, 80, 30);
fill(148);
stroke(128);
rect(t - 40, 30, 60, 100, 10);
stroke(80);
strokeWeight(2);
ellipse(t - 10, 80, 30, 40);
line(t - 25, 80, t + 4, 80);
ellipse(t - 10, 80, 10, 15);
line(t - 40, 70, t - 37, 70);
line(t - 40, 80, t - 34, 80);
line(t - 40, 90, t - 37, 90);
line(t + 20, 70, t + 17, 70);
line(t + 20, 80, t + 14, 80);
line(t + 20, 90, t + 17, 90);
point(t + 5, 40);
line(t + 10, 40, t + 19, 40);
}
// Stella
if (trainerID === 32){
// Hair
noStroke();
fill(32);
quad(t + 23, 42, t + 24, 100, t - 16, 100, t - 17, 42);
fill(45);
quad(t + 23, 42, t + 24, 100, t, 100, t, 42);
// Neck
fill(125, 88, 51);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
// Pants
fill(227, 246, 255);
stroke(148, 193, 214);
quad(t + 3, 115, t, 130, t + 15, 130, t + 20, 115);
quad(t - 13, 115, t - 10, 130, t + 5, 130, t + 3, 115);
rect(t-12, 100, 30, 15);
// Shoes
noStroke();
fill(138, 138, 138);
arc(t - 5, 133, 20, 16, 180, 360);
arc(t + 12, 133, 20, 16, 180, 360);
// Dress
stroke(88, 41, 153);
fill(88, 41, 153);
beginShape();
vertex(t + 9, 66);
vertex(t + 19, 68);
vertex(t + 25, 115);
vertex(t + 13, 115);
vertex(t + 5, 115);
vertex(t + 5, 66);
endShape(CLOSE);
fill(113, 55, 189);
beginShape();
vertex(t + 5, 66);
vertex(t + 5, 115);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
noStroke();
fill(227, 246, 255);
quad(t + 5, 72, t + 15, 90, t + 5, 108, t -5, 90);
// Khan'ball
fill(255, 255, 255);
ellipse(t + 10, 87, 15, 15);
fill(0, 85, 189);
arc(t + 10, 87, 17, 17, 100, 280);
fill(133, 219, 245);
ellipse(t + 10, 87, 7, 7);
// Head
strokeWeight(1);
stroke(125, 88, 51);
fill(156, 113, 70);
ellipse(t+3,42, 40,40);
// Hands
ellipse(t + 5, 100, 15, 15);
ellipse(t + 15, 95, 15, 15);
// Eyebrow
stroke(0);
arc(t - 9, 41, 5, 7, 180, 360);
// Eyes
noStroke();
fill(0, 82, 0);
ellipse(t - 9, 44, 4, 6);
// More hair
fill(32);
arc(t + 3, 42, 40, 40, 190, 390);
fill(45);
arc(t + 3, 42, 40, 40, 290, 390);
pushMatrix();
translate(t + 13, 45);
rotate(30);
arc(0, 0, 20, 10, 0, 180);
popMatrix();
// Mouth
stroke(32);
noFill();
bezier(t - 8, 52, t + 8, 52, t + 8, 55, t + 6, 57);
}
// Darius
if (trainerID === 33){
// Neck
fill(181, 144, 105);
noStroke();
quad(t + 9, 67, t - 2, 67, t, 60, t + 8, 60);
// Pants
fill(0, 38, 87);
quad(t - 10, 115, t + 17, 115, t + 16, 130, t - 9, 130);
rect(t - 12, 100, 30, 15);
stroke(27, 66, 115);
line(t + 3, 130, t + 3, 110);
// Shirt
noStroke();
fill(210);
rect(t - 5, 67, 15, 35);
// Shoes
noStroke();
fill(107, 82, 20);
arc(t - 5, 133, 20, 15, 180, 360);
arc(t + 10, 133, 20, 15, 180, 360);
// Jacket
fill(158, 61, 61);
beginShape();
vertex(t - 2, 66);
vertex(t - 14, 72);
vertex(t - 20, 115);
vertex(t - 2, 115);
vertex(t - 5, 90);
endShape(CLOSE);
fill(140, 53, 53);
beginShape();
vertex(t + 7, 66);
vertex(t + 10, 92);
vertex(t + 8, 115);
vertex(t + 27, 115);
vertex(t + 20, 72);
endShape(CLOSE);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(237, 214, 161);
ellipse(t + 3, 42, 40, 40);
//Hands.
ellipse(t - 7, 90, 15, 15);
ellipse(t + 12, 92, 15, 15);
// Eyebrows
stroke(122, 74, 46);
arc(t - 9, 40, 7, 9, 230, 310);
arc(t + 2, 42, 7, 9, 230, 310);
// Mouth
stroke(32);
line(t, 52, t + 5, 52);
line(t + 5, 53, t + 6, 54);
// Eyes
noStroke();
fill(171, 138, 46);
ellipse(t - 9, 44, 4, 6);
ellipse(t + 2, 44, 4, 6);
// Fez
stroke(140, 53, 53);
fill(158, 61, 61);
beginShape();
vertex(t - 10, 27);
bezierVertex(t, 27, t + 15, 27, t + 23, 44);
vertex(t + 25, 20);
bezierVertex(t + 20, 12, t + 10, 12, t + 5, 13);
endShape(CLOSE);
}
// Pineapple Kid
if (trainerID === 34){
//Shirt
stroke(94, 58, 58);
fill(122, 102, 102);
noStroke();
quad(t + -14,72,t + -14,109,t + 17,109,t + 13,74);
//legs
quad(t + 23,134,t + 12,134,t + 6,109,t + 17,108);
quad(t + -15,123,t + -3,122,t + -2,109,t + -14,109);
quad(t + -15,122,t + -3,121,t + -1,134,t + -13,134);
//arms
quad(t + 28,85,t + 19,87,t + 14,84,t + 11,73);
quad(t + 27,84,t + 18,84,t + 20,104,t + 28,104);
quad(t + -39,65,t + -34,59,t + -13,71,t + -14,82);
//hands
stroke(255, 221, 0);
fill(245, 245, 0);
ellipse(t+24, 103, 10,10);
ellipse(t+-37, 61, 10,10);
//Khanèball
stroke(100, 148, 100);
fill(255, 255, 255);
ellipse(t-38,55, 15,15);
fill(0, 191, 0);
arc(t-38, 55, 15, 15, 180, 360);
line(t-46,55, t+-32,55);
fill(133, 219, 245);
ellipse(t-38,55, 7,7);
//Head
stroke(255, 221, 0);
fill(245, 245, 0);
ellipse(t+0, 57, 40,40);
fill(0, 0, 0);
ellipse(t+-10, 60, 8,8);
ellipse(t+1, 60, 8,8);
//hair
noStroke();
fill(0, 143, 0);
arc(t+0, 57, 40,40,180,360);
triangle(t + 20,57,t + 10,57,t + 19,65);
triangle(t + 26,31,t + 10,42,t + 19,50);
triangle(t + -24,25,t + -14,42,t + 16,50);
triangle(t + -25,47,t + -21,57,t + -2,37);
triangle(t + -16,47,t + -21,39,t + -11,37);
triangle(t + 4,26,t + 9,39,t + -11,37);
triangle(t + 15,33,t + 19,47,t + -11,37);
triangle(t + 35,60,t + 19,65,t + -11,37);
triangle(t + 33,46,t + 19,65,t + -11,37);
}
// Unknown Trainer
if (trainerID === 35){
//Pants.
fill(100);
//The shirt.
fill(0, 0, 0);
rect(t-5, 67, 19, 35);
//The uniform.
stroke(0, 0, 0);
fill(100);
beginShape();
vertex(t+4, 61);
vertex(t+19, 70);
vertex(t+21, 133);
vertex(t+1, 140);
endShape(CLOSE);
fill(100);
beginShape();
vertex(t+4, 62);
vertex(t+0, 140);
vertex(t-19, 133);
vertex(t-16, 72);
endShape(CLOSE);
//The green ball.
stroke(0, 0, 0);
fill(255);
ellipse(t-5,90, 15,15);
fill(100);
arc(t-5,90, 15, 15, 126, 321);
line(t,86, t-10,95);
fill(200);
ellipse(t-5,90, 7,7);
//The head.
strokeWeight(1);
stroke(0);
fill(0);
ellipse(t+3,42, 40,40);
//Hands.
fill(164, 166, 30);
ellipse(t-17,97, 15,15);
ellipse(t+7,97, 15,15);
//Eyes.
noStroke();
fill(200, 0, 0);
ellipse(t-9,44, 6,4);
ellipse(t+2,44, 6,4);
//Hood
stroke(0);
fill(100);
beginShape();
vertex(t+-9, 68);
vertex(t+-20, 51);
vertex(t+-20, 40);
vertex(t+-11, 22);
vertex(t+1, 16);
vertex(t+14, 23);
vertex(t+24, 37);
vertex(t+25, 55);
vertex(t+17, 64);
vertex(t+4, 66);
vertex(t+16, 50);
vertex(t+12, 41);
vertex(t+5, 31);
vertex(t+0, 28);
vertex(t+-13, 37);
vertex(t+-17, 50);
vertex(t+-3, 60);
vertex(t+6, 65);
endShape(CLOSE);
}
// Tazal
if (trainerID === 36){
strokeWeight(1);
stroke(199, 178, 149);
fill(252, 233, 205);
ellipse (t+3,42 ,40,40);
fill(227, 201, 166);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
ellipse(t+4 ,67 , 10,10);
fill(48, 117, 45);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
noStroke();
fill(36, 31, 9);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
stroke(94, 50, 70);
fill(217, 209, 134);
beginShape();
endShape(CLOSE);
fill(181, 99, 135);
beginShape();
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t-17, 115);
vertex(t-10, 66);
endShape(CLOSE);
noStroke();
fill(117, 88, 88);
rect(t,80,5,20);
rect(t-5,80,15,5);
noStroke();
fill(69, 30, 7);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
fill(252, 233, 205);
strokeWeight(1);
stroke(173, 147, 106);
ellipse(t+30,95, 15,15);
stroke(138, 145, 138);
fill(255, 255, 255);
ellipse(t-29,73, 15,15);
fill(255, 127, 23);
arc(t-29, 73, 15, 15, 100, 315);
fill(250, 194, 10);
ellipse(t-29,73, 7,7);
fill(252, 233, 205);
strokeWeight(1);
stroke(173, 147, 106);
ellipse(t+30,95, 15,15);
ellipse(t-30,80, 15,15);
fill(227, 201, 166);
noStroke();
ellipse(t+3 ,65 , 10,10);
}
// Iron Man!
if (trainerID === 37){
var reactor = function(x, y, w, h, glow){
noStroke();
for(var i = 0; i < 1; i+=noise(glow/10)/4){
var v = min(sqrt(i), 1);
fill(v*255, 200+v*55, 255, 100);
ellipse(x, y, 1.5*w*(1-i), 1.5*h*(1-i));
}
};
var ironMan = function(x, y, w, h){
var clr = color(200, 0, 0);
var bronze = color(212, 176, 85);
noStroke();
fill(clr);
beginShape();
//head
curveVertex(x+w*0.5, y);
curveVertex(x+w*0.5, y);
vertex(x+w*0.63, y+h*0.02);
vertex(x+w*0.65, y+h*0.08);
//neck
vertex(x+w*0.65, y+h*0.15);
//shoulder
vertex(x+w*0.8, y+h*0.2);
//right arm
vertex(x+w*0.8, y+h*0.3);
//right hand
vertex(x+w*0.9, y+h*0.45);
vertex(x+w*0.75, y+h*0.47);
//right arm
vertex(x+w*0.75, y+h*0.4);
vertex(x+w*0.65, y+h*0.3);
//body
vertex(x+w*0.7, y+h*0.5);
//right leg
vertex(x+w*0.75, y+h*0.6);
//ankle
vertex(x+w*0.77, y+h*0.78);
//foot
vertex(x+w*0.89, y+h*0.86);
vertex(x+w*0.89, y+h*0.9);
vertex(x+w*0.6, y+h*0.88);
vertex(x+w*0.6, y+h*0.8);
vertex(x+w*0.6, y+h*0.75);
//right leg
vertex(x+w*0.55, y+h*0.61);
vertex(x+w*0.5, y+h*0.55);
//left leg
vertex(x+w*0.5, y+h*0.55);
vertex(x+w*0.45, y+h*0.65);
vertex(x+w*0.4, y+h*0.75);
vertex(x+w*0.35, y+h*0.8);
//left foot
vertex(x+w*0.3, y+h*0.95);
vertex(x+w*0.15, y+h*0.93);
//left leg
vertex(x+w*0.2, y+h*0.8);
vertex(x+w*0.2, y+h*0.7);
vertex(x+w*0.25, y+h*0.6);
vertex(x+w*0.25, y+h*0.45);
//body
vertex(x+w*0.3, y+h*0.38);
vertex(x+w*0.2, y+h*0.22);
//arm
vertex(x+w*0.2, y+h*0.22);
vertex(x+w*0.1, y+h*0.2);
//finger 1
vertex(x+w*0.1, y+h*0.12);
vertex(x+w*0.06, y+h*0.08);
vertex(x+w*0.08, y+h*0.07);
//finger 2
vertex(x+w*0.14, y+h*0.1);
vertex(x+w*0.12, y+h*0.05);
vertex(x+w*0.15, y+h*0.05);
//finger 3
vertex(x+w*0.185, y+h*0.09);
vertex(x+w*0.19, y+h*0.04);
vertex(x+w*0.22, y+h*0.04);
//finger 4
vertex(x+w*0.23, y+h*0.09);
vertex(x+w*0.26, y+h*0.05);
vertex(x+w*0.28, y+h*0.06);
vertex(x+w*0.27, y+h*0.1);
//shoulder
vertex(x+w*0.3, y+h*0.1);
vertex(x+w*0.35, y+h*0.09);
vertex(x+w*0.4, y+h*0.1);
vertex(x+w*0.4, y+h*0.1);
//head
vertex(x+w*0.42, y+h*0.02);
vertex(x+w*0.5, y);
vertex(x+w*0.5, y);
endShape(CLOSE);
fill(bronze);
stroke(0);
strokeWeight(1);
//face plate
noStroke();
beginShape();
vertex(x+w*0.49, y+h*0.02);
vertex(x+w*0.5, y+h*0.05);
vertex(x+w*0.55, y+h*0.05);
vertex(x+w*0.57, y+h*0.02);
vertex(x+w*0.62, y+h*0.03);
vertex(x+w*0.63, y+h*0.09);
vertex(x+w*0.58, y+h*0.13);
vertex(x+w*0.58, y+h*0.14);
vertex(x+w*0.47, y+h*0.14);
vertex(x+w*0.47, y+h*0.13);
vertex(x+w*0.42, y+h*0.09);
vertex(x+w*0.43, y+h*0.03);
endShape(CLOSE);
fill(150, 208, 255);
//left eye
stroke(102, 194, 255);
strokeWeight(1);
beginShape();
vertex(x+w*0.45, y+h*0.08);
vertex(x+w*0.46, y+h*0.073);
vertex(x+w*0.51, y+h*0.08);
vertex(x+w*0.49, y+h*0.085);
endShape(CLOSE);
//right eye
beginShape();
vertex(x+w*0.54, y+h*0.08);
vertex(x+w*0.58, y+h*0.073);
vertex(x+w*0.6, y+h*0.079);
vertex(x+w*0.56, y+h*0.085);
endShape(CLOSE);
//mouth
noFill();
stroke(0);
strokeWeight(h*0.005);
beginShape();
vertex(x+w*0.49, y+h*0.132);
vertex(x+w*0.5, y+h*0.13);
vertex(x+w*0.55, y+h*0.13);
vertex(x+w*0.56, y+h*0.132);
endShape();
stroke(145, 97, 0);
line(x+w*0.5, y+h*0.08, x+w*0.53, y+h*0.08);
//hip
stroke(0);
strokeWeight(w/200);
fill(clr);
arc(x+w*0.32, y+h*0.45, w*0.15, h*0.1, -200, -10);
ellipse(x+w*0.3, y+h*0.47, w*0.1, h*0.08);
ellipse(x+w*0.3, y+h*0.47, w*0.05, h*0.04);
noFill();
arc(x+w*0.32, y+h*0.45, w*0.14, h*0.06, -180, -20);
noFill();
//shoulder plates
stroke(150);
strokeWeight(h/50);
arc(x+w*0.44, y+h*0.1, w*0.1, h*0.1, 100, 180);
arc(x+w*0.6, y+h*0.14, w*0.1, h*0.05, 40, 90);
//shoulder hole
stroke(50);
strokeWeight(w/40);
arc(x+w*0.225, y+h*0.17, w*0.2, h*0.1, 20, 100);
//hand
strokeWeight(w/200);
arc(x+w*0.2, y+h*0.15, w*0.2, h*0.08, -10, 170);
//thumb
fill(clr);
arc(x+w*0.3, y+h*0.13, w*0.15, h*0.02, -90, 90);
strokeWeight(w/100);
noFill();
//right shoulder
arc(x+w*0.65, y+h*0.21, w*0.1, h*0.1, -70, 0);
//left leg
arc(x+w*0.4, y+h*0.55, w*0.19, h*0.15, -100, 0);
//front body plates
stroke(bronze);
noFill();
strokeWeight(w/20);
arc(x+w*0.45, y+h*0.35, w*0.09, h*0.15, 200, 260);
stroke(50, 0, 0);
strokeWeight(h/250);
arc(x+w*0.33, y+h*0.28, w*0.29, h*0.2, -90, 0);
arc(x+w*0.7, y+h*0.28, w*0.1, h*0.2, 180, 260);
arc(x+w*0.565, y+h*0.28, w*0.17, h*0.02, -180, 0);
arc(x+w*0.565, y+h*0.275, w*0.15, h*0.05, 0, 180);
arc(x+w*0.56, y+h*0.34, w*0.25, h*0.06, 40, 160);
arc(x+w*0.56, y+h*0.38, w*0.2, h*0.05, 0, 150);
arc(x+w*0.56, y+h*0.42, w*0.17, h*0.04, 20, 150);
arc(x+w*0.55, y+h*0.45, w*0.18, h*0.04, 20, 160);
arc(x+w*0.47, y+h*0.35, w*0.07, h*0.14, 180, 270);
arc(x+w*0.43, y+h*0.42, w*0.1, h*0.14, -85, 30);
arc(x+w*0.69, y+h*0.46, w*0.1, h*0.2, 183, 230);
strokeWeight(w/50);
stroke(bronze);
arc(x+w*0.57, y+h*0.415, w*0.27, h*0.04, 140, 170);
arc(x+w*0.56, y+h*0.444, w*0.27, h*0.04, 140, 170);
fill(255, 0, 0);
//left hand reactor
reactor(x+w*0.2, y+h*0.14, w*0.09, h*0.045, frameCount);
//right hand reactor
reactor(x+w*0.8, y+h*0.44, w*0.07, h*0.04, frameCount+10000);
//arc reactor
reactor(x+w*0.56, y+h*0.22, w*0.12, h*0.06, frameCount+200000);
//right fingers
stroke(40);
strokeWeight(w/80);
fill(clr);
arc(x+w*0.77, y+h*0.45, w*0.06, h*0.05, 90, 180);
arc(x+w*0.805, y+h*0.45, w*0.06, h*0.05, 90, 180);
arc(x+w*0.84, y+h*0.445, w*0.06, h*0.05, 90, 180);
arc(x+w*0.88, y+h*0.44, w*0.06, h*0.05, 93, 180);
arc(x+w*0.87, y+h*0.44, w*0.06, h*0.05, -40, 40);
//leg plates
fill(bronze);
noStroke();
beginShape();
vertex(x+w*0.4, y+h*0.56);
vertex(x+w*0.32, y+h*0.58);
vertex(x+w*0.3, y+h*0.65);
vertex(x+w*0.27, y+h*0.68);
vertex(x+w*0.25, y+h*0.75);
vertex(x+w*0.3, y+h*0.72);
vertex(x+w*0.4, y+h*0.74);
vertex(x+w*0.405, y+h*0.74);
vertex(x+w*0.425, y+h*0.7);
endShape();
beginShape();
vertex(x+w*0.64, y+h*0.61);
vertex(x+w*0.66, y+h*0.65);
vertex(x+w*0.64, y+h*0.67);
vertex(x+w*0.64, y+h*0.67);
vertex(x+w*0.66, y+h*0.75);
vertex(x+w*0.69, y+h*0.71);
vertex(x+w*0.755, y+h*0.69);
vertex(x+w*0.76, y+h*0.66);
vertex(x+w*0.75, y+h*0.6);
endShape();
fill(180);
//left leg
noStroke();
beginShape();
vertex(x+w*0.36, y+h*0.55);
vertex(x+w*0.33, y+h*0.65);
vertex(x+w*0.34, y+h*0.7);
vertex(x+w*0.42, y+h*0.72);
vertex(x+w*0.49, y+h*0.57);
vertex(x+w*0.42, y+h*0.54);
endShape(CLOSE);
//right leg
beginShape();
vertex(x+w*0.71, y+h*0.54);
vertex(x+w*0.75, y+h*0.56);
vertex(x+w*0.75, y+h*0.57);
vertex(x+w*0.76, y+h*0.65);
vertex(x+w*0.75, y+h*0.68);
vertex(x+w*0.70, y+h*0.69);
vertex(x+w*0.65, y+h*0.59);
endShape(CLOSE);
stroke(bronze);
strokeWeight(w/50);
line(x+w*0.45, y+h*0.56, x+w*0.4, y+h*0.66);
};
ironMan(t-30, 20, 60, 120);
stroke(100, 148, 100);
fill(255, 255, 255);
ellipse(t-18,35, 15,15);
fill(0, 191, 0);
arc(t-18, 35, 15, 15, 100, 315);
line(t-18,35, t-12,30);
fill(133, 219, 245);
ellipse(t-18,35, 7,7);
}
// Cyborg
if (trainerID === 38){
//The scientist.
//Neck.
fill(181, 144, 105);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(110, 109, 109);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(110, 110, 110);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(77, 77, 77);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The uniform.
stroke(194, 186, 186);
fill(117, 117, 117);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
endShape(CLOSE);
fill(122, 122, 122);
beginShape();
vertex(t-1, 66);
vertex(t, 115);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
//The green ball.
stroke(100, 148, 100);
fill(255, 255, 255);
ellipse(t-16,73, 15,15);
fill(0, 191, 0);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(133, 219, 245);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(255, 233, 178);
ellipse(t+3,42, 40,40);
//Hands.
fill(166, 166, 166);
ellipse(t-20,80, 15,15);
fill(255, 233, 178);
ellipse(t+35,100, 15,15);
fill(166, 166, 166);
ellipse(t+9,42,27,35);
//Eyes.
noStroke();
fill(0, 61, 135);
ellipse(t-9,44, 4,6);
fill(255, 0, 0);
ellipse(t+2,44, 7,10);
}
// Click
if (trainerID === 39){
//Neck.
fill(156, 150, 145);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(115, 115, 115);
stroke(130, 130, 130);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(107, 107, 107);
rect(t-20, 67, 19, 35, 10);
//Shoes.
noStroke();
fill(77, 77, 77);
arc(t-1, 133, 20, 15, 180, 360);
arc(t+26, 132, 20, 15, 180, 360);
rect(t+8, 129, 25, 3);
rect(t+-17, 130, 20, 3);
//Hand
fill(117, 117, 117);
rect(t+20,96, 15,15, 5);
//The uniform.
stroke(107, 107, 107);
fill(128, 128, 128);
beginShape();
vertex(t+-5, 66);
vertex(t+16, 66);
vertex(t+28, 114);
vertex(t+7, 114);
endShape(CLOSE);
beginShape();
vertex(t-1, 67);
vertex(t+6, 113);
vertex(t-21, 114);
vertex(t-9, 68);
endShape(CLOSE);
fill(84, 84, 84);
fill(194, 194, 194);
rect(t+-11, 67, 27, 5, 2);
rect(t+-9, 71, 23, 17);
fill(0, 131, 212);
rect(t+-7, 74, 5, 10, 5);
fill(64, 64, 64);
rect(t+0, 74, 12, 11, 2);
//The head.
strokeWeight(2);
stroke(74, 74, 74);
fill(0, 131, 212);
//line(103, 29, 121, 11);
strokeWeight(1);
stroke(117, 117, 117);
fill(117, 117, 117);
rect(t+-17,26, 35, 35, 6);
fill(158, 158, 158);
rect(t+9, 26, 10, 10, 2);
//Other Hand.
strokeWeight(2);
stroke(74, 74, 74);
fill(0, 131, 212);
//ellipse(119, 11, 10, 10);
stroke(117, 117, 117);
strokeWeight(1);
fill(117, 117, 117);
rect(t+-28,99, 15,15, 5);
//Eyes.
noStroke();
fill(0, 110, 235);
rect(t-8,40, 4,6);
rect(t+2,40, 4,6);
}
// Zombie
if (trainerID === 40){
//Neck.
fill(181, 144, 105);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(117, 108, 105);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(230, 230, 230);
rect(t-5, 67, 19, 35);
fill(255, 0, 0);
//Shoes.
noStroke();
fill(77, 77, 77);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The uniform.
stroke(194, 186, 186);
fill(153, 107, 0);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
endShape(CLOSE);
fill(153, 107, 0);
beginShape();
vertex(t-1, 66);
vertex(t, 115);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(89, 161, 0);
ellipse(t+2,55, 40,40);
//Hands.
ellipse(t-22,110, 15,15);
ellipse(t+28,110, 15,15);
//Brain
fill(255, 107, 253);
//Eyes.
noStroke();
fill(171, 0, 0);
ellipse(t-9,57, 4,6);
ellipse(t+2,57, 4,6);
}
// Circle Programming Guy
if (trainerID === 41){
//Neck.
fill(181, 144, 105);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(117, 108, 105);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(0, 89, 36);
rect(t-5, 67, 19, 35);
image(getImage("avatars/leaf-yellow"), t-5, 70, 20, 20);
fill(255, 237, 237);
text("KA", t-5, 90, 20, 20);
//Shoes.
noStroke();
fill(77, 77, 77);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The uniform.
stroke(194, 186, 186);
fill(235, 235, 235);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
endShape(CLOSE);
fill(255, 255, 255);
beginShape();
vertex(t-1, 66);
vertex(t, 115);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
//The green ball.
stroke(100, 148, 100);
fill(255, 255, 255);
ellipse(t-16,73, 15,15);
fill(0, 191, 0);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(133, 219, 245);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(255, 233, 178);
ellipse(t+3,42, 40,40);
//Hands.
ellipse(t-20,80, 15,15);
ellipse(t+35,100, 15,15);
fill(107, 92, 23);
beginShape();
curveVertex(t+20, 50);
curveVertex(t+20, 50);
curveVertex(t+23, 50);
curveVertex(t+25, 40);
curveVertex(t+24, 35);
curveVertex(t+20, 30);
curveVertex(t+10, 23);
curveVertex(t+5, 22);
curveVertex(t-10, 25);
curveVertex(t-15, 35);
curveVertex(t, 35);
curveVertex(t+10, 40);
curveVertex(t+20, 50);
endShape(CLOSE);
//Eyes.
noStroke();
fill(0, 61, 135);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
}
// Eggplantia.. because why not?
if (trainerID === 42){
//Hair.
noStroke();
fill(0, 0, 0);
beginShape();
vertex(t+-29, 35);
vertex(t-22, 20);
vertex(t+-4, 13);
vertex(t+22, 17);
vertex(t+35, 34);
vertex(t+44, 76);
vertex(t+37, 103);
vertex(t+-22, 63);
vertex(t+-6, 65);
vertex(t-20, 65);
endShape(CLOSE);
//Neck.
fill(150, 125, 204);
noStroke();
quad(t+13, 67, t+2, 67, t-0, 60, t+8, 60);
//The head.
strokeWeight(1);
stroke(141, 0, 235);
fill(185, 159, 224);
ellipse(t+3,42, 40,40);
//Hair on the face.
noStroke();
fill(0);
triangle(t-19, 18, t+27, 53, t+27, 24);
//Clothing
strokeWeight(1);
stroke(110);
fill(193);
quad(t+-3, 68, t+-17, 127, t+58, 130, t+14, 65);
//Belt.
noFill();
strokeWeight(3);
bezier(t+37, 95, t+53, 46, t+39, 112, t+-8, 93);
//Hands.
strokeWeight(1);
stroke(141, 0, 235);
fill(185, 159, 224);
ellipse(t-15,83, 15,15);
ellipse(t+39,85, 20,20);
//Eyes.
noStroke();
fill(255);
ellipse(t-9,46, 5,4);
ellipse(t+2,46, 6,4);
}
// Dr.X
if (trainerID === 43){
//Neck.
fill(0, 189, 26);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(42);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(0, 209, 36);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(1);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The uniform.
stroke(0);
strokeWeight(1);
fill(42);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
endShape(CLOSE);
fill(52);
beginShape();
vertex(t-1, 66);
vertex(t, 115);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
//The green ball.
stroke(100, 148, 100);
fill(0);
ellipse(t-16,73, 15,15);
fill(0, 230, 0);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(133, 219, 245);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(0);
fill(41, 41, 41);
ellipse(t+3,42, 40,40);
//Hands.
ellipse(t-20,80, 15,15);
ellipse(t+35,100, 15,15);
//Eyes.
noStroke();
fill(150);
//ellipse(t-9,44, 4,6);
arc(t+2,44, 6,7, -20, 160);
stroke(0,255,0);
strokeWeight(3);
line(t-4,40,t-12,50);
line(t-12,40,t-4,50);
}
// Darth Cyber
if (trainerID === 44){
//Neck.
fill(80);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(20);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(100);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(1);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The uniform.
stroke(50);
strokeWeight(1);
fill(42);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
endShape(CLOSE);
fill(52);
beginShape();
vertex(t-1, 66);
vertex(t, 115);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
//The head.
strokeWeight(1);
stroke(0);
fill(100);
//ellipse(t+3,42, 40,40);
rect(t-16.5,22,38,40, 5);
//Hands.
ellipse(t-18,80, 15,15);
ellipse(t+35,100, 15,15);
//Eyes.
noStroke();
fill(100);
//ellipse(t-9,44, 4,6);
ellipse(t+7,44, 6,7);
stroke(250,0,0);
strokeWeight(5);
line(t+18,30,t+3,43);
line(t-12,30,t+3,43);
//light saber
strokeWeight(8);
stroke(0);
line(t+30,110,t+80,10);
strokeWeight(6);
stroke(30);
line(t+30,110,t+40,90);
stroke(255,0,0);
line(t+40,90,t+80,10);
}
// Leafers Man
if (trainerID === 45){
//Back Spikes
imageMode(CENTER);
pushMatrix();
translate(t+15,86);
rotate(60);
image(getImage("avatars/leafers-ultimate"),1,0,80,60);
popMatrix();
imageMode(CORNER);
fill(109, 159, 56);
noStroke();
pushMatrix();
translate(t-200,-140);
beginShape();
curveVertex(244, 256);
curveVertex(241, 254);
curveVertex(235, 247);
curveVertex(237, 241);
curveVertex(254, 237);
curveVertex(259, 230);
curveVertex(259, 247);
curveVertex(250, 256);
endShape(CLOSE);
fill(120, 166, 72);
beginShape();
curveVertex(215, 248);
curveVertex(207, 241);
curveVertex(215, 224);
curveVertex(222, 240);
curveVertex(240, 246);
curveVertex(254, 241);
curveVertex(243, 251);
curveVertex(222, 249);
endShape(CLOSE);
fill(141, 191, 88);
beginShape();
curveVertex(221, 245);
curveVertex(226, 245);
curveVertex(220, 242);
curveVertex(219, 234);
curveVertex(235, 245);
curveVertex(253, 241);
curveVertex(242, 249);
curveVertex(227, 246);
endShape(CLOSE);
popMatrix();
//Spikes Behind
pushMatrix();
translate(t-167,-165);
noStroke();
fill(133, 186, 84);
beginShape();
curveVertex(184, 202);
curveVertex(179, 203);
curveVertex(182, 199);
curveVertex(182, 196);
curveVertex(184, 192);
curveVertex(186, 187);
curveVertex(190, 184);
curveVertex(203, 183);
curveVertex(194, 191);
curveVertex(189, 199);
endShape(CLOSE);
fill(104, 143, 66);
beginShape();
curveVertex(180, 201);
curveVertex(174, 202);
curveVertex(170, 195);
curveVertex(170, 201);
curveVertex(172, 191);
curveVertex(178, 187);
curveVertex(183, 183);
curveVertex(195, 183);
curveVertex(191, 188);
curveVertex(183, 197);
endShape(CLOSE);
popMatrix();
//Spikes Behind
pushMatrix();
translate(t-175,-175);
noStroke();
fill(133, 186, 84);
beginShape();
curveVertex(184, 202);
curveVertex(179, 203);
curveVertex(182, 199);
curveVertex(182, 196);
curveVertex(184, 192);
curveVertex(186, 187);
curveVertex(190, 184);
curveVertex(203, 183);
curveVertex(194, 191);
curveVertex(189, 199);
endShape(CLOSE);
fill(104, 143, 66);
beginShape();
curveVertex(180, 201);
curveVertex(174, 202);
curveVertex(170, 195);
curveVertex(170, 201);
curveVertex(172, 191);
curveVertex(178, 187);
curveVertex(183, 183);
curveVertex(195, 183);
curveVertex(191, 188);
curveVertex(183, 197);
endShape(CLOSE);
popMatrix();
//The neck.
noStroke();
fill(117, 163, 74);
quad(t+-6, 62, t+6, 62, t+5, 55, t+-5, 55);
//The left hand. (Your left, not his :P)
strokeWeight(1.5);
stroke(117, 163, 74);
fill(142, 197, 93);
ellipse(t-16,90, 15,15);
strokeWeight(1);
//Pants.
beginShape();
vertex(t-13,95);
vertex(t-18,115);
vertex(t-16,130);
vertex(t,130);
vertex(t-3,115);
vertex(t+1,95);
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+15,95);
endShape();
//The shirt
beginShape();
vertex(t-16,105);
vertex(t-16,87);
vertex(t+-15,65);
vertex(t+-9,61);
vertex(t+11,61);
vertex(t+15, 65);
vertex(t+18, 87);
vertex(t+16, 105);
endShape(CLOSE);
strokeWeight(2);
stroke(142, 197, 93);
line(t+15,105,t-15,105);
//Head.
strokeWeight(2);
stroke(117, 163, 74);
fill(142, 197, 93);
ellipse(t,39, 40,40);
rectMode(CORNER);
//The right hand. (Your right, not his :P.)
ellipse(t+7,78, 15,15);
//The eyes.
fill(1, 94, 9);
noStroke();
arc(t-10, 45, 7, 10,30,210);
arc(t, 45, 7, 10,-30,150);
//Shoes
noStroke();
fill(117, 163, 74);
arc(t+-14, 130, 15, 5, 180, 360);
arc(t+13, 130, 13, 5, 180, 360);
rect(t+-22, 130, 22, 3, 1);
rect(t+5, 130, 16, 3, 1);
beginShape();
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+20,110);
endShape();
quad(t-19,115,t-17,130,t,130,t-2,110);
//The neck again.
fill(125, 176, 77);
ellipse(t, 62, 12, 7);
//Spikes Front
fill(133, 186, 84);
pushMatrix();
translate(t-180,-170);
beginShape();
curveVertex(174, 195);
curveVertex(171, 205);
curveVertex(167, 202);
curveVertex(167, 187);
curveVertex(175, 175);
curveVertex(191, 167);
curveVertex(183, 178);
curveVertex(178, 190);
endShape(CLOSE);
fill(117, 163, 74);
beginShape();
curveVertex(171, 196);
curveVertex(170, 204);
curveVertex(179, 200);
curveVertex(183, 193);
curveVertex(186, 184);
curveVertex(188, 172);
curveVertex(182, 179);
curveVertex(177, 190);
endShape(CLOSE);
popMatrix();
}
// Piceratops Man
if (trainerID === 46){
//Tail
noStroke();
pushMatrix();
translate(t+200,-180);
scale(-1,1);
fill(140, 38, 38);
beginShape();
curveVertex(231, 295);
curveVertex(150, 263);
curveVertex(163, 276);
curveVertex(173, 280);
curveVertex(183, 281);
curveVertex(199, 283);
curveVertex(202, 278);
curveVertex(187, 274);
curveVertex(173, 273);
curveVertex(157, 270);
endShape(CLOSE);
translate(0,-5);
fill(212, 68, 68);
beginShape();
curveVertex(231, 295);
curveVertex(150, 268);
curveVertex(163, 278);
curveVertex(173, 280);
curveVertex(183, 281);
curveVertex(199, 283);
curveVertex(202, 278);
curveVertex(187, 274);
curveVertex(173, 273);
curveVertex(157, 270);
endShape(CLOSE);
popMatrix();
//Wing Light
pushMatrix();
translate(t-301,-368);
scale(1.5,1.5);
fill(186, 61, 61);
beginShape();
curveVertex(220, 298);
curveVertex(221, 291);
curveVertex(196, 295);
curveVertex(188, 299);
curveVertex(179, 296);
curveVertex(173, 295);
curveVertex(162, 288);
curveVertex(152, 286);
curveVertex(169, 280);
curveVertex(208, 289);
curveVertex(233, 276);
curveVertex(249, 277);
curveVertex(243, 281);
curveVertex(237, 288);
curveVertex(234, 292);
curveVertex(229, 293);
endShape(CLOSE);
//Wing Dark
translate(0,2);
fill(140, 33, 33);
beginShape();
curveVertex(220, 298);
curveVertex(221, 291);
curveVertex(196, 295);
curveVertex(188, 299);
curveVertex(179, 296);
curveVertex(173, 295);
curveVertex(162, 288);
curveVertex(152, 285);
curveVertex(169, 280);
curveVertex(208, 289);
curveVertex(233, 276);
curveVertex(249, 275);
curveVertex(243, 281);
curveVertex(237, 288);
curveVertex(234, 292);
curveVertex(229, 293);
endShape(CLOSE);
popMatrix();
//Wing Line Thingys
stroke(115, 9, 9);
line(t-40,70,t-40,76);
line(t+45,68,t+45,72);
//The neck.
noStroke();
fill(219, 61, 61);
quad(t+-6, 62, t+6, 62, t+5, 55, t+-5, 55);
//Pants.
beginShape();
vertex(t-13,95);
vertex(t-18,115);
vertex(t-16,130);
vertex(t,130);
vertex(t-3,115);
vertex(t+1,95);
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+15,95);
endShape();
//The shirt
beginShape();
vertex(t-16,105);
vertex(t-16,87);
vertex(t+-15,65);
vertex(t+-9,61);
vertex(t+11,61);
vertex(t+15, 65);
vertex(t+18, 87);
vertex(t+16, 105);
endShape(CLOSE);
//Just Some Fixes
strokeWeight(2);
stroke(219, 61, 61);
line(t+15,105,t-15,105);
//Head.
strokeWeight(2);
stroke(163, 42, 42);
fill(219, 61, 61);
ellipse(t,39, 40,40);
rectMode(CORNER);
//The left hand. (Your left, not his :P.)
ellipse(t-13,90, 15,15);
//The right hand. (Your right, not his :P)
strokeWeight(1.5);
stroke(163, 42, 42);
fill(219, 61, 61);
ellipse(t+10,78, 15,15);
strokeWeight(1);
pushMatrix();
translate(t-102,2);
noStroke();
//Head Spikes
beginShape();
curveVertex(103, 28);
curveVertex(100, 35);
curveVertex(88, 37);
curveVertex(81, 33);
curveVertex(85, 18);
curveVertex(87, 22);
curveVertex(96, 7);
curveVertex(100, 16);
curveVertex(111, 9);
curveVertex(113, 21);
curveVertex(124, 16);
curveVertex(121, 31);
curveVertex(130, 33);
curveVertex(115, 49);
curveVertex(111, 44);
curveVertex(109, 33);
endShape(CLOSE);
popMatrix();
//The eyes.
fill(61, 6, 6);
noStroke();
arc(t-10, 45, 7, 10,30,210);
arc(t, 45, 7, 10,-30,150);
//Shoes
noStroke();
fill(163, 42, 42);
arc(t+-14, 130, 15, 5, 180, 360);
arc(t+13, 130, 13, 5, 180, 360);
rect(t+-22, 130, 22, 3, 1);
rect(t+5, 130, 16, 3, 1);
beginShape();
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+20,110);
endShape();
quad(t-19,115,t-17,130,t,130,t-2,110);
//The neck again.
fill(189, 56, 56);
ellipse(t, 62, 12, 7);
}
// Aqualine man
if (trainerID === 47){
//Wings
pushMatrix();
translate(t-180,-135);
noStroke();
fill(81, 115, 183);
beginShape();
curveVertex(224, 219);
curveVertex(214, 221);
curveVertex(203, 219);
curveVertex(191, 214);
curveVertex(185, 206);
curveVertex(184, 200);
curveVertex(182, 186);
curveVertex(195, 176);
curveVertex(212, 163);
curveVertex(232, 172);
curveVertex(224, 176);
curveVertex(221, 188);
curveVertex(237, 191);
curveVertex(249, 199);
curveVertex(240, 200);
curveVertex(233, 214);
endShape(CLOSE);
translate(-3,2);
fill(138, 212, 241);
beginShape();
curveVertex(214, 193);
curveVertex(211, 193);
curveVertex(199, 203);
curveVertex(183, 209);
curveVertex(180, 201);
curveVertex(187, 199);
curveVertex(198, 198);
curveVertex(213, 186);
curveVertex(227, 179);
curveVertex(244, 180);
curveVertex(252, 186);
curveVertex(254, 197);
curveVertex(248, 195);
curveVertex(242, 195);
curveVertex(228, 187);
curveVertex(216, 191);
endShape(CLOSE);
beginShape();
curveVertex(202, 177);
curveVertex(199, 181);
curveVertex(193, 187);
curveVertex(187, 194);
curveVertex(181, 198);
curveVertex(180, 195);
curveVertex(187, 188);
curveVertex(193, 176);
curveVertex(202, 163);
curveVertex(222, 160);
curveVertex(235, 170);
curveVertex(226, 171);
curveVertex(219, 166);
curveVertex(210, 167);
curveVertex(206, 169);
curveVertex(204, 173);
endShape(CLOSE);
popMatrix();
//The neck.
noStroke();
fill(74, 161, 144);
quad(t+-6, 62, t+6, 62, t+5, 55, t+-5, 55);
//The left hand. (Your left, not his :P)
strokeWeight(1.5);
stroke(74, 161, 154);
fill(138, 212, 241);
ellipse(t-16,90, 15,15);
strokeWeight(1);
//Pants.
beginShape();
vertex(t-13,95);
vertex(t-18,115);
vertex(t-16,130);
vertex(t,130);
vertex(t-3,115);
vertex(t+1,95);
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+15,95);
endShape();
//The shirt
beginShape();
vertex(t-16,105);
vertex(t-16,87);
vertex(t+-15,65);
vertex(t+-9,61);
vertex(t+11,61);
vertex(t+15, 65);
vertex(t+18, 87);
vertex(t+16, 105);
endShape(CLOSE);
strokeWeight(2);
stroke(138, 212, 241);
line(t+16,105,t-16,105);
//Head.
strokeWeight(2);
stroke(74, 161, 154);
fill(138, 212, 241);
ellipse(t,39, 40,40);
rectMode(CORNER);
//The right hand. (Your right, not his :P.)
ellipse(t+7,78, 15,15);
//The eyes.
fill(2, 69, 92);
noStroke();
arc(t-10, 45, 7, 10,30,210);
arc(t, 45, 7, 10,-30,150);
//Shoes
noStroke();
fill(74, 161, 154);
arc(t+-14, 130, 15, 5, 180, 360);
arc(t+13, 130, 13, 5, 180, 360);
rect(t+-22, 130, 22, 3, 1);
rect(t+5, 130, 16, 3, 1);
beginShape();
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+20,110);
endShape();
quad(t-19,115,t-17,130,t,130,t-2,110);
//The neck again.
fill(120, 189, 214);
ellipse(t, 62, 12, 7);
pushMatrix();
translate(t-163,-150);
fill(81, 115, 183);
beginShape();
curveVertex(169, 195);
curveVertex(165, 180);
curveVertex(166, 180);
curveVertex(162, 177);
curveVertex(156, 164);
curveVertex(170, 140);
curveVertex(165, 157);
curveVertex(166, 170);
curveVertex(168, 176);
curveVertex(168, 179);
endShape(CLOSE);
translate(4,0);
fill(100, 132, 196);
beginShape();
curveVertex(169, 195);
curveVertex(165, 180);
curveVertex(166, 180);
curveVertex(162, 177);
curveVertex(156, 164);
curveVertex(170, 140);
curveVertex(165, 157);
curveVertex(166, 170);
curveVertex(168, 176);
curveVertex(168, 179);
endShape(CLOSE);
beginShape();
curveVertex(172, 192);
curveVertex(162, 185);
curveVertex(166, 180);
curveVertex(172, 175);
curveVertex(175, 166);
curveVertex(178, 175);
curveVertex(175, 184);
endShape(CLOSE);
fill(138, 212, 241);
beginShape();
curveVertex(152, 190);
curveVertex(144, 170);
curveVertex(156, 149);
curveVertex(170, 140);
curveVertex(156, 156);
curveVertex(152, 174);
curveVertex(161, 178);
curveVertex(170, 174);
curveVertex(174, 164);
curveVertex(174, 178);
curveVertex(165, 186);
curveVertex(159, 185);
curveVertex(153, 185);
curveVertex(148, 181);
curveVertex(143, 181);
curveVertex(143, 178);
endShape(CLOSE);
popMatrix();
}
// Starky Man
if (trainerID === 48){
//horn
pushMatrix();
translate(t-205,-135);
fill(189, 189, 161);
noStroke();
beginShape();
curveVertex(190, 163);
curveVertex(194, 164);
curveVertex(191, 171);
curveVertex(175, 161);
curveVertex(169, 136);
curveVertex(172, 142);
curveVertex(178, 154);
curveVertex(187, 161);
endShape(CLOSE);
popMatrix();
//Halo
noFill();
strokeWeight(3);
stroke(255, 213, 0);
ellipse(t,15,20,5);
strokeWeight(2);
//The neck.
noStroke();
fill(117, 163, 74);
quad(t+-6, 62, t+6, 62, t+5, 55, t+-5, 55);
//The left hand. (Your left, not his :P)
strokeWeight(1.5);
stroke(70, 53, 65);
fill(126, 116, 121);
ellipse(t-16,90, 15,15);
strokeWeight(1);
noStroke();
fill(99, 92, 96);
pushMatrix();
translate(t-200,-140);
beginShape();
curveVertex(237, 217);
curveVertex(230, 220);
curveVertex(223, 228);
curveVertex(215, 235);
curveVertex(210, 236);
curveVertex(209, 232);
curveVertex(213, 230);
curveVertex(218, 227);
curveVertex(228, 216);
curveVertex(232, 207);
curveVertex(226, 203);
curveVertex(228, 193);
curveVertex(228, 181);
curveVertex(233, 188);
curveVertex(236, 201);
curveVertex(236, 208);
endShape(CLOSE);
popMatrix();
//Pants.
stroke(70, 53, 65);
fill(126, 116, 121);
beginShape();
vertex(t-13,95);
vertex(t-18,115);
vertex(t-16,130);
vertex(t,130);
vertex(t-3,115);
vertex(t+1,95);
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+15,95);
endShape();
//The shirt
beginShape();
vertex(t-16,105);
vertex(t-16,87);
vertex(t+-15,65);
vertex(t+-9,61);
vertex(t+11,61);
vertex(t+15, 65);
vertex(t+18, 87);
vertex(t+16, 105);
endShape(CLOSE);
strokeWeight(2);
stroke(126, 116, 121);
line(t+16,105,t-16,105);
//Head.
strokeWeight(2);
stroke(97, 91, 95);
fill(126, 116, 121);
ellipse(t,39, 40,40);
rectMode(CORNER);
//The right hand. (Your right, not his :P.)
ellipse(t,78, 15,15);
//The eyes.
fill(18, 18, 18);
noStroke();
arc(t-10, 45, 7, 10,-30,150);
//Shoes
noStroke();
fill(70, 53, 65);
arc(t+-14, 130, 15, 5, 180, 360);
arc(t+13, 130, 13, 5, 180, 360);
rect(t+-22, 130, 22, 3, 1);
rect(t+5, 130, 16, 3, 1);
beginShape();
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+20,110);
endShape();
quad(t-19,115,t-17,130,t,130,t-2,110);
//The neck again.
fill(105, 98, 101);
ellipse(t, 62, 12, 7);
//Horns
pushMatrix();
translate(5,0);
pushMatrix();
translate(t-204,-142);
fill(33, 33, 31);
noStroke();
beginShape();
curveVertex(190, 163);
curveVertex(194, 164);
curveVertex(191, 171);
curveVertex(175, 161);
curveVertex(169, 136);
curveVertex(172, 142);
curveVertex(178, 154);
curveVertex(187, 161);
endShape(CLOSE);
popMatrix();
pushMatrix();
translate(t-205,-140);
fill(223, 223, 201);
noStroke();
beginShape();
curveVertex(190, 163);
curveVertex(194, 164);
curveVertex(191, 171);
curveVertex(175, 161);
curveVertex(169, 136);
curveVertex(172, 142);
curveVertex(178, 154);
curveVertex(187, 161);
endShape(CLOSE);
popMatrix();
popMatrix();
}
// Prof. Hugo V.
if (trainerID === 49){
//Neck.
fill(207, 181, 153);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(89, 82, 80);
stroke(41, 41, 41);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//otherHand
strokeWeight(2);
stroke(235, 213, 174);
fill(255, 233, 178);
ellipse(t+24,85, 15,15);
noStroke();
//The shirt.
fill(135, 7, 7);
rect(t-7, 67, 23, 35);
//Shoes.
noStroke();
fill(46, 45, 46);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The uniform.
strokeWeight(1.5);
stroke(186, 184, 186);
fill(204, 204, 204);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 125);
endShape(CLOSE);
fill(212, 212, 212);
beginShape();
vertex(t, 66);
vertex(t, 125);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
rectMode(CENTER);
//The head.
strokeWeight(2);
stroke(235, 213, 174);
fill(255, 233, 178);
rect(t+3,38,40,10);
arc(t+3,42, 40,40,0,180);
rectMode(CORNER);
//Hands.
stroke(230, 207, 168);
ellipse(t-15,90, 15,15);
//hair
noStroke();
fill(31, 21, 6);
beginShape();
vertex(t+10,37);
vertex(t-17, 33);
vertex(t-30, 13);
vertex(t-4, 25);
vertex(t-10,13);
vertex(t+25, 33);
vertex(t+25, 39);
endShape(CLOSE);
noStroke();
triangle(t+24, 48, t+25, 38, t+13, 37);
//Eyes.
noStroke();
fill(84, 52, 4);
arc(t-5, 45, 7, 10,30,210);
arc(t+5, 45, 7, 10,-30,150);
noFill();
stroke(26, 8, 8);
strokeWeight(1);
//Vial
noStroke();
fill(255, 0, 0);
(rect)(t-16,82,4,15,0,0,10,10);
fill(247, 163, 163);
(rect)(t-14,82,2,10,0,0,10,10);
fill(138, 65, 10);
rect(t-16,80,4,4);
fill(242, 217, 159);
ellipse(t-16,90,7,10);
}
// Unnamed
if (trainerID === 50){
//The neck.
noStroke();
fill(18, 18, 18);
quad(t+-6, 62, t+6, 62, t+5, 55, t+-5, 55);
//The left hand. (Your left, not his :P)
strokeWeight(1.5);
fill(150, 6, 6);
stroke(255, 0, 0);
ellipse(t-16,90, 15,15);
strokeWeight(1);
noStroke();
fill(255, 0, 0,20);
for(var i = 0; i < 30; i+=3){
ellipse(t-16,90,15+i+sin(frameCount*10)*5,15+i+sin(frameCount*10)*5);
}
//Pants.
stroke(13, 12, 13);
fill(19, 19, 20);
beginShape();
vertex(t-13,95);
vertex(t-18,115);
vertex(t-16,130);
vertex(t,130);
vertex(t-3,115);
vertex(t+1,95);
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+15,95);
endShape();
//The shirt
fill(20, 19, 18);
beginShape();
vertex(t-17,105);
vertex(t-16,87);
vertex(t+-15,65);
vertex(t+-9,61);
vertex(t+11,61);
vertex(t+15, 65);
vertex(t+18, 87);
vertex(t+20, 105);
endShape(CLOSE);
//Spiky Stuff
pushMatrix();
strokeWeight(2);
translate(t,40);
fill(18, 18, 18);
rotate(frameCount*6);
for(var i = 0; i < 360; i+=45){
rotate(i);
quad(25, 12, -10, 0, 20, 0,25,10);
}
popMatrix();
noStroke();
fill(0,0,0,10);
for(var i = 0; i < 40; i +=2){
ellipse(t,39,40+i,40+i);
}
//Head.
fill(18, 18, 18);
ellipse(t,39, 40,40);
noStroke();
//The neck again.
fill(31, 30, 29);
ellipse(t, 62, 12, 7);
rectMode(CORNER);
//The right hand. (Your right, not his :P.)
fill(196, 8, 8);
stroke(138, 4, 4);
ellipse(t+7,78, 15,15);
noStroke();
fill(255, 0, 0,15);
for(var i = 0; i < 30; i+=3){
ellipse(t+7,78,15+i+sin(frameCount*10)*5,15+i+sin(frameCount*10)*5);
}
//The eyes.
fill(255, 0, 0,10);
for(var i = 0; i < 20; i+=3){
ellipse(t-12,45,5+i,5+i);
ellipse(t+4,45,5+i,5+i);
}
fill(250, 13, 13);
noStroke();
arc(t-10, 45, 7, 10,30,210);
arc(t, 45, 7, 10,-30,150);
//Shoes
noStroke();
fill(87, 13, 4);
arc(t+-14, 130, 15, 5, 180, 360);
arc(t+13, 130, 13, 5, 180, 360);
rect(t+-22, 130, 22, 3, 1);
rect(t+5, 130, 16, 3, 1);
beginShape();
vertex(t+4,115);
vertex(t+7,130);
vertex(t+23,130);
vertex(t+20,115);
vertex(t+20,110);
endShape();
quad(t-19,115,t-17,130,t,130,t-2,110);
}
// Flash
if (trainerID === 51){
textSize(15);
text("⚡", t-20, 31);
strokeWeight(1);
stroke(100, 0, 0);
fill(232, 35, 58);
ellipse (t+3,42 ,40,40);
fill(232, 35, 58);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
ellipse(t+4 ,67 , 10,10);
fill(232, 35, 58);
stroke(100, 0, 0);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-16, 100, 37, 15);
noStroke();
fill(0, 0, 0);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
stroke(94, 50, 70);
fill(230, 208, 12);
beginShape();
endShape(CLOSE);
fill(232, 35, 58);
stroke(100, 0, 0);
beginShape();
vertex(t+15, 66);
vertex(t+21, 105);
vertex(t-16, 106);
vertex(t-7, 66);
endShape(CLOSE);
noStroke();
fill(255, 0, 0,100);
noStroke();
fill(69, 30, 7);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
fill(232, 35, 58);
strokeWeight(1);
stroke(100, 0, 0);
ellipse(t+30,95, 15,15);
stroke(0, 0, 0);
fill(255, 255, 255);
ellipse(t-29,73, 15,15);
fill(255, 127, 23);
arc(t-29, 73, 15, 15, 100, 315);
fill(0, 0, 0);
ellipse(t-29,73, 7,7);
fill(232, 35, 58);
strokeWeight(1);
stroke(100, 0, 0);
ellipse(t-30,80, 15,15);
fill(255);
ellipse(t+2, 81, 15, 15);
text("⚡", t-6, 85);
text("⚡", t+9, 35);
fill(0);
}
// Mr. Mist Er
if (trainerID === 52){
noStroke();
fill(0, 0, 0);
//Body
beginShape();
vertex(t,55);
bezierVertex(t+17,60,t-14,55,t-20,87);
vertex(t-6,73);
bezierVertex(t-4,62,t-20,92,t-17,103);
vertex(t-5,77);
bezierVertex(t-4,62,t-20,92,t-7,113);
vertex(t-5,96);
bezierVertex(t-4,62,t-20,92,t+8,125);
bezierVertex(t+14,97,t+9,87,t+5,105);
vertex(t+17,114);
bezierVertex(t+21,97,t+19,87,t+15,96);
vertex(t+26,104);
bezierVertex(t+25,97,t+24,80,t+22,77);
vertex(t+31,87);
bezierVertex(t+27,74,t+34,62,t+17,46);
endShape();
//Head
ellipse(t,42, 40,40);
stroke(176, 176, 176);
strokeWeight(1);
ellipse(t-20,80, 15,15);
ellipse(t+9,80, 15,15);
//eyes
strokeWeight(5);
point(t-8,42);
point(t+2,42);
strokeWeight(1);
}
// FireFace
if (trainerID === 53){
noStroke();
fill(255, 179, 0);
ellipse(t,70,130,130);
fill(204, 88, 0);
arc(t-32,58,34,38,43,232);
arc(t+12,56,55,44,-45,138);
arc(t-8,97,72,48,-14,171);
}
// Bugged Character File
if (trainerID === 54){
//Neck.
fill(9, 138, 0);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(44, 125, 0);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(0, 0, 0);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(0, 0, 0);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
var monospace=createFont("monospace",10);
textFont(monospace);
fill(30, 181, 0);
text("10110",t-14,76);
text("01010",t-13,84);
text("10101",t-12,92);
text("1100",t-10,100);
//The uniform.
stroke(232, 0, 0);
fill(150, 14, 14);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
endShape(CLOSE);
fill(207, 0, 0);
beginShape();
vertex(t-1, 66);
vertex(t, 115);
vertex(t-17, 115);
vertex(t-10, 69);
endShape(CLOSE);
//The bugged ball.
stroke(99, 69, 0);
fill(7, 105, 0);
ellipse(t-16,73, 15,15);
fill(0, 0, 0);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(255, 0, 0);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(255, 153, 0);
fill(0, 0, 0);
ellipse(t+3,42, 40,40);
//Hands.
ellipse(t-20,80, 15,15);
ellipse(t+35,100, 15,15);
//More Text
noStroke();
textFont(monospace);
fill(30, 181, 0);
text("010",t-6,31);
text("100101",t-13,39);
text("1010011",t-16,47);
text("01011",t-11,55);
text("10",t-26,83);
text("01",t+30,103);
//Eyes
fill(255, 115, 0);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
}
// Glitch
if (trainerID === 55){
var monospace=createFont("monospace",10); // <--Important!!!!
//The head
noStroke();
textFont(monospace);
fill(0, 0, 0);
text("010",t-6,31);
text("100101",t-13,39);
text("1 1 011",t-16,47);
text("01011",t-11,55);
text("100",t-5,62);
//Eyes
fill(255, 115, 0);
text("0 0",t-11,47);
//Neck.
fill(9, 138, 0);
text("11",t-1,69);
//Hands
fill(0, 0, 0);
text("10",t-26,83);
text("01",t+30,103);
//The bugged ball.
fill(7, 105, 0);
text("1",t-12,75);
text("0",t-16,80);
fill(0, 0, 0);
text("0",t-20,70);
text("0",t-15,70);
text("1",t-24,76);
line(t-16,73, t-10,68);
fill(255, 0, 0);
text("0",t-18,76);
//Pants.
fill(44, 125, 0);
text("10",t,110);
text("00",t,117);
text("101 01",t-16,123);
//The shirt.
fill(0, 0, 0);
text("11",t-1,77);
text("01",t,86);
text("10",t,94);
text("00",t,102);
//Shoes.
noStroke();
fill(0, 0, 0);
text("110 1011",t-18,131);
/*arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);*/
//The uniform.
fill(150, 14, 14);
text("10",t+9,75);
text("11",t+10,83);
text("00",t+11,91);
text("11",t+12,99);
text("01",t+13,107);
text("00",t+14,115);
fill(207, 0, 0);
text("10",t-11,75);
text("11",t-11,83);
text("00",t-12,91);
text("01",t-12,98);
text("111",t-16,106);
text("010",t-16,113);
}
// Cool Girl
if (trainerID === 56){
//Bit of hair
noStroke();
fill(133, 84, 34);
rect(t-11,55,27,18);
//Neck.
fill(181, 144, 105);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(51, 81, 117);
stroke(77, 77, 77);
beginShape();
vertex(t-15,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
//The shirt.
noStroke();
fill(0, 102, 133);
beginShape();
vertex(t+9, 66);
vertex(t+19, 68);
vertex(t+25, 115);
vertex(t+13, 115);
vertex(t-17, 115);
vertex(t-10, 69);
vertex(t-1, 66);
endShape(CLOSE);
fill(181, 144, 105);
noStroke();
triangle(t+9, 66,t-2, 66,t+2, 77);
//Shoes.
noStroke();
fill(77, 77, 77);
arc(t+24, 129, 12, 8, 180, 360);
rect(t+8, 129, 22, 3);
quad(t+8, 119,t+24, 119,t+23, 131,t+8, 130);
quad(t-17, 119,t-1, 119,t-2, 131,t-14, 130);
stroke(71, 71, 71);
arc(t-10, 133, 20, 15, 180, 360);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(255, 233, 178);
ellipse(t+3,42, 40,40);
//Hair
noStroke();
fill(156, 100, 43);
beginShape();
vertex(t+6,37);
bezierVertex(t+16,36,t+19,46,t+11,77);
vertex(t+18,70);
vertex(t+19,77);
vertex(t+22,70);
vertex(t+25,76);
vertex(t+27,60);
vertex(t+28,67);
bezierVertex(t+29,43,t+29,12,t+10,16);
bezierVertex(t-10,10,t-22,10,t-23,71);
vertex(t-20,65);
vertex(t-17,77);
vertex(t-15,64);
vertex(t-12,76);
vertex(t-10,69);
vertex(t-9,58);
bezierVertex(t-17,50,t-16,44,t-17,41);
vertex(t-14,32);
vertex(t-13,47);
vertex(t-7,35);
vertex(t-7,47);
vertex(t-1,38);
vertex(t+6,37);
endShape();
//The orange ball.
stroke(148, 134, 100);
fill(255, 255, 255);
ellipse(t-16,73, 15,15);
fill(255, 145, 0);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(252, 201, 133);
ellipse(t-16,73, 7,7);
//Hands.
strokeWeight(1);
stroke(173, 147, 106);
fill(255, 233, 178);
ellipse(t-20,80, 15,15);
ellipse(t+35,100, 15,15);
//Eyes.
noStroke();
fill(0, 61, 135);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
}
// Shadow Man
if (trainerID === 57){
//Neck.
fill(0, 0, 0);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(0, 0, 0);
stroke(77, 77, 77);
beginShape();
vertex(t-15,110);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(0, 0, 0);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(0, 0, 0);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The uniform.
stroke(194, 186, 186);
fill(0, 0, 0);
beginShape();
vertex(t+27, 67);
vertex(t+8, 67);
vertex(t+18, 115);
vertex(t+52, 113);
endShape(CLOSE);
fill(0, 0, 0);
beginShape();
vertex(t-1, 66);
vertex(t+1, 112);
vertex(t-21, 111);
vertex(t-18, 65);
endShape(CLOSE);
//The green ball.
stroke(100, 148, 100);
fill(255, 0, 255);
ellipse(t-16,73, 15,15);
fill(0, 0, 0);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(133, 219, 245);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(255, 255, 255);
ellipse(t+3,42, 40,40);
//Hands.
ellipse(t-20,80, 15,15);
ellipse(t+35,100, 15,15);
//Eyes.
noStroke();
fill(255, 0, 0);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
}
// BatMan
if (trainerID === 58){
//Neck.
fill(0);
noStroke();
quad(t+13, 67, t-7, 67, t-7, 60, t+13, 60);
//The cape.
stroke(0);
fill(0);
beginShape();
vertex(t+14, 66);
vertex(t+19, 68);
vertex(t+28, 118);
vertex(t+13, 115);
endShape(CLOSE);
fill(0);
beginShape();
vertex(t-15, 66);
vertex(t, 115);
vertex(t-22, 118);
vertex(t-10, 69);
endShape(CLOSE);
//Pants.
fill(105, 105, 105);
stroke(77, 77, 77);
beginShape();
vertex(t-12,115);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+18,115);
endShape();
noStroke();
fill(50, 50, 50);
rect(t-12, 100, 30, 15);
fill(255, 255, 0);
rect(t-12, 100, 30, 9);
//The shirt.
fill(105, 105, 105);
rect(t-12, 67, 30, 35);
fill(255, 255, 0);
ellipse(t+3, 77, 20, 10);
fill(0);
ellipse(t+3, 77, 8, 8);
triangle(t+3, 77, t+12, 79, t+12, 75);
triangle(t+3, 77, t-6, 79, t-6, 75);
stroke(0);
strokeWeight(1);
line(t-3, 77, t-3, 79);
line(t+7, 77, t+7, 79);
//Shoes.
noStroke();
fill(0);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The green ball.
stroke(100, 148, 100);
fill(255, 255, 255);
ellipse(t-16,73, 15,15);
fill(0, 191, 0);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(13, 186, 169);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(0);
fill(0);
ellipse(t+3,42, 40,40);
triangle(t-9, 14, t-0, 30, t-16, 41);
triangle(t+11, 14, t+17, 30, t-6, 41);
fill(250, 205, 120);
noStroke();
ellipse(t-2, 55, 15, 10);
stroke(0, 0, 0);
line(t-5, 55, t, 55);
//Hands.
fill(0);
ellipse(t-20,80, 15,15);
ellipse(t+25,100, 15,15);
//Eyes.
noStroke();
fill(255, 255, 255);
triangle(t-4, 44, t-11, 30, t-11, 41);
triangle(t+2, 44, t+10, 30, t+10, 40);
}
// Bee
if (trainerID === 59){
//My character.
//Neck.
stroke(140, 0, 156);
fill(176, 0, 176);
ellipse(t+3, 71, 40, 20);
fill(181, 144, 105);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(0, 189, 123);
stroke(0, 158, 90);
beginShape();
vertex(t-11,101);
vertex(t-17,130);
vertex(t-1,130);
vertex(t+0,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+15,100);
endShape();
stroke(173, 147, 106);
fill(255, 233, 178);
quad(t+-18, 130,t, 132,t+0, 122,t+-16, 122);
quad(t+9, 130,t+26, 132,t+20, 122,t+8, 122);
//The shirt.
noStroke();
fill(0, 0, 0);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(61, 61, 61);
arc(t-9, 133, 16, 15, 180, 360);
arc(t+22, 129, 10, 8, 180, 360);
rect(t+8, 129, 19, 3);
//The uniform.
stroke(140, 0, 156);
fill(176, 0, 176);
beginShape();
vertex(t+9, 66);
vertex(t+15, 68);
vertex(t+19, 107);
vertex(t+13, 104);
endShape(CLOSE);
fill(217, 0, 217);
beginShape();
vertex(t-1, 66);
vertex(t+-5, 105);
vertex(t-15, 107);
vertex(t-8, 69);
endShape(CLOSE);
noStroke();
fill(0);
arc(t+-9, 57, 20, 60, 452, 608);
//The green ball.
stroke(100, 148, 100);
fill(255, 255, 255);
ellipse(t-16,73, 15,15);
fill(0, 191, 0);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(133, 219, 245);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(255, 233, 178);
ellipse(t+3,42, 40,40);
fill(0);
noStroke();
arc(t+3, 42, 40, 40, 206, 366);
arc(t+15, 57, 20, 60, 241, 445);
fill(227, 36, 36);
rect(t+11, 40, 7, 5, 5);
//Hands.
strokeWeight(1);
stroke(173, 147, 106);
fill(255, 233, 178);
ellipse(t-20,80, 15,15);
ellipse(t+35, 90, 15,15);
//Eyes.
noStroke();
fill(74, 46, 24);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
stroke(0, 111, 255);
fill(255, 255, 255, 100);
rect(t+-15, 40, 10, 7, 2);
rect(t+-2, 40, 10, 7, 2);
line(t+-4, 43, t+-3, 43);
}
// Doggo
if (trainerID === 60){
//My other character.
//Neck.
fill(200, 151, 104);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
strokeWeight(1);
fill(117, 108, 105);
stroke(77, 77, 77);
beginShape();
vertex(t-10,97);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+16,100);
endShape();
stroke(209, 171, 113);
fill(245, 213, 137);
quad(t+-18, 130,t, 132,t+0, 120,t+-15, 119);
quad(t+9, 130,t+26, 132,t+20, 120,t+8, 121);
noStroke();
//The shirt.
fill(186, 186, 186);
quad(t+21, 103, t+-14, 104, t+-7, 69, t+15, 67);
//Shoes.
stroke(209, 171, 113);
fill(245, 213, 137);
rect(t+8, 129, 25, 3);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 130, 12, 8, 180, 361);
//The green ball.
stroke(100, 148, 100);
fill(255, 255, 255);
ellipse(t-16,73, 15,15);
fill(0, 191, 0);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(133, 219, 245);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(209, 171, 113);
fill(245, 213, 137);
beginShape();
vertex(t+-14, 31);
vertex(t+-7, 11);
vertex(t+23, 40);
endShape();
ellipse(t+3,42, 40,40);
beginShape();
vertex(t+0, 31);
vertex(t+19, 11);
vertex(t+23, 40);
endShape();
pushStyle();
noFill();
strokeWeight(2);
stroke(0);
arc(t+2, 51, 8, 8, 50, 180);
arc(t+-6, 51, 8, 8, 0, 126);
popStyle();
//Hands.
ellipse(t-20,80, 15,15);
ellipse(t+25,88, 15,15);
//Eyes.
noStroke();
fill(0, 61, 135);
ellipse(t-9,44, 4,6);
ellipse(t+2,44, 4,6);
//scarf
fill(255, 138, 138);
stroke(217, 91, 91);
beginShape();
vertex(t+0, 64);
vertex(t+-7, 71);
vertex(t+0, 80);
vertex(t+8, 80);
vertex(t+14, 73);
vertex(t+14, 67);
vertex(t+-1, 67);
endShape();
beginShape();
vertex(t+11, 67);
vertex(t+14, 93);
vertex(t+7, 93);
vertex(t+5, 66);
endShape(CLOSE);
}
// Team Delta Grunt
if (trainerID === 61){
//Neck.
fill(181, 144, 105);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//The cape.
stroke(140, 97, 171);
fill(146, 76, 196);
beginShape();
vertex(t+6, 62);
vertex(t+16, 68);
vertex(t+33, 130);
vertex(t+13, 130);
endShape(CLOSE);
fill(120, 9, 179);
beginShape();
vertex(t-1, 60);
vertex(t, 130);
vertex(t-22, 130);
vertex(t-10, 67);
endShape(CLOSE);
//Pants.
fill(55, 23, 69);
stroke(77, 77, 77);
beginShape();
vertex(t-5,102);
vertex(t-17,130);
vertex(t-2,130);
vertex(t + -1,115);
vertex(t+7,115);
vertex(t+10,130);
vertex(t+25,130);
vertex(t+13,100);
endShape();
noStroke();
//The shirt.
fill(74, 36, 99);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(3, 3, 3);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The green ball.
stroke(136, 84, 179);
fill(255, 255, 255);
ellipse(t-16,73, 15,15);
fill(104, 0, 189);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(135, 199, 245);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(255, 233, 178);
ellipse(t+3,42, 40,40);
fill(97, 64, 14);
stroke(56, 37, 13);
triangle(t - 11, 27, t + -16, 40, t, 35);
stroke(155, 87, 207);
fill(99, 17, 153);
pushMatrix();
translate(t + 6, 40);
rotate(-45);
translate(-t - 6, -40);
ellipse(t + 3, 39, 19, 39);
popMatrix();
arc(t + 3, 42, 40, 40, 218, 413);
//Hands.
fill(235, 229, 162);
stroke(205, 199, 132);
ellipse(t-20,80, 15,15);
ellipse(t+35,100, 15,15);
//Eyes.
noStroke();
fill(0, 61, 135);
ellipse(t-11,44, 4,6);
fill(235, 219, 40);
ellipse(t+2,44, 4,6);
}
// Team Delta Supertrainer
if (trainerID === 62){
//Neck.
fill(181, 144, 105);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//The cape.
stroke(138, 25, 224);
fill(138, 25, 224);
beginShape();
vertex(t+6, 62);
vertex(t+16, 68);
vertex(t+33, 130);
vertex(t+13, 130);
endShape(CLOSE);
fill(120, 9, 179);
beginShape();
vertex(t-1, 60);
vertex(t, 130);
vertex(t-22, 130);
vertex(t-10, 67);
endShape(CLOSE);
//Pants.
fill(0);
stroke(77, 77, 77);
beginShape();
vertex(t-5,102);
vertex(t-17,130);
vertex(t-2,130);
vertex(t + -1,115);
vertex(t+7,115);
vertex(t+10,130);
vertex(t+25,130);
vertex(t+13,100);
endShape();
noStroke();
//The shirt.
fill(48, 6, 66);
rect(t-5, 67, 19, 35);
//Shoes.
noStroke();
fill(150, 0, 163);
arc(t-10, 133, 20, 15, 180, 360);
arc(t+27, 129, 12, 8, 180, 360);
rect(t+8, 129, 25, 3);
//The green ball.
stroke(136, 84, 179);
fill(255, 255, 255);
ellipse(t-16,73, 15,15);
fill(104, 0, 189);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(135, 199, 245);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(99, 17, 153);
ellipse(t+3,42, 40,40);
stroke(155, 87, 207);
fill(99, 17, 153);
//Hands.
fill(235, 229, 162);
stroke(205, 199, 132);
ellipse(t-20,78, 15,15);
ellipse(t+27,100, 15,15);
ellipse(t-15,101, 15,15);
ellipse(t+28,74, 15,15);
//Eyes.
noStroke();
fill(235, 219, 40);
ellipse(t-3,44, 4,6);
ellipse(t+8,44, 4,6);
ellipse(t-12,44, 4,6);
ellipse(t+16,44, 4,6);
}
// Wizard
if (trainerID === 63){
pushMatrix();
scale(0.9,0.9);
translate(t,0);
translate(-25,-15);
noStroke();
//staff
fill(135, 111, 67);
rect(17,62,6,99);
triangle(15,62,30,52,24,62);
triangle(15,62,23,40,24,62);
fill(44, 199, 191);
ellipse(20,57,10,10);
fill(135, 111, 67);
triangle(16,62,11,46,24,63);
//body
fill(150, 148, 144);
rect(40,77,20,40,5);
pushMatrix();
rotate(20);
rect(49,60,20,7);
popMatrix();
rect(57,87,20,7);
fill(207, 195, 140);
//ellipse(80,74,10,10);
ellipse(80,90,10,10);
ellipse(20,74,10,10);
//legs
stroke(112, 108, 112);
fill(130, 128, 122);
rect(40,115,10,37);
rect(49,115,10,37);
stroke(87, 83, 87);
fill(87, 58, 3);
rect(48,150,15,10);
rect(34,150,15,10);
//face
noStroke();
fill(207, 195, 140);
ellipse(50,64,23,30);
fill(0);
ellipse(45,63,3,3);
fill(0);
ellipse(54,63,3,3);
fill(135, 15, 15);
rect(47,70,5,2,5);
fill(94, 90, 80);
triangle(55,74,43,74,50,100);
//hat
fill(150, 148, 144);
stroke(140, 114, 70);
ellipse(50,50,40,15);
noStroke();
triangle(40,50,60,50,60,15);
triangle(70,10,60,30,60,15);
fill(117, 214, 116);
ellipse(86,83,15,15);
fill(255);
arc(86,83,15,15,0,180);
fill(57, 173, 167);
ellipse(86,83,7,7);
popMatrix();
}
// Youngster
if (trainerID === 64){
//Backpack back.
stroke(102, 30, 12);
fill(117, 19, 2);
pushMatrix();
rotate(1);
rect(t-14, 61, 30, 34, 3);
popMatrix();
//Neck.
fill(199, 170, 141);
noStroke();
quad(t+9, 67, t-2, 67, t-1, 60, t+8, 60);
//Right hand.
fill(237, 213, 192);
strokeWeight(2);
stroke(235, 203, 179);
ellipse(t+22, 102, 13, 13);
//Pants.
strokeWeight(1);
fill(41, 77, 138);
stroke(22, 57, 128);
beginShape();
vertex(t-11, 98);
vertex(t-14, 115);
vertex(t-14, 126);
vertex(t-1, 126);
vertex(t-1, 118);
vertex(t+2, 111);
vertex(t+7, 118);
vertex(t+9, 126);
vertex(t+22, 126);
vertex(t+21, 118);
vertex(t+17, 101);
endShape();
//Shoes.
noStroke();
fill(133, 133, 133);
arc(t-11, 127, 14, 6, 180, 360);
rect(t-18, 127, 17, 3);
ellipse(t-11, 130, 14, 3);
arc(t+23, 126, 11, 6, 180, 360);
rect(t+9, 126, 20, 3);
//Shirt
strokeWeight(1);
stroke(173, 173, 173);
fill(194, 194, 194);
beginShape();
vertex(t+9, 66);
vertex(t+17, 68);
vertex(t+21, 71);
vertex(t+23, 76);
vertex(t+17, 77);
vertex(t+18, 100);
vertex(t+5, 101);
vertex(t-12, 100);
vertex(t-11, 75);
vertex(t-14, 77);
vertex(t-16, 78);
vertex(t-15, 72);
vertex(t-13, 69);
vertex(t-1, 66);
vertex(t+3, 67);
endShape(CLOSE);
//Backpack strap.
stroke(148, 0, 0);
strokeWeight(1);
fill(181, 21, 0);
beginShape();
vertex(t+1, 80);
vertex(t-4, 66);
vertex(t-7, 67);
vertex(t-3, 79);
vertex(t-1, 85);
vertex(t-12, 97);
vertex(t-12, 93);
vertex(t-2, 83);
endShape();
//The head.
strokeWeight(2);
stroke(227, 200, 177);
fill(250, 228, 195);
ellipse(t+2.5, 43, 38, 39);
//Left hand.
ellipse(t-3, 81, 15, 15);
//Eyes.
noStroke();
fill(34, 56, 36);
ellipse(t-8, 44, 4, 6);
ellipse(t+1, 44, 4, 6);
fill(255, 255, 255);
ellipse(t-8.5, 43.5, 1.5, 1.5);
ellipse(t+0.5, 43.5, 1.5, 1.5);
//Casual smile.
stroke(184, 159, 136);
strokeWeight(1.5);
noFill();
arc(t-2, 51, 12, 5, 25, 140);
//Eyebrows
noFill();
stroke(66, 32, 6);
strokeWeight(1.5);
arc(t-8, 43, 8, 5, 200, 300);
arc(t+2, 43, 9, 5, 235, 345);
//Hair
fill(105, 48, 17);
noStroke();
pushMatrix();
translate(-100, 0);
beginShape();
vertex(t+123, 44);
vertex(t+119, 42);
vertex(t+115, 38);
vertex(t+110, 39);
vertex(t+100, 36);
vertex(t+93, 38);
vertex(t+90, 37);
vertex(t+87, 39);
vertex(t+82, 40);
vertex(t+83, 32);
vertex(t+87, 27);
vertex(t+90, 25);
vertex(t+100, 22);
vertex(t+110, 23);
vertex(t+117, 26);
vertex(t+122, 33);
endShape(CLOSE);
popMatrix();
noFill();
stroke(77, 37, 18);
arc(t+11, 23, 7, 6, 156, 332);
arc(t+4, 23, 6, 6, 250, 410);
}
// Pirate Kid
if (trainerID === 65){
//Neck.
fill(181, 144, 105);
noStroke();
quad(t+9, 67, t-2, 67, t-0, 60, t+8, 60);
//Pants.
fill(117, 108, 105);
stroke(77, 77, 77);
beginShape();
vertex(t-12,115);
vertex(t-17,130);
vertex(t-2,130);
vertex(t,115);
vertex(t+7,115);
vertex(t+10,130);
vertex(t+23,130);
vertex(t+18,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(0, 89, 36);
rect(t-12, 66, 30, 34);
image(getImage("avatars/leaf-green"), t-5, 70, 20, 20);
fill(255, 237, 237);
text("KA", t-5, 90, 20, 20);
//Shoes.
noStroke();
fill(77, 77, 77);
arc(t-9, 133, 20, 15, 180, 360);
fill(247, 234, 247);
rect(t+8, 129, 25, 3);
//The uniform.
stroke(194, 186, 186);
fill(235, 235, 235);
endShape(CLOSE);
fill(255, 255, 255);
endShape(CLOSE);
//The red ball.
stroke(100, 148, 100);
fill(255, 255, 255);
ellipse(t-16,73, 15,15);
fill(204, 53, 75);
arc(t-16, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(245, 249, 250);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(255, 233, 178);
ellipse(t+3,42, 40,40);
//Hands.
ellipse(t-23,80, 15,15);
ellipse(t+26,84, 15,15);
fill(245, 41, 68);
beginShape();
curveVertex(t+-200, 50);
curveVertex(t+20, 50);
curveVertex(t+23, 50);
curveVertex(t+25, 40);
curveVertex(t+24, 35);
curveVertex(t+20, 30);
curveVertex(t+10, 23);
curveVertex(t+5, 22);
curveVertex(t-10, 25);
curveVertex(t-15, 35);
curveVertex(t, 35);
curveVertex(t+10, 40);
curveVertex(t+20, 50);
endShape(CLOSE);
//Eyes.
noStroke();
fill(132, 184, 131);
ellipse(t-7,44, 6,6);
ellipse(t+7,44, 6,6);
}
// Spellcaster
if (trainerID === 66){
//Neck.
fill(0, 0, 0);
noStroke();
quad(t+10, 75, t-5, 67, t-5, 60, t+11, 60);
//Pants.
fill(0, 0, 0);
stroke(77, 77, 77);
beginShape();
vertex(t-15,103);
vertex(t-17,130);
vertex(t-1,130);
vertex(t,115);
vertex(t+8,115);
vertex(t+9,130);
vertex(t+22,130);
vertex(t+20,115);
endShape();
noStroke();
rect(t-12, 100, 30, 15);
//The shirt.
fill(3, 176, 150);
ellipse(t-48, 63, 15, 19);
fill(7, 10, 9);
rect(t-3, 67, 19, 35);
fill(166, 5, 5);
ellipse(t,12,10,11);
//Shoes.
noStroke();
fill(95, 97, 78);
arc(t-13, 133, 20, 15, 180, 360);
arc(t+27, 129, 13, 11, 180, 365);
rect(t+8, 129, 25, 3);
//The uniform.
stroke(194, 186, 186);
fill(89, 17, 105);
beginShape();
vertex(t+-3, 66);
vertex(t+17, 68);
vertex(t+25, 115);
vertex(t+18, 115);
endShape(CLOSE);
beginShape();
vertex(t-1, 66);
vertex(t, 115);
vertex(t-17, 115);
vertex(t-15, 69);
endShape(CLOSE);
//The green ball.
stroke(100, 148, 100);
fill(8, 4, 8);
ellipse(t-27,73, 15,15);
fill(70, 217, 17);
arc(t-27, 73, 15, 15, 100, 315);
line(t-16,73, t-10,68);
fill(7, 8, 7);
ellipse(t-16,73, 7,7);
//The head.
strokeWeight(1);
stroke(173, 147, 106);
fill(8, 8, 8);
ellipse(t+3,42, 40,40);
fill(148, 127, 10);
noStroke();
rect(t+-10,42,21,-22,-53);
//Hands.
fill(11, 13, 12);
ellipse(t-22,80, 15,15);
ellipse(t+31,88, 15,15);
fill(9, 240, 205);
ellipse(t+-47,62, 10,10);
//eyes
noStroke();
fill(8, 242, 11);
ellipse(t-0,44, 37,6);
ellipse(t+2,44, 4,6);
}
// Avatar Maniac
if (trainerID === 29){
}
strokeWeight(1);
stroke(0);
var change=5;
// Names & Lineups
if(trainerID===1){
trainerName="Lab Assistant Lanny";
loseTalk=95;
if(sleepingKind[0]===1){
trainerLineup=[11,0,0,0];
}
else if(sleepingKind[0]===6){
trainerLineup=[1,0,0,0];
}
else{
trainerLineup=[6,0,0,0];
}
trainerLevel=[6,0,0,0];
}
if(trainerID===2){
trainerName="Shy Boy Willy";
loseTalk=136;
trainerLevel=[round(2.5+(willy*2.5)), round(4.5+(willy*2.5)), round(6.5+(willy*2.5)), round(9.5+(willy*2.5))];
if(willy===0){
trainerLineup=[40,31,27,0];
}
else{
// Avatar 1 --------------------
if(trainerLevel[0]<10){
trainerLineup[0]=31;
}
else if(trainerLevel[0]<15){
trainerLineup[0]=32;
}
else if(trainerLevel[0]<25){
trainerLineup[0]=33;
}
else{
trainerLineup[0]=34;
}
// Avatar 2 --------------------
if(trainerLevel[1]<19){
trainerLineup[1]=40;
}
else{
trainerLineup[1]=41;
}
// Avatar 3 --------------------
if(trainerLevel[2]<10){
trainerLineup[2]=21;
}
else if(trainerLevel[2]<15){
trainerLineup[2]=22;
}
else if(trainerLevel[2]<20){
trainerLineup[2]=23;
}
else if(trainerLevel[2]<25){
trainerLineup[2]=24;
}
else{
trainerLineup[2]=25;
}
// Avatar 3 --------------------
if(trainerLevel[3]<15){
trainerLineup[3]=27;
}
else if(trainerLevel[3]<20){
trainerLineup[3]=28;
}
else if(trainerLevel[3]<25){
trainerLineup[3]=29;
}
else{
trainerLineup[3]=30;
}
}
}
if(trainerID===3){
trainerName="Dojo Student Jimmy";
loseTalk=160;
trainerLineup=[31,42,0,0];
trainerLevel=[7+change,11+change,0,0];
}
if(trainerID===4){
trainerName="Dojo Student Archibald";
loseTalk=160;
trainerLineup=[37,40,17,0];
trainerLevel=[10+change,12+change,11+change,0];
}
if(trainerID===5){
trainerName="Dojo Student Junior";
loseTalk=168;
trainerLineup=[35,7,43,23];
trainerLevel=[7+change,8+change,8+change,10+change];
}
if(trainerID===6){
trainerName="Dojo Student Jerry";
loseTalk=174;
trainerLineup=[8,13,3,41];
trainerLevel=[8+change,9+change,9+change,11+change];
}
if(trainerID===7){
trainerName="Dojo Student Petunia";
loseTalk=182;
trainerLineup=[9,24,43,9];
trainerLevel=[11+(change*2),11+(change*2),9+(change*2),13+(change*2)];
}
if(trainerID===8){
trainerName="Dojo Student Qwerty";
loseTalk=187;
trainerLineup=[38,0,0,0];
trainerLevel=[25+(change*2),0,0,0];
}
if(trainerID===9){
trainerName="Dojo Student Larry";
loseTalk=202;
trainerLineup=[41,39,36,39];
trainerLevel=[12+(change*2),13+(change*2),15+(change*2),17+(change*2)];
}
if(trainerID===10){
trainerName="Apprentice Bob";
loseTalk=219;
trainerLineup=[30,20,25,5];
trainerLevel=[14+(change*3),15+(change*3),17+(change*3),18+(change*3)];
}
if(trainerID===11){
trainerName="Dojo Student Andrew";
loseTalk=265;
trainerLineup=[31,0,0,0];
trainerLevel=[60+(change*3),0,0,0];
}
if(trainerID===12){
trainerName="Science Guy Albert";
loseTalk=262;
trainerLineup=[10,43,0,0];
trainerLevel=[17+(change*3),20+(change*3),0,0];
}
if(trainerID===13){
trainerName="Dojo Student Luke";
loseTalk=269;
trainerLineup=[20,34,0,0];
trainerLevel=[19+(change*3),21+(change*3),0,0];
}
if(trainerID===14){
trainerName="Dojo Student Zack";
loseTalk=276;
trainerLineup=[15,41,44,0];
trainerLevel=[19+(change*3),20+(change*3),18+(change*3),0];
}
if(trainerID===15){
trainerName="Dojo Student Cody";
loseTalk=280;
trainerLineup=[44,39,25,0];
trainerLevel=[18+(change*3),18+(change*3),22+(change*3),0];
}
if(trainerID===16){
trainerName="Science Guy Bill";
loseTalk=288;
trainerLineup=[36,5,15,10];
trainerLevel=[20+(change*3),21+(change*3),23+(change*3),22+(change*3)];
}
if(trainerID===17){
trainerName="The Master";
loseTalk=296;
trainerLineup=[25,44,20,34];
trainerLevel=[23+(change*4),22+(change*4),24+(change*4),25+(change*4)];
}
if(trainerID===18){
trainerName="Master Bob";
loseTalk=324;
trainerLineup=[30,20,25,5];
trainerLevel=[19+(change*4)+(dojo-16)*3, 20+(change*4)+(dojo-16)*3, 22+(change*4)+(dojo-16)*3, 23+(change*4)+(dojo-16)*3];
}
if(trainerID===19){
trainerName="Grand Four Chandler";
loseTalk=344;
trainerLineup=[39,39,39,39];
trainerLevel=[25+(change*5)+(champ*10),26+(change*5)+(champ*10),26+(change*5)+(champ*10),27+(change*5)+(champ*10)];
}
if(trainerID===20){
trainerName="Grand Four Susan";
if(champ<1){
loseTalk=352;
}
else{
loseTalk=425;
}
trainerLineup=[36,15,5,20];
trainerLevel=[28+(change*5)+(champ*10),28+(change*5)+(champ*10),29+(change*5)+(champ*10),30+(change*5)+(champ*10)];
}
if(trainerID===21){
trainerName="Grand Four Violet";
if(champ<1){
loseTalk=380;
}
else{
loseTalk=433;
}
trainerLineup=[43,41,34,25];
trainerLevel=[30+(change*5)+(champ*10),31+(change*5)+(champ*10),31+(change*5)+(champ*10),32+(change*5)+(champ*10)];
}
if(trainerID===22){
trainerName="Grand Four Benjamine";
if(champ<1){
loseTalk=392;
}
else{
loseTalk=442;
}
trainerLineup=[10,30,44,34];
trainerLevel=[33+(change*6)+(champ*10),34+(change*6)+(champ*10),34+(change*6)+(champ*10),37+(change*6)+(champ*10)];
}
if(trainerID===23){
trainerName="Champion, Professor, & Awesome Guy BransfordC";
loseTalk=407;
trainerLineup=[46,46,46,46];
if(champ>0){
trainerLineup[3]=45;
}
trainerLevel=[37+(change*8)+(champ*13),38+(change*8)+(champ*13),39+(change*8)+(champ*13),41+(change*8)+(champ*13)];
}
if(trainerID===24){
trainerName="Awesome Guy Skytobelow12™ #TGT";
loseTalk=507;
trainerLineup=[41,15,44,20];
trainerLevel=[80+((champ-1)*13),90+((champ-1)*15),84+((champ-1)*13),87+((champ-1)*13)];
}
// Battle Tower Trainers
if(trainerID > 24){
var p = newTrainers;
var tName = "";
trainerID = p + 13;
x = lastCom[0];
y = lastCom[1];
direction = lastCom[2];
lastPage = lastCom[3];
if (p === 12) {
tName = "Nipe";
designer = "Anthony Mullan #Revive\n@JoAnJnThGb";
} else if (p === 13) {
tName = "Psychic";
designer = "POKEFREAK\n@kids4kars.weebly.com";
} else if (p === 14) {
tName = "Team Rocket Grunt";
designer = "POKEFREAK\n@kids4kars.weebly.com";
} else if (p === 15) {
tName = "Camper";
designer = "POKEFREAK\n@kids4kars.weebly.com";
} else if (p === 16) {
tName = "Avatar Maniac";
designer = "POKEFREAK\n@kids4kars.weebly.com";
} else if (p === 17) {
tName = "Max";
designer = "Kruxe\n@cHeZeBuGgErZ";
} else if (p === 18) {
tName = "Battle Box";
designer = "RandomProgrammer24\n@RP2Four";
} else if (p === 19) {
tName = "Stella";
designer = "RandomProgrammer24\n@RP2Four";
} else if (p === 20) {
tName = "Darius";
designer = "RandomProgrammer24\n@RP2Four";
} else if (p === 21) {
tName = "Pineapple Kid";
designer = "CarbonPenguin\n@IAmNotAPancake";
} else if (p === 22) {
tName = "Unknown Trainer";
designer = "Luke and Jacob\n@dinopappy";
} else if (p === 23) {
tName = "Tazal";
designer = "Tazal\n@Tazal";
} else if (p === 24) {
tName = "Iron Man";
designer = "Mr. JPrograms@ jprograms & The Iron Sith #Revive KhanPlease#ForJesusOnly@Etermeer";
} else if (p === 25) {
tName = "Cyborg";
designer = "princess Leah\n@leahGAL";
} else if (p === 26) {
tName = "Click";
designer = "as4j\n@as4j";
} else if (p === 27) {
tName = "Zombie";
designer = "as4j\n@as4j";
} else if (p === 28) {
tName = "Circle©programming";
designer = "Circle©programming\n@CircleCprogrammer";
} else if (p === 29) {
tName = "Eggplantia";
designer = "Lemira (is a shadowy being of the Night)\n@Tyneh";
} else if (p === 30) {
tName = "Dr. X";
designer = "XD Studios@\njohnxdstudios";
} else if (p === 31) {
tName = "Darth Cyber";
designer = "XD Studios@\njohnxdstudios";
} else if (p === 32) {
tName = "Leafers Man";
designer = "Anthony Mullan #Revive\n@JoAnJnThGb";
} else if (p === 33) {
tName = "Piceratops Man";
designer = "Anthony Mullan #Revive\n@JoAnJnThGb";
} else if (p === 34) {
tName = "Aqualine Man";
designer = "Anthony Mullan #Revive\n@JoAnJnThGb";
} else if (p === 35) {
tName = "Starky Man";
designer = "Anthony Mullan #Revive\n@JoAnJnThGb";
} else if (p === 36) {
tName = "Prof. Hugo V.";
designer = "Anthony Mullan #Revive\n@JoAnJnThGb";
} else if (p === 37) {
tName = "UntNamed";
designer = "Anthony Mullan #Revive\n@JoAnJnThGb";
} else if (p === 38) {
tName = "The Flash";
designer = "тнєαя¢н∂