Edit of asset "StatPool" Accepted
Old/Current | New/Edit | |
---|---|---|
Title | StatPool | |
Description |
Godot GDExtension Plugin for handling Stat Pools, such as: Health, Stamina, Mana, Hunger, etc... StatPool will add a new resource you can use, called 'stat_pool'. Comes with boundaries (max and min), value, useful functions for handling the stat pool, and also handy signals that you can easily connect to UI, or anything else you need to manage the stats. Made to integrate Godot seamlessly, with optimization in focus. Visit the repository for more information: https://github.com/shoyguer/stat-pool Read the documentation for class reference, and code examples: https://github.com/shoyguer/stat-pool/wiki |
Godot GDExtension Plugin for handling Stat Pools - such as: Health, Stamina, Mana, Hunger etc... Made to integrate Godot seamlessly, with optimization in focus. Code example: ``` # Create a health stat var health = StatPool.new(0, 100, 80) # min=0, max=100, current=80 ## Signal connection func _ready() -> void: health.value_changed.connect(_on_health_changed) health.depleted.connect(_on_player_died) health.fully_restored.connect(_on_resurrected) ## Example for how to use this plugin func examples() -> void: # Take damage health.decrease(25) # Heal health.increase(10) # 0.65 (65%) print(health.get_percentage()) func _on_health_changed(old_value, new_value, increased): health_bar.value = health.get_percentage() * 100 func _on_player_died(): print("Game Over!") func _on_resurrected(): print("Respawn player") ``` |
Category | Tools | |
License | MIT | |
Repository Provider | Custom | |
Repository Url | https://github.com/shoyguer/stat-pool | |
Issues Url | https://github.com/shoyguer/stat-pool/issues | |
Godot version | Godot 4.5 | |
Version String | 1.0.13 | |
Download Commit | https://github.com/shoyguer/stat-pool/releases/download/1.0.13/stat_pool_1.0.13.zip | |
Download Url (Computed) | https://github.com/shoyguer/stat-pool/releases/download/1.0.13/stat_pool_1.0.13.zip | |
Icon Url |
https://raw.githubusercontent.com/shoyguer/stat-pool/refs/heads/main/brand/logo.png
![]() |