Skip to navigation

Dashboard: ResetRadar

Name: ResetRadar [Show more] Type: Subroutine Category: Dashboard Summary: Reset the radar display
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * ScoreHitPoints calls ResetRadar
.ResetRadar LDA #80 \ Set xPointLo = 80, so we don't draw a new alien on the STA xPointLo \ radar (as this coordinate is off the radar) LDA #1 \ Set alien = 1, so we remove the alien from the radar STA alien \ rather than the runway when we call DrawRadarBlip STA xPointHi \ Set xPointHi = 1, so the value in xPointLo is treated \ as positive JSR DrawRadarBlip \ Remove the current dot from the radar, but don't draw \ a new one, as xPointLo is off-radar LDY #33 \ Reset object 33's coordinates (the flying alien) to JSR SetObjectToOrigin \ (0, 0, 0) RTS \ Return from the subroutine