lordmauve/pgzero

Expose Clock instance directly in order to get the current game time

Open

#357 aperta il 14 apr 2025

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Python (185 fork)batch import
enhancementgood first issue

Metriche repository

Star
 (472 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Clock.t stores the elapsed time of the clock.

Due to the way we expose the clock in builtins, clock is a module. We could convert it to a Clock instance, in which case clock.t would be a way of accessing the time.

(We should explain in documentation that t is the commonly used mathematical variable for time, hence the short name.)

Guida contributor