Files
max-effort-rs/max-effort/Objects/bench_press.tscn
Gabriel Kaszewski 266fa4ac1d Refactor systems to use EventBus for communication
- 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.
2026-01-24 18:15:34 +01:00

28 lines
1.2 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://dxq2510ywj1hy"]
[ext_resource type="PackedScene" uid="uid://dn8y3bgovnh4a" path="res://Objects/bench_press_stickman.tscn" id="2_0c1tm"]
[ext_resource type="Texture2D" uid="uid://dsovna2tmb4o3" path="res://Sprites/bench.png" id="2_ky8t4"]
[ext_resource type="Texture2D" uid="uid://cbgn8aspf7oi0" path="res://Sprites/barbell.png" id="3_ky8t4"]
[node name="BenchPress" type="Node"]
[node name="System" type="BenchPressSystem" parent="."]
[node name="Bench" type="Sprite2D" parent="."]
position = Vector2(11, 1)
scale = Vector2(2.086, 2.086)
texture = ExtResource("2_ky8t4")
[node name="BenchPressStickman" parent="." instance=ExtResource("2_0c1tm")]
[node name="Barbell" type="Sprite2D" parent="."]
position = Vector2(22, -5)
scale = Vector2(2.432, 2.432)
texture = ExtResource("3_ky8t4")
[node name="LiftSyncController" type="LiftSyncController" parent="." node_paths=PackedStringArray("player_anim", "barbell")]
player_anim = NodePath("../BenchPressStickman")
barbell = NodePath("../Barbell")
animation_name = "default"
bar_positions = Array[Vector2]([Vector2(19, -5), Vector2(19, -19), Vector2(21, -36), Vector2(21, -15), Vector2(23, 3), Vector2(22, 11), Vector2(22, -1), Vector2(22, -1)])