made jump and dash movement values higher and allowed for more lenient inputs

This commit is contained in:
Azra Victor 2021-06-25 15:28:13 +02:00 committed by no
parent 242d30b51c
commit a4484404cd
3 changed files with 24 additions and 24 deletions

View File

@ -135,7 +135,7 @@ public class BlueBaseFrames {
private static Frame generateNeutralJumpFrame1(){
//movement data
double moveX = 0.0;
double moveY = 18.0;
double moveY = 36.0;
//cancelData
boolean normalC = true;
@ -173,7 +173,7 @@ public class BlueBaseFrames {
private static Frame generateNeutralJumpFrame2(){
//movement data
double moveX = 0.0;
double moveY = -18.0;
double moveY = -36.0;
//cancelData
boolean normalC = true;
@ -221,8 +221,8 @@ public class BlueBaseFrames {
private static Frame GenerateForwardJumpFrame1(){
//movement data
double moveX = 10.0;
double moveY = 18.0;
double moveX = 20.0;
double moveY = 36.0;
//cancelData
boolean normalC = true;
@ -259,8 +259,8 @@ public class BlueBaseFrames {
private static Frame GenerateForwardJumpFrame2(){
//movement data
double moveX = 10.0;
double moveY = 9.0;
double moveX = 20.0;
double moveY = 18.0;
//cancelData
boolean normalC = true;
@ -297,8 +297,8 @@ public class BlueBaseFrames {
private static Frame GenerateForwardJumpFrame3(){
//movement data
double moveX = 10.0;
double moveY = -9.0;
double moveX = 20.0;
double moveY = -18.0;
//cancelData
boolean normalC = true;
@ -335,8 +335,8 @@ public class BlueBaseFrames {
private static Frame GenerateForwardJumpFrame4(){
//movement data
double moveX = 10.0;
double moveY = -18.0;
double moveX = 20.0;
double moveY = -36.0;
//cancelData
boolean normalC = true;
@ -390,8 +390,8 @@ public class BlueBaseFrames {
private static Frame BackJumpFrame1(){
//movement data
double moveX = -10.0;
double moveY = 18.0;
double moveX = -20.0;
double moveY = 36.0;
//cancelData
boolean normalC = true;
@ -428,8 +428,8 @@ public class BlueBaseFrames {
private static Frame BackJumpFrame2(){
//movement data
double moveX = -10.0;
double moveY = 9.0;
double moveX = -20.0;
double moveY = 18.0;
//cancelData
boolean normalC = true;
@ -466,8 +466,8 @@ public class BlueBaseFrames {
private static Frame BackJumpFrame3(){
//movement data
double moveX = -10.0;
double moveY = -9.0;
double moveX = -20.0;
double moveY = -18.0;
//cancelData
boolean normalC = true;
@ -504,8 +504,8 @@ public class BlueBaseFrames {
private static Frame BackJumpFrame4(){
//movement data
double moveX = -10.0;
double moveY = -18.0;
double moveX = -20.0;
double moveY = -36.0;
//cancelData
boolean normalC = true;

View File

@ -66,7 +66,7 @@ public class BlueMisc {
/*
frame creation
*/
Frame f = new Frame(0.0,12.0,phb,ahb,pthb,athb,pushB,
Frame f = new Frame(0.0,25.0,phb,ahb,pthb,athb,pushB,
//cancels (in order : normal, special, jump, move, dash)
false,false,false,false,false);
f.setSpriteWrap(14*138,139,138,138);
@ -97,7 +97,7 @@ public class BlueMisc {
/*
frame creation
*/
Frame f = new Frame(0.0,6.0,phb,ahb,pthb,athb,pushB,
Frame f = new Frame(0.0,15.0,phb,ahb,pthb,athb,pushB,
//cancels (in order : normal, special, jump, move, dash)
false,false,true,false,false);
f.setSpriteWrap(14*138,139,138,138);
@ -200,7 +200,7 @@ public class BlueMisc {
/*
frame creation
*/
Frame f = new Frame(0.0,-12.0,phb,ahb,pthb,athb,pushB,
Frame f = new Frame(0.0,-25.0,phb,ahb,pthb,athb,pushB,
//cancels (in order : normal, special, jump, move, dash)
false,false,false,false,false);
f.setSpriteWrap(14*138,139,138,138);
@ -231,7 +231,7 @@ public class BlueMisc {
/*
frame creation
*/
Frame f = new Frame(0.0,-6.0,phb,ahb,pthb,athb,pushB,
Frame f = new Frame(0.0,-15.0,phb,ahb,pthb,athb,pushB,
//cancels (in order : normal, special, jump, move, dash)
false,false,false,false,false);
f.setSpriteWrap(14*138,139,138,138);

View File

@ -7,9 +7,9 @@ public class InputBuffer {
/**
* The number of past frames to check for a certain input pas another one.
* For example, if you need to input DOWN, then FORWARD, and we know FORWARD has been input on frame 25,
* this indicates that you need to check for DOWN on frames 20 to 24
* this indicates that you need to check for DOWN on frames 20 to 24 if pastframestocheck is at 5
*/
private static final int pastFramesToCheck = 5;
private static final int pastFramesToCheck = 8;
/**
* a list of various inputs being recorded, such as inputs pressed at each frame