lordmauve/pgzero

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

Ouverte

#357 ouverte le 14 avr. 2025

 (1 commentaire) (0 réaction) (0 personne assignée)Python (211 forks)batch import
enhancementgood first issue

Métriques du dépôt

Stars
 (608 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.)

Guide contributeur