Skip to content

Commit

Permalink
Improve playfield collisions during hblank.
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyHairy committed Feb 4, 2018
1 parent e35838d commit f57f801
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/machine/stella/tia/Tia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,10 @@ class Tia implements VideoOutputInterface {

break;
}

if (this._extendedHblank && this._hctr > 67) {
this._playfield.tick(this._hctr - 68 + this._xDelta);
}
}

private _tickHframe() {
Expand Down Expand Up @@ -789,6 +793,8 @@ class Tia implements VideoOutputInterface {
// Reset the counters
this._hctr = 0;

this._playfield.tick(0);

if (!this._movementInProgress) {
this._linesSinceChange++;
}
Expand Down Expand Up @@ -1084,7 +1090,7 @@ namespace Tia {
}

export class TrapPayload {
constructor(public reason: TrapReason, public tia: Tia, public message?: string) {}
constructor(public reason: TrapReason, public tia: Tia, public message?: string) { }
}
}

Expand Down

0 comments on commit f57f801

Please sign in to comment.