v2.2.0: char sprites are now drawn in order from top to bottom

This commit is contained in:
Evan Debenham
2023-08-20 17:51:44 -04:00
parent 0b5db285ee
commit 5dcf2f0176
3 changed files with 24 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ import com.watabou.utils.Random;
import com.watabou.utils.Reflection;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
public class Group extends Gizmo {
@@ -310,4 +312,8 @@ public class Group extends Gizmo {
return null;
}
}
public synchronized void sort(Comparator c){
Collections.sort(members, c);
}
}