Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iaglourenco committed Oct 6, 2018
1 parent 2c9fe94 commit b6c7745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/com/iaglourenco/touchy/Touchy.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void render () {

batch.draw(background, 0, 0, deviceWidth, deviceHeight);
variacao += Gdx.graphics.getDeltaTime() * 5;
if (variacao > 2) variacao = 0;
if (variacao > birds.length) variacao = 0;
batch.draw(canoBaixo, xCanoLow, (deviceHeight/2) - canoBaixo.getHeight()- (espacoEntreCanos / 2) + randSpace + yCanoLow);
batch.draw(canoCima, xCanoHigh, (deviceHeight/2) + (espacoEntreCanos / 2)+ randSpace + yCanoHigh);
batch.draw(birds[(int) variacao], xBird, yBird);
Expand Down

0 comments on commit b6c7745

Please sign in to comment.