DEADSOFTWARE

Some refactor
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / mobs / FallingGravel.java
index 11d02d2d72b29fa5f0b35f2134713959906c9872..de841190239a0d541bc3a84c59581017dd789ca5 100644 (file)
@@ -11,8 +11,7 @@ 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