The time has come to implement the model's move() method, which is responsible for movement. But first,
let's implement some helper methods. Add the following methods to the Model class:
15.1. boolean checkWallCollision(CollisionObject gameObject, Direction direction). This
method checks for collis
Sokoban (part 15)
- 40
Locked
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Seb
26 February 2020, 15:43
There's a small spelling mistake in the method checkBoxCollisionAndMoveIfAvaliable - the last part Avaliable should really be Available. The i and l are twisted.
Depending on the validation, this might actually lead to some unnecessary problems.
Thanks. :-)
0