Skip to content
Snippets Groups Projects
Commit 1f1f4642 authored by Magnus Segtnan Skjølberg's avatar Magnus Segtnan Skjølberg
Browse files

(#18): potential wall collision fix

parent 3a6324ec
No related branches found
No related tags found
3 merge requests!51Resolve "Adjust cannon angle from touch input",!35Draft: Resolve "Adjust cannon angle from touch input",!32Combine hud with gameplay
Pipeline #214186 failed
......@@ -103,7 +103,7 @@ public class Tank {
chassisSprite.flip(true, false);
directionLeft = false;
}
if (chassis.getPosition().x <= VIEWPORT_WIDTH - TANK_WIDTH){
if (chassis.getPosition().x <= TankWarsGame.GAMEPORT_WIDTH - TANK_WIDTH){
setPosition(newPos);
chassis.setTransform(newPos.x, newPos.y + 0.11f, angle);
chassisSprite.setRotation(angle);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment