Create basic movement collision detector

This commit is contained in:
2021-02-01 10:55:09 +01:00
parent a141354439
commit 71a1e47d24
6 changed files with 105 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ public class Entity extends MovableObject {
}
@Override
public boolean move(Direction direction) {
protected boolean move(Direction direction) {
if(super.move(direction)) {
faceDirection = direction;
return true;