Android Libgdx and collision detection
问题 For my android game I use Libgdx and I detect the collision between Bob (Omino) and Plant (Pianta) with this code that works fine : Assets.class pianta = new Animation(0.5f,new TextureRegion(items, 160, 384, 64, 96), new TextureRegion(items, 224, 384, 64, 96)); Pianta.class public class Pianta extends GameObject { public static final float PIANTA_WIDTH = 2; public static final float PIANTA_HEIGHT = 3; public static float stateTime; public Pianta(float x, float y) { super(x, y, PIANTA_WIDTH,