Built a basic movement test, can't test because it doesn't recognize my gamepads.
This commit is contained in:
@ -317,6 +317,7 @@ public class BlueBaseFrames {
|
||||
engine.init();
|
||||
|
||||
String path = "textures/Sprite.png";
|
||||
String pathToBG = "textures/background_beach.png";
|
||||
|
||||
Frame f = generateStandFrame1();
|
||||
ObjectGl blue = new ObjectGl(0f, 60f, 80f, 5f, path, null);
|
||||
|
@ -1,9 +1,12 @@
|
||||
package gameplay.Characters.Blue;
|
||||
|
||||
import gameplay.actions.Jump;
|
||||
import gameplay.actions.*;
|
||||
import gameplay.entities.Character;
|
||||
import gameplay.frames.Frame;
|
||||
import gameplay.Characters.Blue.BlueBaseFrames;
|
||||
import gameplay.input.ButtonIG;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import static gameplay.input.ButtonIG.*;
|
||||
|
||||
@ -17,6 +20,39 @@ public class CharacterBlue {
|
||||
Frame[] fWalkF = BlueBaseFrames.blueFWalk();
|
||||
Frame[] bWalkF = BlueBaseFrames.blueBWalk();
|
||||
|
||||
return new Character();
|
||||
ButtonIG[][] fjcmd = {{UP,FORWARD}};
|
||||
ButtonIG[][] bjcmd = {{UP,BACK}};
|
||||
ButtonIG[][] njcmd = {{UP}};
|
||||
|
||||
|
||||
Jump fJ = new Jump(fjcmd,fJumpF);
|
||||
Jump nJ = new Jump(njcmd,nJumpF);
|
||||
Jump bJ = new Jump(bjcmd,bJumpF);
|
||||
|
||||
/*
|
||||
* Temporary values to change later
|
||||
*/
|
||||
Frame[] fDashF = new Frame[0];
|
||||
Frame[] bDashF = new Frame[0];
|
||||
|
||||
ThrowPart[] tp = new ThrowPart[0];
|
||||
|
||||
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[][] bdashCMD = {{BACK,FORWARD,UP,DOWN},{BACK,FORWARD,UP,DOWN},{BACK,FORWARD,UP,DOWN}};
|
||||
|
||||
Throw th = new Throw(false,throwCMD,tp);
|
||||
Dash fDash = new Dash(fdashCMD,fDashF);
|
||||
Dash bDash =new Dash(bdashCMD,bDashF);
|
||||
|
||||
Frame[] fallingFs = new Frame[0];
|
||||
|
||||
Frame f = new Frame();
|
||||
|
||||
Attack[] atks = new Attack[0];
|
||||
|
||||
Character c = new Character(0,0,standF[0],1000,atks,fJ,nJ,bJ,fDash,bDash,th,standF,crouchF,fWalkF,bWalkF,f,f,fallingFs,f,f,f,f);
|
||||
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user