From 2d338e4fb50fde89f7e9af96c9852211ca708591 Mon Sep 17 00:00:00 2001 From: JacobSeto Date: Sun, 14 Apr 2024 13:47:01 -0400 Subject: [PATCH] Deleted Several System Prints - Removed unused system prints --- core/src/edu/cornell/gdiac/rabbeat/GameCanvas.java | 1 - core/src/edu/cornell/gdiac/rabbeat/GameController.java | 5 ----- core/src/edu/cornell/gdiac/rabbeat/InputController.java | 1 - .../cornell/gdiac/rabbeat/obstacles/enemies/BatEnemy.java | 7 ------- .../cornell/gdiac/rabbeat/obstacles/enemies/BearEnemy.java | 3 --- .../gdiac/rabbeat/obstacles/enemies/HedgehogEnemy.java | 6 ------ .../src/edu/cornell/gdiac/rabbeat/sync/SyncController.java | 3 +-- 7 files changed, 1 insertion(+), 25 deletions(-) diff --git a/core/src/edu/cornell/gdiac/rabbeat/GameCanvas.java b/core/src/edu/cornell/gdiac/rabbeat/GameCanvas.java index 8740a6e8..8d22f77d 100644 --- a/core/src/edu/cornell/gdiac/rabbeat/GameCanvas.java +++ b/core/src/edu/cornell/gdiac/rabbeat/GameCanvas.java @@ -1173,7 +1173,6 @@ protected void updateCamera(Player player, float worldWidth, float worldHeight) player.getX() * 67f, 0, 0), CAMERA_SPEED * Gdx.graphics.getDeltaTime() ); - System.out.println(player.getX()); camera.position.set(new Vector2(camera.position.x, player.getY() * 67f), 0); camera.position.x = MathUtils.clamp(camera.position.x, minX, maxX); camera.position.y = MathUtils.clamp(camera.position.y, minY, maxY); diff --git a/core/src/edu/cornell/gdiac/rabbeat/GameController.java b/core/src/edu/cornell/gdiac/rabbeat/GameController.java index 0798585e..51775ca3 100644 --- a/core/src/edu/cornell/gdiac/rabbeat/GameController.java +++ b/core/src/edu/cornell/gdiac/rabbeat/GameController.java @@ -629,16 +629,13 @@ public void beginContact(Contact contact) { //TODO: implement lethal obstacle code which checks for the first obstacle being the player, then checking if the if ((bd2 instanceof Player && bd1 instanceof SimpleGameObject)){ if (((SimpleGameObject) bd1).getType() == SimpleGameObject.ObjectType.LETHAL){ - System.out.println("l2"); setFailure(true); } } if ((bd1 instanceof WeightedPlatform) && (bd2 instanceof Player)){ - System.out.println("yipee"); lastCollideWith = (WeightedPlatform) bd1; } if ((bd1 instanceof MovingPlatform) && (bd2 instanceof Player)){ - System.out.println("yipee"); lastMCollideWith = (MovingPlatform) bd1; } // Check for collision with checkpoints and set new current checkpoint @@ -683,14 +680,12 @@ public void endContact(Contact contact) { } } if ((bd1 instanceof WeightedPlatform) && (bd2 instanceof Player)){ - System.out.println("whoopee"); if (bd1 == lastCollideWith){ lastCollideWith = null; } objectController.player.setDisplace(new Vector2(0,0)); } if ((bd1 instanceof MovingPlatform) && (bd2 instanceof Player)){ - System.out.println("whoopee"); if (bd1 == lastMCollideWith){ lastMCollideWith = null; } diff --git a/core/src/edu/cornell/gdiac/rabbeat/InputController.java b/core/src/edu/cornell/gdiac/rabbeat/InputController.java index 54b925f5..39047617 100644 --- a/core/src/edu/cornell/gdiac/rabbeat/InputController.java +++ b/core/src/edu/cornell/gdiac/rabbeat/InputController.java @@ -330,7 +330,6 @@ private void readKeyboard(Rectangle bounds, Vector2 scale, boolean secondary) { vertical = (secondary ? vertical : 0.0f); if (Gdx.input.isKeyPressed(Input.Keys.UP) || Gdx.input.isKeyPressed(Input.Keys.W)) { - System.out.println("up"); vertical += 1.0f; } if (Gdx.input.isKeyPressed(Input.Keys.DOWN) || Gdx.input.isKeyPressed(Input.Keys.S)) { diff --git a/core/src/edu/cornell/gdiac/rabbeat/obstacles/enemies/BatEnemy.java b/core/src/edu/cornell/gdiac/rabbeat/obstacles/enemies/BatEnemy.java index 67f49c92..e3a3b832 100644 --- a/core/src/edu/cornell/gdiac/rabbeat/obstacles/enemies/BatEnemy.java +++ b/core/src/edu/cornell/gdiac/rabbeat/obstacles/enemies/BatEnemy.java @@ -69,12 +69,10 @@ public void switchState() { if(curGenre.equals(Genre.JAZZ)) { if(beatCount == 4) { enemyState = EnemyState.ATTACKING; - System.out.println("ATTACKING Jazz"); } } else if(curGenre.equals(Genre.SYNTH)) { if(beatCount == 4 || beatCount == 2) { enemyState = EnemyState.ATTACKING; - System.out.println("ATTACKING Synth"); } } break; @@ -82,12 +80,10 @@ public void switchState() { if(curGenre.equals(Genre.JAZZ)) { if(beatCount != 4) { enemyState = EnemyState.IDLE; - System.out.println("IDLE Jazz"); } } else if(curGenre.equals(Genre.SYNTH)) { if(beatCount != 4 && beatCount != 2) { enemyState = EnemyState.IDLE; - System.out.println("IDLE Synth"); } } @@ -113,8 +109,6 @@ public void beatAction() { if(enemyState.equals(EnemyState.ATTACKING)) { sendEcho(); } - - //System.out.println("BEAT: " + beatCount); } ObjectController oc = GameController.getInstance().objectController; @@ -132,7 +126,6 @@ public void sendEcho() { if(Math.sqrt(Math.pow(horizontalDistanceBetweenEnemyAndPlayer(),2) + Math.pow(verticalDistanceBetweenEnemyAndPlayer(),2)) <= echoRadius) { GameController.getInstance().setFailure(true); } - System.out.println("Echo sent!"); //TODO: visualize the echo // WheelGameObject w = new WheelGameObject(getX(), getY(), (float) 0.06); diff --git a/core/src/edu/cornell/gdiac/rabbeat/obstacles/enemies/BearEnemy.java b/core/src/edu/cornell/gdiac/rabbeat/obstacles/enemies/BearEnemy.java index b9fd801b..ac15981a 100644 --- a/core/src/edu/cornell/gdiac/rabbeat/obstacles/enemies/BearEnemy.java +++ b/core/src/edu/cornell/gdiac/rabbeat/obstacles/enemies/BearEnemy.java @@ -64,13 +64,11 @@ public void switchState() { case IDLE: if(horizontalDistanceBetweenEnemyAndPlayer()<8) { enemyState = EnemyState.ATTACKING; - System.out.println("ATTACKING"); } break; case ATTACKING: if(horizontalDistanceBetweenEnemyAndPlayer()>8) { enemyState = EnemyState.IDLE; - System.out.println("not ATTACKING"); } //TODO: make bear shoot break; @@ -118,7 +116,6 @@ public float getBeat() { public void beatAction() { if (enemyState == EnemyState.ATTACKING) { makeBullet(); - System.out.println("shoot"); } flipEnemy(); diff --git a/core/src/edu/cornell/gdiac/rabbeat/obstacles/enemies/HedgehogEnemy.java b/core/src/edu/cornell/gdiac/rabbeat/obstacles/enemies/HedgehogEnemy.java index 737fb200..c984b9ce 100644 --- a/core/src/edu/cornell/gdiac/rabbeat/obstacles/enemies/HedgehogEnemy.java +++ b/core/src/edu/cornell/gdiac/rabbeat/obstacles/enemies/HedgehogEnemy.java @@ -69,12 +69,10 @@ public void switchState() { if(curGenre.equals(Genre.JAZZ)) { if(beatCount == 4) { enemyState = EnemyState.ATTACKING; - System.out.println("ATTACKING Jazz"); } } else if(curGenre.equals(Genre.SYNTH)) { if(beatCount == 4 || beatCount == 2) { enemyState = EnemyState.ATTACKING; - System.out.println("ATTACKING Synth"); } } break; @@ -82,12 +80,10 @@ public void switchState() { if(curGenre.equals(Genre.JAZZ)) { if(beatCount != 4) { enemyState = EnemyState.IDLE; - System.out.println("IDLE Jazz"); } } else if(curGenre.equals(Genre.SYNTH)) { if(beatCount != 4 && beatCount != 2) { enemyState = EnemyState.IDLE; - System.out.println("IDLE Synth"); } } break; @@ -125,8 +121,6 @@ public void update(float dt) { //setAngle(angle); } else { setPosition(getX()-distance, getY()); - System.out.println("X:" + getX()); - System.out.println("point2" + point2); //setAngle(angle); } } diff --git a/core/src/edu/cornell/gdiac/rabbeat/sync/SyncController.java b/core/src/edu/cornell/gdiac/rabbeat/sync/SyncController.java index b68f95c6..275c4c47 100644 --- a/core/src/edu/cornell/gdiac/rabbeat/sync/SyncController.java +++ b/core/src/edu/cornell/gdiac/rabbeat/sync/SyncController.java @@ -31,7 +31,7 @@ public void setSync(Music _synth, Music _jazz){ * */ public void addDelay(float _delay){ delay += _delay; - System.out.println(delay); + System.out.println("New Delay: " + delay); } /**The update function for everything synced in the world*/ @@ -63,7 +63,6 @@ public void addSync(ISynced syncedObject){ Interval interval = new Interval(syncedObject); intervals.add(interval); if(syncedObject instanceof ISyncedAnimated){ - System.out.println("Animated object");; animationSync.animatedObjects.add((ISyncedAnimated)(syncedObject)); } }