lordmauve/pgzero

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

开放

#357 创建于 2025年4月14日

 (1 条评论) (0 个反应) (0 位负责人)Python (211 个派生)batch import
enhancementgood first issue

仓库指标

星标
 (608 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南