Cow_Life_Sim_RPG/Objects/Beach/Ball/Ball.tscn

100 lines
3 KiB
Plaintext

[gd_scene load_steps=12 format=3 uid="uid://8jef5kumlrl1"]
[ext_resource type="Script" path="res://Objects/Beach/Ball/Ball.gd" id="1_mmm50"]
[ext_resource type="PackedScene" uid="uid://bge2o2ibggnr2" path="res://Objects/Beach/Ball/Spatial.tscn" id="2_pkbtd"]
[ext_resource type="Texture2D" uid="uid://x8knv88cjk5n" path="res://Objects/Beach/Ball/Waves1.png" id="4_vqs18"]
[ext_resource type="Texture2D" uid="uid://dvjr4e2vm8so0" path="res://Objects/Beach/Ball/Waves2.png" id="5_w64jh"]
[ext_resource type="Script" path="res://Utils/PlayOnReady.gd" id="6_5dfrg"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_t8pqq"]
friction = 0.8
bounce = 0.9
[sub_resource type="CircleShape2D" id="CircleShape2D_23c5e"]
radius = 28.0
[sub_resource type="SpriteFrames" id="SpriteFrames_p8h04"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_vqs18")
}, {
"duration": 1.0,
"texture": ExtResource("5_w64jh")
}],
"loop": true,
"name": &"default",
"speed": 1.5
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_j5o7d"]
radius = 45.1774
[sub_resource type="Gradient" id="Gradient_w7c4l"]
offsets = PackedFloat32Array(0, 0.673387, 1)
colors = PackedColorArray(0.756863, 1, 1, 1, 0.756863, 1, 1, 1, 0.756863, 1, 1, 0)
[sub_resource type="CircleShape2D" id="CircleShape2D_0uknw"]
radius = 13.0384
[node name="Ball" type="RigidBody2D"]
mass = 0.1
physics_material_override = SubResource("PhysicsMaterial_t8pqq")
gravity_scale = 0.0
can_sleep = false
lock_rotation = true
linear_damp = 0.6
angular_damp = 30.0
script = ExtResource("1_mmm50")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_23c5e")
[node name="Sprite2D" type="Sprite2D" parent="."]
[node name="Waves" type="AnimatedSprite2D" parent="."]
unique_name_in_owner = true
visible = false
scale = Vector2(0.4, 0.4)
sprite_frames = SubResource("SpriteFrames_p8h04")
frame_progress = 0.0419452
script = ExtResource("6_5dfrg")
[node name="SubViewport" type="SubViewport" parent="."]
own_world_3d = true
transparent_bg = true
size = Vector2i(80, 80)
[node name="Spatial" parent="SubViewport" instance=ExtResource("2_pkbtd")]
[node name="KickZone" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="KickZone"]
shape = SubResource("CircleShape2D_j5o7d")
[node name="WaterSpray" type="CPUParticles2D" parent="."]
z_as_relative = false
y_sort_enabled = true
position = Vector2(0, 20)
emitting = false
amount = 160
emission_shape = 1
emission_sphere_radius = 15.7
direction = Vector2(0, -10)
gravity = Vector2(0, 200)
initial_velocity_min = 108.11
initial_velocity_max = 148.65
color = Color(0.756863, 1, 1, 1)
color_ramp = SubResource("Gradient_w7c4l")
[node name="KickSound" type="AudioStreamPlayer2D" parent="."]
bus = &"SFX"
[node name="WaterZone" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="WaterZone"]
position = Vector2(0, 8)
shape = SubResource("CircleShape2D_0uknw")
[connection signal="body_entered" from="KickZone" to="." method="_on_kick_zone_body_entered"]