Multipress sprite / Shields re-added

This commit is contained in:
Anuken
2019-02-02 22:33:12 -05:00
parent 203612853b
commit f5028a4937
12 changed files with 1374 additions and 1306 deletions
@@ -11,11 +11,18 @@ public class EntityDraw{
private static final Rectangle viewport = new Rectangle();
private static final Rectangle rect = new Rectangle();
private static boolean clip = true;
private static int count = 0;
public static void setClip(boolean clip){
EntityDraw.clip = clip;
}
public static int countInBounds(EntityGroup<?> group){
count = 0;
drawWith(group, e -> true, e -> count++);
return count;
}
public static void draw(){
draw(Entities.defaultGroup());
}