DEADSOFTWARE

Add logic to some blocks and fluids
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / objects / Block.java
index 4fa47369fd151f2760ea314e58e9eadb2009ec43..44619f0654f3c9e2a22adbee85e66e28037962ba 100644 (file)
@@ -39,4 +39,8 @@ public class Block {
         return new Rectangle(x+this.x, y+this.y, w, h);
     }
 
+    public boolean toJump() {
+        return (y<8 && collision);
+    }
+
 }