What's wrong with CollisionObject.isCollision?
I have changed the return condition to:
tiX == gameObject.getX() && tiY == gameObject.getY()
, and tried the permutation of the +/- with the direction...package com.codegym.task.task34.task3410.controller;
import com.codegym.task.task34.task3410.model.Model;
import com.codegym.task.task34.task3410.view.View;
public class Controller {
private Model model;
private View view;
public Controller() {
this.view = new View(this);
this.model = new Model();
view.init();
}
public static void main(String[] args) {
new Controller();
}
}