[gd_scene load_steps=9 format=3 uid="uid://bwtjfpfkykfdr"] [ext_resource type="Script" uid="uid://bt4bdjyekgh53" path="res://scripts/ball_snake/ball_snake.gd" id="1_7ck2q"] [ext_resource type="Texture2D" uid="uid://cvgdwf28yr7fw" path="res://assets/textures/rotoboy/rotoboy.png" id="2_3s2uc"] [ext_resource type="Texture2D" uid="uid://ckfu1u3qxssrj" path="res://assets/textures/rotoboy/rotoboy_face.png" id="3_gp51k"] [sub_resource type="PhysicsMaterial" id="PhysicsMaterial_sc2kd"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_8o2cr"] size = Vector2(48, 8) [sub_resource type="Animation" id="Animation_bsslc"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("RotatingPiece:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [0.0] } [sub_resource type="Animation" id="Animation_eby5m"] resource_name = "spin" length = 5.0 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("RotatingPiece:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = false tracks/0/keys = { "times": PackedFloat32Array(-0.0333333, 3, 4.2), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [0.0, 0.0, 12.5664] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_l3464"] _data = { &"RESET": SubResource("Animation_bsslc"), &"spin": SubResource("Animation_eby5m") } [node name="RotoBoy" type="Node2D"] [node name="RotatingPiece" type="Node2D" parent="."] [node name="SnakeEndLeft" type="Node2D" parent="RotatingPiece"] position = Vector2(-20, 0) [node name="SnakeEndRight" type="Node2D" parent="RotatingPiece"] position = Vector2(20, 0) [node name="AnimatableBody2D" type="AnimatableBody2D" parent="RotatingPiece"] physics_material_override = SubResource("PhysicsMaterial_sc2kd") [node name="CollisionShape2D" type="CollisionShape2D" parent="RotatingPiece/AnimatableBody2D"] shape = SubResource("RectangleShape2D_8o2cr") [node name="BallSnakeLeft" type="Node2D" parent="." node_paths=PackedStringArray("target")] script = ExtResource("1_7ck2q") texture = ExtResource("2_3s2uc") target = NodePath("../RotatingPiece/SnakeEndLeft") segments = 2 tail_segment = false auto_density = true pixels_per_segment = 6.0 [node name="BallSnakeRight" type="Node2D" parent="." node_paths=PackedStringArray("target")] script = ExtResource("1_7ck2q") texture = ExtResource("2_3s2uc") target = NodePath("../RotatingPiece/SnakeEndRight") segments = 2 tail_segment = false auto_density = true pixels_per_segment = 6.0 [node name="Sprite2D" type="Sprite2D" parent="."] texture = ExtResource("3_gp51k") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_l3464") } autoplay = "spin"