Big Counter's icon

Big Counter 1.0.1 Misc 4.5 Community

Submitted by user Skyebee; MIT; 2025-11-21

Counter with a number and a total number, which can grow to an arbitrarily-large size, intended for incremental games.

Note that the Counter's numbers are all stored using the Big class, which is (for the purposes of this counter) an inner class accessed using Counter.Big

You must give the Counter node a Timer child. Every tick_secs seconds, number will be increased by per_tick. per_tick is computed from a number of variables -- ((tick_base + tick_extra) ^ tick_exponent) * tick_multiplier.

Each of these can be manipulated by setting directly, or by using, for tick_X, register_X(n), deregister_X(n), or reset_X(n). The register_ and deregister_ methods act as though you are adding one, and then another, instead of just increasing the number linearly -- there's a difference, for exponents and multipliers.

You must not set per_tick directly. However, you can set number directly, or manipulate it using increase_by() or decrease_by(). There's also reset_number(). total_number can be set directly, but can only increase -- decreasing it will throw an error.

You can also set tick_secs directly. This will pass through to the timer. tick_enabled also passes through (it starts and stops, rather than pauses)

Other methods for interacting with the Timer: get_timer(), start_tick(), and stop_tick()


View files Download Submit an issue Recent Edits