add initial project files and configurations, including EventBus, systems, and resources
This commit is contained in:
36
Objects/bench_press.tscn
Normal file
36
Objects/bench_press.tscn
Normal file
@@ -0,0 +1,36 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dxq2510ywj1hy"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dg5h252kyse6b" path="res://Code/Systems/BenchPressSystem.cs" id="1_0c1tm"]
|
||||
[ext_resource type="Texture2D" uid="uid://dsovna2tmb4o3" path="res://Sprites/bench.png" id="2_ky8t4"]
|
||||
[ext_resource type="PackedScene" uid="uid://dn8y3bgovnh4a" path="res://Objects/bench_press_stickman.tscn" id="3_uh874"]
|
||||
[ext_resource type="Texture2D" uid="uid://cbgn8aspf7oi0" path="res://Sprites/barbell.png" id="4_tssew"]
|
||||
[ext_resource type="Script" uid="uid://ck4dtxhknj8di" path="res://Code/Visuals/LiftSyncController.cs" id="5_ky8t4"]
|
||||
|
||||
[node name="BenchPress" type="Node"]
|
||||
|
||||
[node name="System" type="Node" parent="."]
|
||||
script = ExtResource("1_0c1tm")
|
||||
metadata/_custom_type_script = "uid://dg5h252kyse6b"
|
||||
|
||||
[node name="Bench" type="Sprite2D" parent="."]
|
||||
position = Vector2(11, 1)
|
||||
scale = Vector2(2.0859375, 2.0859375)
|
||||
texture = ExtResource("2_ky8t4")
|
||||
|
||||
[node name="BenchPressStickman" parent="." instance=ExtResource("3_uh874")]
|
||||
frame = 0
|
||||
frame_progress = 0.0
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Barbell" type="Sprite2D" parent="."]
|
||||
position = Vector2(22, -4.9999995)
|
||||
scale = Vector2(2.4322035, 2.4322033)
|
||||
texture = ExtResource("4_tssew")
|
||||
|
||||
[node name="LiftSyncController" type="Node" parent="." node_paths=PackedStringArray("_playerAnim", "_barbell")]
|
||||
script = ExtResource("5_ky8t4")
|
||||
_playerAnim = NodePath("../BenchPressStickman")
|
||||
_barbell = NodePath("../Barbell")
|
||||
_animationName = "default"
|
||||
_barPositions = Array[Vector2]([Vector2(19, -5.000004), Vector2(19, -19), Vector2(21, -36), Vector2(21, -15.000002), Vector2(23, 2.9999962), Vector2(22, 10.999999), Vector2(22, -0.9999981), Vector2(22, -0.9999981)])
|
||||
metadata/_custom_type_script = "uid://ck4dtxhknj8di"
|
||||
48
Objects/bench_press_stickman.tscn
Normal file
48
Objects/bench_press_stickman.tscn
Normal file
@@ -0,0 +1,48 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://dn8y3bgovnh4a"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dci4cuavfc4la" path="res://Sprites/bench_press0.png" id="1_8snp0"]
|
||||
[ext_resource type="Texture2D" uid="uid://dya801bkqxdpa" path="res://Sprites/bench_press1.png" id="2_ckjrk"]
|
||||
[ext_resource type="Texture2D" uid="uid://bbxviq4c0pyju" path="res://Sprites/bench_press2.png" id="3_s2d21"]
|
||||
[ext_resource type="Texture2D" uid="uid://biu7q8mfw62be" path="res://Sprites/bench_press3.png" id="4_e1c5r"]
|
||||
[ext_resource type="Texture2D" uid="uid://bg06qtcl207do" path="res://Sprites/bench_press4.png" id="5_pwixy"]
|
||||
[ext_resource type="Texture2D" uid="uid://bkypgv8rfcd8k" path="res://Sprites/bench_press5.png" id="6_6piga"]
|
||||
[ext_resource type="Texture2D" uid="uid://warnmdoebwht" path="res://Sprites/bench_press6.png" id="7_ex7t0"]
|
||||
[ext_resource type="Texture2D" uid="uid://yrorih7pbt0q" path="res://Sprites/bench_press7.png" id="8_as8xi"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_edqll"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("1_8snp0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_ckjrk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_s2d21")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_e1c5r")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_pwixy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_6piga")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_ex7t0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_as8xi")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[node name="BenchPressStickman" type="AnimatedSprite2D"]
|
||||
sprite_frames = SubResource("SpriteFrames_edqll")
|
||||
frame = 5
|
||||
frame_progress = 0.922402
|
||||
speed_scale = 0.0
|
||||
16
Objects/deadlift.tscn
Normal file
16
Objects/deadlift.tscn
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dx1k40qfioaas"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dpes80ppxqppv" path="res://Code/Systems/DeadliftSystem.cs" id="1_n6ace"]
|
||||
[ext_resource type="Texture2D" uid="uid://cbgn8aspf7oi0" path="res://Sprites/barbell.png" id="2_ltxro"]
|
||||
|
||||
[node name="Deadlift" type="Node"]
|
||||
|
||||
[node name="System" type="Node" parent="." node_paths=PackedStringArray("_barVisual")]
|
||||
script = ExtResource("1_n6ace")
|
||||
_barHeight = 7.0
|
||||
_barVisual = NodePath("../Bar")
|
||||
_endPos = Vector2(0, -30)
|
||||
metadata/_custom_type_script = "uid://dpes80ppxqppv"
|
||||
|
||||
[node name="Bar" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_ltxro")
|
||||
15
Objects/hazard_animated.tscn
Normal file
15
Objects/hazard_animated.tscn
Normal file
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://btslndkq4qgcb"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cfpdfb8fnym2y" path="res://Code/Systems/HazardController.cs" id="1_strkh"]
|
||||
|
||||
[node name="HazardAnimated" type="Node2D" node_paths=PackedStringArray("_animSprite", "_clickArea", "_clickShape")]
|
||||
script = ExtResource("1_strkh")
|
||||
_animSprite = NodePath("AnimatedSprite2D")
|
||||
_clickArea = NodePath("Area2D")
|
||||
_clickShape = NodePath("Area2D/CollisionShape2D")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
41
Objects/hazard_generic.tscn
Normal file
41
Objects/hazard_generic.tscn
Normal file
@@ -0,0 +1,41 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://c1rp504isupmo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cfpdfb8fnym2y" path="res://Code/Systems/HazardController.cs" id="1_u12lg"]
|
||||
|
||||
[node name="Hazard_Generic" type="Control" node_paths=PackedStringArray("_iconDisplay", "_nameLabel", "_interactionButton")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_u12lg")
|
||||
_iconDisplay = NodePath("TextureRect")
|
||||
_nameLabel = NodePath("Label")
|
||||
_interactionButton = NodePath("Button")
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_bottom = 89.0
|
||||
grow_horizontal = 2
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
Reference in New Issue
Block a user