init
This commit is contained in:
30
max-effort/Objects/bench_press.tscn
Normal file
30
max-effort/Objects/bench_press.tscn
Normal file
@@ -0,0 +1,30 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dxq2510ywj1hy"]
|
||||
|
||||
[ext_resource type="GameState" uid="uid://2gma8vvisnqo" path="res://Resources/GameState.tres" id="1_tik8c"]
|
||||
[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="."]
|
||||
game_state = ExtResource("1_tik8c")
|
||||
|
||||
[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")
|
||||
game_state = ExtResource("1_tik8c")
|
||||
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)])
|
||||
46
max-effort/Objects/bench_press_stickman.tscn
Normal file
46
max-effort/Objects/bench_press_stickman.tscn
Normal file
@@ -0,0 +1,46 @@
|
||||
[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")
|
||||
speed_scale = 0.0
|
||||
16
max-effort/Objects/deadlift.tscn
Normal file
16
max-effort/Objects/deadlift.tscn
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dx1k40qfioaas"]
|
||||
|
||||
[ext_resource type="GameState" uid="uid://2gma8vvisnqo" path="res://Resources/GameState.tres" 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="DeadliftSystem" parent="." node_paths=PackedStringArray("bar_visual")]
|
||||
bar_height = 7.0
|
||||
bar_visual = NodePath("../Barbell")
|
||||
end_pos = Vector2(0, -30)
|
||||
game_state = ExtResource("1_n6ace")
|
||||
|
||||
[node name="Barbell" type="Sprite2D" parent="."]
|
||||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("2_ltxro")
|
||||
15
max-effort/Objects/hazard_animated.tscn
Normal file
15
max-effort/Objects/hazard_animated.tscn
Normal file
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bqxc62tofqger"]
|
||||
|
||||
[ext_resource type="GameState" uid="uid://2gma8vvisnqo" path="res://Resources/GameState.tres" id="1_strkh"]
|
||||
|
||||
[node name="HazardAnimated" type="HazardController" node_paths=PackedStringArray("anim_sprite", "click_area", "click_shape")]
|
||||
anim_sprite = NodePath("AnimatedSprite2D")
|
||||
click_area = NodePath("Area2D")
|
||||
click_shape = NodePath("Area2D/CollisionShape2D")
|
||||
game_state = ExtResource("1_strkh")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
Reference in New Issue
Block a user