From 537bc7c744adf6c958e29ae79998ecbd88b8265b Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Thu, 9 Jun 2022 17:52:33 +0000 Subject: [PATCH] Add a slide buffer so it can be queued prior to landing. Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com> Co-authored-by: sigonasr2 --- bin/RabiClone.jar | Bin 260746 -> 260725 bytes src/sig/RabiClone.java | 47 ++++++++++++-------------------- src/sig/engine/KeyBind.java | 4 +-- src/sig/engine/String.java | 1 - src/sig/objects/Player.java | 53 ++++++++++++++++++++++++------------ 5 files changed, 55 insertions(+), 50 deletions(-) diff --git a/bin/RabiClone.jar b/bin/RabiClone.jar index d4fc75b1ae2ff4c82f3686cc5a97799563fdd969..896ee127e48a9ffe569ed8824d7abc414dd7ddeb 100644 GIT binary patch delta 13720 zcmZX4by$?$^FHj7Qqmm~(j_5C7<6|?cPO1A=mOF$C=Z=A7$X8}+2nhoN14%mSJ+=r0{FY0Ge{ax% z-*GC>Nh)ZN({SLw8*y2{N5v+t(yjQAiXEnh>GnY@{(A3bGPdCIxh@1VnPZrdmzhsGiG&Q2>^s>`F*M4`e%zek% zDusMD&A~f&T)S?Ugmlw;@kS>nWcV;e*mb}cHh;SJd#`T4@nUcNY~^!jI)o?Ohsy>w zlv+w&+WM4inDFNp4CzM_?@gq7Cv;h87^k+A8+u=2tWrJ*5qPg!%}s-ypy*0Ho}GDJ zbM9D0801H_Mi3T+|9rSicr%)i>iF4vRUh%p@)LIcNz0KWpZ6xO9G)i=o(H^t7Q$vJ zMyzCNY|OKfzcBl$&*>gsHV%;q_Py$odDxFr^w#DCZkjM@49y?;M&bO6LeSMf$CE^# z-DOoz7A|Z;97XjokCbM*Pu*y_EYsA+^dkLF%6Mu#zdB+CWnZh-52{huJZO0J+3!K- z54;idz+Rk`!hnkh0iIfUf!1XCnk{cyG147P;^}_}NcgFK;*)4Me8SrgKm|L0Oc?&<=J6jEoHK6EGfg_cLflY=7OEx!A1-}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O=SKkTBj`&=H34E^_z0>7p?L5=feO(04mPw15cC~t0&!wP48*a475}&o zMke?HhM;9fz!K~rtn~xr8O@DAO1MFtyWFeciVnPYaH<9b70^5Y_m5Faa4)`_M5beK z(hULWW2gayMiOD&_8V-lrekm|ol7H-_IJoA0Nx3>L}FzTi0KKqAe`h8f>tF+p!Eb? zFOQY}9aaKM1@_%Gn|zi3Gx_&% z+Y4$VzXjGVp?Z+9x_?KnK%Rw-2m#!NF@fPmaNh17Ej?GD{w}b31#WiFTK^3)2_~R- O4JAjFXa`@fkp2(h(WgNG diff --git a/src/sig/RabiClone.java b/src/sig/RabiClone.java index 95966a1..3d46bdc 100644 --- a/src/sig/RabiClone.java +++ b/src/sig/RabiClone.java @@ -89,35 +89,7 @@ public class RabiClone{ double updateMult = Math.min(1/60d,timePassed/1000000000d); - //System.out.println(CONTROLLERS.length); - for (int i=0;ii?j-1:j)]=CONTROLLERS[i]; - } - } - CONTROLLERS=newArr; - } - /*EventQueue queue = controller_list[i].getEventQueue(); - - while (queue.getNextEvent(event)) { - Component c = event.getComponent(); - System.out.println(c.getName()+","+c.getIdentifier()+": "+c.getPollData()); - }*/ - } + handleGameControllers(); KeyBind.poll(); @@ -155,6 +127,23 @@ public class RabiClone{ } } + private static void handleGameControllers() { + for (int i=0;ii?j-1:j)]=CONTROLLERS[i]; + } + } + CONTROLLERS=newArr; + } + } + } + private static void ResetGame() { player=null; level_renderer=null; diff --git a/src/sig/engine/KeyBind.java b/src/sig/engine/KeyBind.java index a67e039..4651029 100644 --- a/src/sig/engine/KeyBind.java +++ b/src/sig/engine/KeyBind.java @@ -111,13 +111,13 @@ public class KeyBind { } private static void emitReleaseEvent(Action a) { - System.out.println("Release for "+a); + //System.out.println("Release for "+a); for (int i=0;i0 && spacebarReleased && (a==Action.JUMP)){ jumpCount=0; @@ -215,6 +220,18 @@ public class Player extends AnimatedObject{ } + private void performSlide() { + slide_time = System.currentTimeMillis(); + if(facing_direction){ + x_velocity=sliding_velocity; + } + else{ + x_velocity=-sliding_velocity; + } + state=State.SLIDE; + } + + private void handleCameraRoomMovement() { int tileX = (int)(getX())/Tile.TILE_WIDTH; int tileY = (int)(getY())/Tile.TILE_HEIGHT; @@ -340,8 +357,8 @@ public class Player extends AnimatedObject{ } } if (y_velocity==0) { - Tile checked_tile_bottom_right = RabiClone.CURRENT_MAP.getTile((int)(getX()+getAnimatedSpr().getWidth()/2-4)/Tile.TILE_WIDTH, (int)(getY()+getAnimatedSpr().getHeight()/2+0.5)/Tile.TILE_HEIGHT); - Tile checked_tile_bottom_left = RabiClone.CURRENT_MAP.getTile((int)(getX()-getAnimatedSpr().getWidth()/2+4)/Tile.TILE_WIDTH, (int)(getY()+getAnimatedSpr().getHeight()/2+0.5)/Tile.TILE_HEIGHT); + Tile checked_tile_bottom_right = RabiClone.CURRENT_MAP.getTile((int)(getX()+getAnimatedSpr().getWidth()/2-4)/Tile.TILE_WIDTH, (int)(getY()+getAnimatedSpr().getHeight()/2+1)/Tile.TILE_HEIGHT); + Tile checked_tile_bottom_left = RabiClone.CURRENT_MAP.getTile((int)(getX()-getAnimatedSpr().getWidth()/2+4)/Tile.TILE_WIDTH, (int)(getY()+getAnimatedSpr().getHeight()/2+1)/Tile.TILE_HEIGHT); if (!(checked_tile_bottom_right.getCollision()==CollisionType.BLOCK||checked_tile_bottom_left.getCollision()==CollisionType.BLOCK)) { groundCollision=false; } else {