Skip to Content
defold-typescript libraries
megalanthusdefold-gamepush

megalanthus/defold-gamepush/gamepush.core.player_stats

GamePush player statistics: days played and time in game.

  • GitHub: megalanthus/defold-gamepush — pinned to v1.4.1
    1. Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as core_player_stats from "gamepush.core.player_stats"

Functions

active_days(): number

The number of days the player has played.

Returns

  • number

active_days_consecutive(): number

The number of consecutive days the player has played.

Returns

  • number

playtime_today(): number

The number of seconds the player has played today.

Returns

  • number

playtime_all(): number

The number of seconds the player has played in total.

Returns

  • number

On this page