Skip to content

Commit

Permalink
Various changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
RepeatGitHub committed Dec 22, 2022
1 parent 8579d8a commit 494aae2
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 6 deletions.
25 changes: 23 additions & 2 deletions module.js
Original file line number Diff line number Diff line change
Expand Up @@ -1485,8 +1485,29 @@ myImages[3][7][8]=[
];
myImages[3][8][0]=myImages[3][2][0];
myImages[3][8][1]=myImages[3][2][0];
myImages[3][9][0]=myImages[3][2][0];
myImages[3][9][1]=myImages[3][2][0];
//myImages[3][9][0]=myImages[3][2][0];
//myImages[3][9][1]=myImages[3][2][0];
myImages[3][9][0]=myImages[3][0][0]; // frame1=9 and frame2=0 is a placeholder image, it doesn't need to be fleshed out.
myImages[3][9][1]=myImages[3][0][0];
myImages[3][9][2]=[
['x','x','x','x','x','x','x','x','x','x','x','x','x','x','x','x'],
['x','x','x','x','x','x','x','x','x','x','x','x','x','x','x','x'],
['x','x','x','x','x','x','x','x','x','x','x','x','x','x','x','x'],
['x','x','x','x','x','x','x','x','x','x','x','x','x','x','x','x'],
['x','x','x','x','x','x','x','x','x','x','x','x','x','x','x','x'],
['x','x','x','x','x','x','x','x','x','x','x','x','x','x','x','x'],
['x','x','x','x','x',bl, bl, bl, bl, bl, bl, 'x','x','x','x','x'],
['x','x','x','x','x',bl, wh, wh, bl, g.a,bl, 'x','x','x','x','x'],
['x','x','x','x','x',bl, wh, wh, bl, g.b,bl, 'x','x','x','x','x'],
['x','x','x','x','x',bl, wh, wh, bl, g.c,bl, 'x','x','x','x','x'],
['x','x','x','x','x',bl, wh, wh, bl, g.d,bl, 'x','x','x','x','x'],
['x','x','x','x','x',bl, wh, wh, bl, g.e,bl, 'x','x','x','x','x'],
['x','x','x','x','x',bl, wh, wh, bl, g.f,bl, 'x','x','x','x','x'],
['x','x','x','x',bl, bl, bl, bl, bl, bl, bl, bl, 'x','x','x','x'],
['x','x','x','x',bl, wn, bl, wn, wn, bl, wn, bl, 'x','x','x','x'],
['x','x','x','x','x',bl, 'x',bl, bl, 'x',bl, 'x','x','x','x','x'],
];
myImages[3][9][3]=myImages[3][9][2];

// }
if (myImages!==undefined) {
Expand Down
49 changes: 45 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ var characterData = [ // Default goes to 0 if I forgot to place my data for othe
knockbackplus: 0,
downspecialmove: false,
downspecialmaxdmg: 0.2,
downspeciallaunch: 1, // How far up an up tilt sends the opponent. Lower is better, but below 0 does nearly nothing unless set to an extremely low number like -100.
meleeFox: false, // I mentioned this below, but this feature re-enables the Melee Fox glitch, which I turned into a feature for modders and future me.
chargeAttackCheese: false, // Pretty much, this makes it so that pressing the charge attack removes any horizontal knockback.
pogo: true, // Makes the down special do a "pogo" like Fatal Book. Inspired by Hollow Knight.
},
{
jumpheight: 4,
Expand All @@ -68,8 +70,10 @@ var characterData = [ // Default goes to 0 if I forgot to place my data for othe
knockbackplus: 0.1,
downspecialmove: false,
downspecialmaxdmg: 0.3,
downspeciallaunch: 1,
meleeFox: false,
chargeAttackCheese: false,
pogo: true,
},
{
jumpheight: 4,
Expand All @@ -78,8 +82,10 @@ var characterData = [ // Default goes to 0 if I forgot to place my data for othe
knockbackplus: 0,
downspecialmove: false,
downspecialmaxdmg: 0.1,
downspeciallaunch: 1,
meleeFox: false,
chargeAttackCheese: false,
pogo: true,
},
{
jumpheight: 4,
Expand All @@ -89,8 +95,10 @@ var characterData = [ // Default goes to 0 if I forgot to place my data for othe
knockbackplus: 0,
downspecialmove: true,
downspecialmaxdmg: 0.2,
downspeciallaunch: 2,
meleeFox: false,
chargeAttackCheese: false,
pogo: true,
},
];
var cpu1="cpu1";
Expand Down Expand Up @@ -777,7 +785,10 @@ var draw = function() {
p[a].frame1=8;
p[a].frame2=0;
} else { // aerial

if (p[a].char===3) { // temporary code to prevent any characters but Fatal Book from doing this
p[a].frame1=9;
p[a].frame2=1;
}
}
}
} else {
Expand All @@ -794,7 +805,11 @@ var draw = function() {
if (b!==a) {
if (coll(p[b].hitbox,p[a].hitbox)) {
p[b].vx=(p[a].dir-0.5)*4;
p[b].vy=1;
if (characterData[p[a].char]!==undefined) {
p[b].vy=characterData[p[a].char].downspeciallaunch;
} else {
p[b].vy=1;
}
p[b].y-=1;
p[b].fall=true;
if (characterData[p[b].char]!==undefined) {
Expand All @@ -810,7 +825,7 @@ var draw = function() {
} else {
dmggg=characterData[0].downspecialmaxdmg;
}
p[b].hp+=random(0.1,0.2);
p[b].hp+=random(0.1,dmggg);
p[b].canjump=false;
//println(p[b].hp);
p[b].hp=round(p[b].hp*10)/10;
Expand All @@ -823,10 +838,36 @@ var draw = function() {
p[a].frame2=0;
}
if (frameCount-floor(frameCount/8)*8>=7) {
p[a].frame1=0;
if (((keys[DOWN]&&p[a].player===0)||(keyNotCode[ss]&&p[a].player===1)||(keyNotCode[kk]&&p[a].player===2)||(p[a].cpu.down))&&((keyNotCode[q]&&p[a].player===1)||(keyNotCode[period]&&p[a].player===0)||(keyNotCode[uu]&&p[a].player===2)||(p[a].cpu.at2))&&p[a].movecool<frameCount) {} else {
p[a].frame1=0;
}
p[a].frame2=0;
}
}
// aerial down special codery
if (p[a].frame1===9) {
frameSpeed=8;
for (var b=0;b<p.length;b++) {
if (b!==a) {
if (coll(p[b].hitbox,p[a].hitbox)) {
p[b].movecool=10+frameCount;
p[b].frame1=5;
p[b].frame2=0;
p[b].canjump=false;
p[b].hp+=0.5;
p[b].vy=-4;
if (characterData[p[a].char]!==undefined) {
if (characterData[p[a].char].pogo) {
p[b].vy=2;
}
}
}
}
if (p[a].frame2===0) {
p[a].frame1=0;
}
}
}
}
if (p[a].vy<-16) {
//println(p[a].vy);
Expand Down

0 comments on commit 494aae2

Please sign in to comment.