Skip to content

Commit

Permalink
Fixed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Söderberg committed Feb 7, 2018
1 parent 237ee4d commit a88bfaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions core/src/com/mygdx/game/Character.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public class Character {
private int y;
private Body body;

private TextureRegion[][] idleAnimation;
private TextureRegion[][] animations;
private int frameTicks = 0;
private final int aniSpeed = 6;
Expand All @@ -28,7 +27,6 @@ public class Character {
private boolean right;
private boolean down;

private float vY;

Character(int sx, int sy, World world, float width, float height) {
x = sx;
Expand Down Expand Up @@ -72,7 +70,6 @@ public class Character {

//body.setLinearVelocity(0.1f, 0.0f);

idleAnimation = new TextureRegion[2][1];
animations = new TextureRegion[3][4];
Texture idleTex = new Texture(Gdx.files.internal("../core/assets/protag.png"));
Texture walkTex = new Texture(Gdx.files.internal("../core/assets/spritesheet4frames.png"));
Expand Down
3 changes: 2 additions & 1 deletion core/src/com/mygdx/game/Map.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.mygdx.game;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;

import com.badlogic.gdx.physics.box2d.World;
Expand Down Expand Up @@ -32,6 +31,8 @@ public class Map {
}
}

in.close();

}catch(Exception fnfe) {
fnfe.printStackTrace();
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/com/mygdx/game/MyGdxGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.Matrix4;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Box2D;
Expand Down Expand Up @@ -44,6 +43,7 @@ public class MyGdxGame extends ApplicationAdapter {

private ContactListener cl;
private Contact contact;

private RayHandler rayhandler;
private PointLight pl;

Expand Down

0 comments on commit a88bfaf

Please sign in to comment.