Added health bar and snail behavior enhancements
- Introduced a health bar for flowers, which updates based on the current GameState values. - Enhanced snail behavior with eating and sleeping states. Snails now have a chance to switch to the sleeping state while eating. - Improved mouse interaction with snails, allowing them to potentially switch to sleep mode when clicked. - Refactored cursor management into its own class for better code organization and readability. - Updated drone placement logic to use the new CursorManager class. - Added functionality for bees to replenish flower nectar levels after a certain number of deposits.
This commit is contained in:
parent
2a9e78b52e
commit
f0a7c5ca05
12 changed files with 167 additions and 33 deletions
|
|
@ -126,3 +126,13 @@ libraries = {
|
|||
autoplay = "Highlight"
|
||||
|
||||
[node name="Snail" parent="." instance=ExtResource("5_5uu7l")]
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="."]
|
||||
offset_left = -50.0
|
||||
offset_top = 90.0
|
||||
offset_right = 50.0
|
||||
offset_bottom = 110.0
|
||||
mouse_filter = 2
|
||||
max_value = 10.0
|
||||
step = 1.0
|
||||
show_percentage = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue