mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Final collision fixup.
This commit is contained in:
@@ -112,7 +112,7 @@ export default class RetroArchitecture
|
||||
|
||||
getWallRight(position)
|
||||
{
|
||||
let tilePosition = this.getTileForPosition(new GeometryPoint(position.x, position.y), 1, -1);
|
||||
let tilePosition = this.getTileForPosition(new GeometryPoint(position.x, position.y), 1, 0);
|
||||
|
||||
while (tilePosition !== null && tilePosition.x < this.columns) {
|
||||
if (this.matrix[tilePosition.y][tilePosition.x] !== null) {
|
||||
@@ -127,7 +127,7 @@ export default class RetroArchitecture
|
||||
|
||||
getWallLeft(position)
|
||||
{
|
||||
let tilePosition = this.getTileForPosition(new GeometryPoint(position.x, position.y), -1,-1);
|
||||
let tilePosition = this.getTileForPosition(new GeometryPoint(position.x, position.y), -1,0);
|
||||
|
||||
while (tilePosition !== null && tilePosition.x > 0) {
|
||||
if (this.matrix[tilePosition.y][tilePosition.x] !== null) {
|
||||
|
||||
Reference in New Issue
Block a user