X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2Fmobs%2FFallingGravel.java;h=de841190239a0d541bc3a84c59581017dd789ca5;hb=feb58daa2c3e8126871e9d4f26e978d2fc1fb01c;hp=0cfa261380fd6b41f0413e1691f615bea2b4ced0;hpb=75e8bbe4c9dceaabd8bb7e7976ad9052cfb0a968;p=cavedroid.git diff --git a/core/src/ru/deadsoftware/cavecraft/game/mobs/FallingGravel.java b/core/src/ru/deadsoftware/cavecraft/game/mobs/FallingGravel.java index 0cfa261..de84119 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/mobs/FallingGravel.java +++ b/core/src/ru/deadsoftware/cavecraft/game/mobs/FallingGravel.java @@ -6,13 +6,12 @@ import com.badlogic.gdx.math.Vector2; import ru.deadsoftware.cavecraft.game.Items; import ru.deadsoftware.cavecraft.misc.Assets; -public class FallingGravel extends Mob{ +public class FallingGravel extends Mob { public FallingGravel(int x, int y) { dir = 0; position = new Vector2(x, y); - moveX = new Vector2(0, 0); - moveY = new Vector2(0, 1); + move = new Vector2(0, 1); width = 16; height = 16; canJump = false; @@ -29,7 +28,7 @@ public class FallingGravel extends Mob{ @Override public void draw(SpriteBatch spriteBatch, float x, float y) { - spriteBatch.draw(Assets.blockTextures[Items.BLOCKS.get("gravel").getTexture()],x, y); + spriteBatch.draw(Assets.blockTex[Items.blocks.get("gravel").getTex()], x, y); } @Override