added blue forward and back dash
This commit is contained in:
parent
3707324146
commit
78014315ab
281
src/gameplay/Characters/Blue/BlueMisc.java
Normal file
281
src/gameplay/Characters/Blue/BlueMisc.java
Normal file
@ -0,0 +1,281 @@
|
|||||||
|
package gameplay.Characters.Blue;
|
||||||
|
|
||||||
|
import gameplay.actions.Attack;
|
||||||
|
import gameplay.actions.attackPart;
|
||||||
|
import gameplay.entities.Status;
|
||||||
|
import gameplay.frames.Frame;
|
||||||
|
import gameplay.hitboxes.*;
|
||||||
|
import gameplay.input.ButtonIG;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
public class BlueMisc {
|
||||||
|
private static Frame fDash1() {
|
||||||
|
/*
|
||||||
|
Hitboxes lists creation
|
||||||
|
*/
|
||||||
|
ArrayList<Passive_HitBox> phb = new ArrayList<Passive_HitBox>();
|
||||||
|
ArrayList<Passive_throw_HitBox> pthb = new ArrayList<Passive_throw_HitBox>();
|
||||||
|
ArrayList<Active_HitBox> ahb = new ArrayList<Active_HitBox>();
|
||||||
|
ArrayList<Active_throw_Hitbox> athb = new ArrayList<Active_throw_Hitbox>();
|
||||||
|
|
||||||
|
/*
|
||||||
|
Individual hitboxes creation
|
||||||
|
*/
|
||||||
|
Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500);
|
||||||
|
Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100);
|
||||||
|
Push_HitBox pushB = new Push_HitBox(70,70,150,500);
|
||||||
|
|
||||||
|
/*
|
||||||
|
adding hitboxes to lists
|
||||||
|
*/
|
||||||
|
phb.add(phb1);
|
||||||
|
pthb.add(pthb1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
frame creation
|
||||||
|
*/
|
||||||
|
Frame f = new Frame(0.0,0.0,phb,ahb,pthb,athb,pushB,
|
||||||
|
//cancels (in order : normal, special, jump, move, dash)
|
||||||
|
false,false,false,false,false);
|
||||||
|
f.setSpriteWrap(102,0,102,120);
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
private static Frame fDash2() {
|
||||||
|
/*
|
||||||
|
Hitboxes lists creation
|
||||||
|
*/
|
||||||
|
ArrayList<Passive_HitBox> phb = new ArrayList<Passive_HitBox>();
|
||||||
|
ArrayList<Passive_throw_HitBox> pthb = new ArrayList<Passive_throw_HitBox>();
|
||||||
|
ArrayList<Active_HitBox> ahb = new ArrayList<Active_HitBox>();
|
||||||
|
ArrayList<Active_throw_Hitbox> athb = new ArrayList<Active_throw_Hitbox>();
|
||||||
|
|
||||||
|
/*
|
||||||
|
Individual hitboxes creation
|
||||||
|
*/
|
||||||
|
Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500);
|
||||||
|
Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100);
|
||||||
|
Push_HitBox pushB = new Push_HitBox(70,70,150,500);
|
||||||
|
|
||||||
|
/*
|
||||||
|
adding hitboxes to lists
|
||||||
|
*/
|
||||||
|
phb.add(phb1);
|
||||||
|
pthb.add(pthb1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
frame creation
|
||||||
|
*/
|
||||||
|
Frame f = new Frame(0.0,12.0,phb,ahb,pthb,athb,pushB,
|
||||||
|
//cancels (in order : normal, special, jump, move, dash)
|
||||||
|
false,false,false,false,false);
|
||||||
|
f.setSpriteWrap(816,0,102,120);
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
private static Frame fDash3() {
|
||||||
|
/*
|
||||||
|
Hitboxes lists creation
|
||||||
|
*/
|
||||||
|
ArrayList<Passive_HitBox> phb = new ArrayList<Passive_HitBox>();
|
||||||
|
ArrayList<Passive_throw_HitBox> pthb = new ArrayList<Passive_throw_HitBox>();
|
||||||
|
ArrayList<Active_HitBox> ahb = new ArrayList<Active_HitBox>();
|
||||||
|
ArrayList<Active_throw_Hitbox> athb = new ArrayList<Active_throw_Hitbox>();
|
||||||
|
|
||||||
|
/*
|
||||||
|
Individual hitboxes creation
|
||||||
|
*/
|
||||||
|
Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500);
|
||||||
|
Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100);
|
||||||
|
Push_HitBox pushB = new Push_HitBox(70,70,150,500);
|
||||||
|
|
||||||
|
/*
|
||||||
|
adding hitboxes to lists
|
||||||
|
*/
|
||||||
|
phb.add(phb1);
|
||||||
|
pthb.add(pthb1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
frame creation
|
||||||
|
*/
|
||||||
|
Frame f = new Frame(0.0,6.0,phb,ahb,pthb,athb,pushB,
|
||||||
|
//cancels (in order : normal, special, jump, move, dash)
|
||||||
|
false,false,true,false,false);
|
||||||
|
f.setSpriteWrap(714,0,102,120);
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
private static Frame fDash4() {
|
||||||
|
/*
|
||||||
|
Hitboxes lists creation
|
||||||
|
*/
|
||||||
|
ArrayList<Passive_HitBox> phb = new ArrayList<Passive_HitBox>();
|
||||||
|
ArrayList<Passive_throw_HitBox> pthb = new ArrayList<Passive_throw_HitBox>();
|
||||||
|
ArrayList<Active_HitBox> ahb = new ArrayList<Active_HitBox>();
|
||||||
|
ArrayList<Active_throw_Hitbox> athb = new ArrayList<Active_throw_Hitbox>();
|
||||||
|
|
||||||
|
/*
|
||||||
|
Individual hitboxes creation
|
||||||
|
*/
|
||||||
|
Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500);
|
||||||
|
Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100);
|
||||||
|
Push_HitBox pushB = new Push_HitBox(70,70,150,500);
|
||||||
|
|
||||||
|
/*
|
||||||
|
adding hitboxes to lists
|
||||||
|
*/
|
||||||
|
phb.add(phb1);
|
||||||
|
pthb.add(pthb1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
frame creation
|
||||||
|
*/
|
||||||
|
Frame f = new Frame(0.0,0.0,phb,ahb,pthb,athb,pushB,
|
||||||
|
//cancels (in order : normal, special, jump, move, dash)
|
||||||
|
false,false,true,false,false);
|
||||||
|
f.setSpriteWrap(102,0,102,120);
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
protected static Frame[] blueFDash() {
|
||||||
|
Frame[] f = new Frame[21];
|
||||||
|
int c = 0;
|
||||||
|
while(c < 3) {f[c] = fDash1(); c++;}
|
||||||
|
while(c < 11) {f[c] = fDash2(); c++;}
|
||||||
|
while(c < 14) {f[c] = fDash3(); c++;}
|
||||||
|
while(c < f.length) {f[c] = fDash4(); c++;}
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Frame bDash1() {
|
||||||
|
/*
|
||||||
|
Hitboxes lists creation
|
||||||
|
*/
|
||||||
|
ArrayList<Passive_HitBox> phb = new ArrayList<Passive_HitBox>();
|
||||||
|
ArrayList<Passive_throw_HitBox> pthb = new ArrayList<Passive_throw_HitBox>();
|
||||||
|
ArrayList<Active_HitBox> ahb = new ArrayList<Active_HitBox>();
|
||||||
|
ArrayList<Active_throw_Hitbox> athb = new ArrayList<Active_throw_Hitbox>();
|
||||||
|
|
||||||
|
/*
|
||||||
|
Individual hitboxes creation
|
||||||
|
*/
|
||||||
|
Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500);
|
||||||
|
Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100);
|
||||||
|
Push_HitBox pushB = new Push_HitBox(70,70,150,500);
|
||||||
|
|
||||||
|
/*
|
||||||
|
adding hitboxes to lists
|
||||||
|
*/
|
||||||
|
phb.add(phb1);
|
||||||
|
pthb.add(pthb1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
frame creation
|
||||||
|
*/
|
||||||
|
Frame f = new Frame(0.0,0.0,phb,ahb,pthb,athb,pushB,
|
||||||
|
//cancels (in order : normal, special, jump, move, dash)
|
||||||
|
false,false,false,false,false);
|
||||||
|
f.setSpriteWrap(102,0,102,120);
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
private static Frame bDash2() {
|
||||||
|
/*
|
||||||
|
Hitboxes lists creation
|
||||||
|
*/
|
||||||
|
ArrayList<Passive_HitBox> phb = new ArrayList<Passive_HitBox>();
|
||||||
|
ArrayList<Passive_throw_HitBox> pthb = new ArrayList<Passive_throw_HitBox>();
|
||||||
|
ArrayList<Active_HitBox> ahb = new ArrayList<Active_HitBox>();
|
||||||
|
ArrayList<Active_throw_Hitbox> athb = new ArrayList<Active_throw_Hitbox>();
|
||||||
|
|
||||||
|
/*
|
||||||
|
Individual hitboxes creation
|
||||||
|
*/
|
||||||
|
Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500);
|
||||||
|
Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100);
|
||||||
|
Push_HitBox pushB = new Push_HitBox(70,70,150,500);
|
||||||
|
|
||||||
|
/*
|
||||||
|
adding hitboxes to lists
|
||||||
|
*/
|
||||||
|
phb.add(phb1);
|
||||||
|
pthb.add(pthb1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
frame creation
|
||||||
|
*/
|
||||||
|
Frame f = new Frame(0.0,-12.0,phb,ahb,pthb,athb,pushB,
|
||||||
|
//cancels (in order : normal, special, jump, move, dash)
|
||||||
|
false,false,false,false,false);
|
||||||
|
f.setSpriteWrap(816,0,102,120);
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
private static Frame bDash3() {
|
||||||
|
/*
|
||||||
|
Hitboxes lists creation
|
||||||
|
*/
|
||||||
|
ArrayList<Passive_HitBox> phb = new ArrayList<Passive_HitBox>();
|
||||||
|
ArrayList<Passive_throw_HitBox> pthb = new ArrayList<Passive_throw_HitBox>();
|
||||||
|
ArrayList<Active_HitBox> ahb = new ArrayList<Active_HitBox>();
|
||||||
|
ArrayList<Active_throw_Hitbox> athb = new ArrayList<Active_throw_Hitbox>();
|
||||||
|
|
||||||
|
/*
|
||||||
|
Individual hitboxes creation
|
||||||
|
*/
|
||||||
|
Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500);
|
||||||
|
Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100);
|
||||||
|
Push_HitBox pushB = new Push_HitBox(70,70,150,500);
|
||||||
|
|
||||||
|
/*
|
||||||
|
adding hitboxes to lists
|
||||||
|
*/
|
||||||
|
phb.add(phb1);
|
||||||
|
pthb.add(pthb1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
frame creation
|
||||||
|
*/
|
||||||
|
Frame f = new Frame(0.0,-6.0,phb,ahb,pthb,athb,pushB,
|
||||||
|
//cancels (in order : normal, special, jump, move, dash)
|
||||||
|
false,false,false,false,false);
|
||||||
|
f.setSpriteWrap(714,0,102,120);
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
private static Frame bDash4() {
|
||||||
|
/*
|
||||||
|
Hitboxes lists creation
|
||||||
|
*/
|
||||||
|
ArrayList<Passive_HitBox> phb = new ArrayList<Passive_HitBox>();
|
||||||
|
ArrayList<Passive_throw_HitBox> pthb = new ArrayList<Passive_throw_HitBox>();
|
||||||
|
ArrayList<Active_HitBox> ahb = new ArrayList<Active_HitBox>();
|
||||||
|
ArrayList<Active_throw_Hitbox> athb = new ArrayList<Active_throw_Hitbox>();
|
||||||
|
|
||||||
|
/*
|
||||||
|
Individual hitboxes creation
|
||||||
|
*/
|
||||||
|
Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500);
|
||||||
|
Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100);
|
||||||
|
Push_HitBox pushB = new Push_HitBox(70,70,150,500);
|
||||||
|
|
||||||
|
/*
|
||||||
|
adding hitboxes to lists
|
||||||
|
*/
|
||||||
|
phb.add(phb1);
|
||||||
|
pthb.add(pthb1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
frame creation
|
||||||
|
*/
|
||||||
|
Frame f = new Frame(0.0,0.0,phb,ahb,pthb,athb,pushB,
|
||||||
|
//cancels (in order : normal, special, jump, move, dash)
|
||||||
|
false,false,false,false,false);
|
||||||
|
f.setSpriteWrap(102,0,102,120);
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static Frame[] blueBDash() {
|
||||||
|
Frame[] f = new Frame[21];
|
||||||
|
int c = 0;
|
||||||
|
while(c < 3) {f[c] = bDash1(); c++;}
|
||||||
|
while(c < 11) {f[c] = bDash2(); c++;}
|
||||||
|
while(c < 14) {f[c] = bDash3(); c++;}
|
||||||
|
while(c < f.length) {f[c] = bDash4(); c++;}
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
}
|
@ -36,14 +36,14 @@ public class CharacterBlue {
|
|||||||
/*
|
/*
|
||||||
* Temporary values to change later
|
* Temporary values to change later
|
||||||
*/
|
*/
|
||||||
Frame[] fDashF = new Frame[0];
|
Frame[] fDashF = BlueMisc.blueFDash();
|
||||||
Frame[] bDashF = new Frame[0];
|
Frame[] bDashF = BlueMisc.blueBDash();
|
||||||
|
|
||||||
ThrowPart[] tp = new ThrowPart[0];
|
ThrowPart[] tp = new ThrowPart[0];
|
||||||
|
|
||||||
ButtonIG[][] throwCMD = {{BACK,FORWARD,UP,DOWN},{BACK,FORWARD,UP,DOWN},{BACK,FORWARD,UP,DOWN}};
|
ButtonIG[][] throwCMD = {{BACK,FORWARD,UP,DOWN},{BACK,FORWARD,UP,DOWN},{BACK,FORWARD,UP,DOWN}};
|
||||||
ButtonIG[][] fdashCMD = {{BACK,FORWARD,UP,DOWN},{BACK,FORWARD,UP,DOWN},{BACK,FORWARD,UP,DOWN}};
|
ButtonIG[][] fdashCMD = {{FORWARD},{FORWARD}};
|
||||||
ButtonIG[][] bdashCMD = {{BACK,FORWARD,UP,DOWN},{BACK,FORWARD,UP,DOWN},{BACK,FORWARD,UP,DOWN}};
|
ButtonIG[][] bdashCMD = {{BACK},{BACK}};
|
||||||
|
|
||||||
Throw th = new Throw(false,throwCMD,tp);
|
Throw th = new Throw(false,throwCMD,tp);
|
||||||
Dash fDash = new Dash(fdashCMD,fDashF);
|
Dash fDash = new Dash(fdashCMD,fDashF);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user