X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=inline;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2Fmobs%2FFallingSand.java;h=b491af5dc7dace59f61af69a0a53ab9b4d5986f4;hb=5fd3c5a7647fbf36de84ff184f58fad5e0e30644;hp=37f8a59c366527c6946f5d2c3e9a96e26a1be29c;hpb=bea2a3c5b967bcd90ccd83e08e833d58449e963a;p=cavedroid.git diff --git a/core/src/ru/deadsoftware/cavecraft/game/mobs/FallingSand.java b/core/src/ru/deadsoftware/cavecraft/game/mobs/FallingSand.java index 37f8a59..b491af5 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/mobs/FallingSand.java +++ b/core/src/ru/deadsoftware/cavecraft/game/mobs/FallingSand.java @@ -3,7 +3,7 @@ package ru.deadsoftware.cavecraft.game.mobs; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.math.Vector2; -import ru.deadsoftware.cavecraft.game.Items; +import ru.deadsoftware.cavecraft.game.GameItems; import ru.deadsoftware.cavecraft.misc.Assets; public class FallingSand extends Mob { @@ -11,8 +11,7 @@ public class FallingSand extends Mob { public FallingSand(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 FallingSand extends Mob { @Override public void draw(SpriteBatch spriteBatch, float x, float y) { - spriteBatch.draw(Assets.blockTextures[Items.BLOCKS.get("sand").getTexture()], x, y); + spriteBatch.draw(Assets.blockTex[GameItems.getBlock(10).getTex()], x, y); } @Override