From a4484404cdc8109fea1a92242e5662c60eaa82d1 Mon Sep 17 00:00:00 2001 From: Azra Victor Date: Fri, 25 Jun 2021 15:28:13 +0200 Subject: [PATCH] made jump and dash movement values higher and allowed for more lenient inputs --- .../Characters/Blue/BlueBaseFrames.java | 36 +++++++++---------- .../gameplay/Characters/Blue/BlueMisc.java | 8 ++--- src/main/java/gameplay/input/InputBuffer.java | 4 +-- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/main/java/gameplay/Characters/Blue/BlueBaseFrames.java b/src/main/java/gameplay/Characters/Blue/BlueBaseFrames.java index 28c3d06..822f49e 100644 --- a/src/main/java/gameplay/Characters/Blue/BlueBaseFrames.java +++ b/src/main/java/gameplay/Characters/Blue/BlueBaseFrames.java @@ -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; diff --git a/src/main/java/gameplay/Characters/Blue/BlueMisc.java b/src/main/java/gameplay/Characters/Blue/BlueMisc.java index eb28b3e..001c41a 100644 --- a/src/main/java/gameplay/Characters/Blue/BlueMisc.java +++ b/src/main/java/gameplay/Characters/Blue/BlueMisc.java @@ -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); diff --git a/src/main/java/gameplay/input/InputBuffer.java b/src/main/java/gameplay/input/InputBuffer.java index 81252b1..950a4fa 100644 --- a/src/main/java/gameplay/input/InputBuffer.java +++ b/src/main/java/gameplay/input/InputBuffer.java @@ -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