cc3c389840854a30da9091ab1803524daf3188d9
1 package ru
.deadsoftware
.cavecraft
.game
.mobs
;
3 import com
.badlogic
.gdx
.graphics
.g2d
.SpriteBatch
;
4 import com
.badlogic
.gdx
.math
.Rectangle
;
5 import com
.badlogic
.gdx
.math
.Vector2
;
6 import ru
.deadsoftware
.cavecraft
.game
.GameItems
;
7 import ru
.deadsoftware
.cavecraft
.misc
.Assets
;
9 public class FallingGravel
extends Mob
{
11 public FallingGravel(int x
, int y
) {
13 pos
= new Vector2(x
, y
);
14 move
= new Vector2(0, 1);
26 public void changeDir() {
30 public void draw(SpriteBatch spriteBatch
, float x
, float y
) {
31 spriteBatch
.draw(Assets
.blockTex
[GameItems
.getBlock(11).getTex()], x
, y
);
35 public Rectangle
getRect() {
36 return new Rectangle(pos
.x
, pos
.y
, width
, height
);
40 public int getType() {