Skip to content

Commit

Permalink
merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcdonnell2 committed Apr 23, 2018
1 parent 7f9e3e2 commit 7385e35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Binary file added images/pong_meatball_all.pyxel
Binary file not shown.
6 changes: 4 additions & 2 deletions js/Main/Car.js
Expand Up @@ -77,11 +77,13 @@ function carClass() {
this.x += Math.cos(this.ang) * this.speed;
this.y += Math.sin(this.ang) * this.speed;
this.distanceTravelled += (Math.abs(Math.cos(this.ang) * this.speed)) + Math.abs((Math.sin(this.ang) * this.speed));
if (this.distanceTravelled >= 300) {
if (this.distanceTravelled >= 315) {
var currentFrameIndex = fuelMeterSprite.getFrameIndex();
var fuelMeterSpriteMaxFrames = 9;
currentFrameIndex++;
fuelMeterSprite.setFrameIndex(currentFrameIndex);
this.distanceTravelled = 0;
if (currentFrameIndex < fuelMeterSpriteMaxFrames)
fuelMeterSprite.setFrameIndex(currentFrameIndex);
}

//Cam point leads player around
Expand Down
1 change: 0 additions & 1 deletion js/Main/Input.js
Expand Up @@ -94,7 +94,6 @@ function keyPressed(evt) {
break;
case KEY_S:
case KEY_DOWN_ARROW:
fuelMeterSprite.setFrameIndex(8);
break;
case KEY_D:
case KEY_RIGHT_ARROW:
Expand Down

0 comments on commit 7385e35

Please sign in to comment.