Unit Breakout.Presentation

Description

Read model, time-driven feedback and uniform logical/client transform.

Source: src/Breakout.Presentation.pas (line 2).

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Record TVisualConfig Positive finite durations in milliseconds and positive integer step.
Record TBrickFade Visual residue only; Brick is no longer a collider.
Record TViewport Uniform scale plus centered letterbox offsets in client pixels.
Class TGamePresentation Owns a copied snapshot, bounded fade slots and a displayed score.

Constants

BrickFadeDurationMs = 250;
ScoreCountIntervalMs = 5;
ScoreCountStep = 1;
DebugRefreshSeconds = 0.2;

Description

Constants

BrickFadeDurationMs = 250;

Default duration of the image left by a destroyed brick, in ms.

Source: src/Breakout.Presentation.pas (line 10).

ScoreCountIntervalMs = 5;

Default interval per score increment, in ms: 5 ms means 200 points/s.

Source: src/Breakout.Presentation.pas (line 12).

ScoreCountStep = 1;

Default number of points per logical score increment.

Source: src/Breakout.Presentation.pas (line 14).

DebugRefreshSeconds = 0.2;

Diagnostic refresh period, independent of painting and simulation.

Source: src/Breakout.Presentation.pas (line 16).


Generated by PasDoc 1.0.4.