Skip to content

Commit

Permalink
Fixed Collision Issue With Pipes
Browse files Browse the repository at this point in the history
I have replaced the current pipe design with a slightly altered version which addresses the collision issue pointed out in issue CodingTrain#44. The issue was to do with the transparent section in which the bird/unicorn sprite kept hitting.
  • Loading branch information
A-Edusei authored Apr 6, 2018
1 parent 803e899 commit 5c76b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ var prevTouched = touched;


function preload() {
pipeBodySprite = loadImage('graphics/pipe_marshmallow.png');
pipePeakSprite = loadImage('graphics/pipe_marshmallow.png');
pipeBodySprite = loadImage('graphics/pipe_marshmallow_fix.png');
pipePeakSprite = loadImage('graphics/pipe_marshmallow_fix.png');
birdSprite = loadImage('graphics/train.png');
bgImg = loadImage('graphics/background.png');
}
Expand Down

0 comments on commit 5c76b17

Please sign in to comment.