- Removed direct dependencies on GameState in multiple systems, replacing them with EventBus for event-driven architecture. - Updated CameraShakeSystem to handle focus changes and trauma through EventBus. - Modified DeadliftSystem to manage lift efforts and hazards using EventBus. - Refactored GameManager to handle lift results and day transitions via EventBus. - Adjusted HazardController and HazardSystem to publish and respond to hazard events through EventBus. - Enhanced PlayerInputSystem to publish lift efforts and focus releases using EventBus. - Updated SoundManager to handle various audio events through EventBus, improving sound management. - Refined TunnelSystem to manage focus changes and lift efforts using EventBus. - Adjusted LiftProgressBar to update progress based on events from EventBus. - Enhanced LiftSyncController to synchronize animations based on lift efforts and focus events via EventBus.
15 lines
482 B
Plaintext
15 lines
482 B
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://dx1k40qfioaas"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cbgn8aspf7oi0" path="res://Sprites/barbell.png" id="2_ltxro"]
|
|
|
|
[node name="Deadlift" type="Node"]
|
|
|
|
[node name="System" type="DeadliftSystem" parent="." node_paths=PackedStringArray("bar_visual")]
|
|
bar_height = 7.0
|
|
bar_visual = NodePath("../Barbell")
|
|
end_pos = Vector2(0, -30)
|
|
|
|
[node name="Barbell" type="Sprite2D" parent="."]
|
|
scale = Vector2(2, 2)
|
|
texture = ExtResource("2_ltxro")
|