114 lines
3.2 KiB
Text
114 lines
3.2 KiB
Text
[gd_scene load_steps=16 format=3 uid="uid://cmgwv41ht3q4j"]
|
|
|
|
[ext_resource type="Script" uid="uid://d2s0fid28eihy" path="res://scenes/ball/ball.gd" id="1_nv6q1"]
|
|
[ext_resource type="Texture2D" uid="uid://b8x8g212emfuo" path="res://scenes/ball/assets/ball-spritesheet.png" id="2_nv6q1"]
|
|
[ext_resource type="Texture2D" uid="uid://dpcrumi6jrsp4" path="res://scenes/ball/assets/ballshadow.png" id="2_stoaj"]
|
|
|
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_oqv3d"]
|
|
friction = 0.0
|
|
bounce = 0.3
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_nv6q1"]
|
|
radius = 9.0
|
|
height = 22.0
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_stoaj"]
|
|
atlas = ExtResource("2_nv6q1")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xotqv"]
|
|
atlas = ExtResource("2_nv6q1")
|
|
region = Rect2(16, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jbgth"]
|
|
atlas = ExtResource("2_nv6q1")
|
|
region = Rect2(32, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_yjhvv"]
|
|
atlas = ExtResource("2_nv6q1")
|
|
region = Rect2(48, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_a81tc"]
|
|
atlas = ExtResource("2_nv6q1")
|
|
region = Rect2(64, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_r8c1m"]
|
|
atlas = ExtResource("2_nv6q1")
|
|
region = Rect2(80, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rp1mh"]
|
|
atlas = ExtResource("2_nv6q1")
|
|
region = Rect2(96, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lsomj"]
|
|
atlas = ExtResource("2_nv6q1")
|
|
region = Rect2(112, 0, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_43gob"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_stoaj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_xotqv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jbgth")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_yjhvv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_a81tc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_r8c1m")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_rp1mh")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_lsomj")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_stoaj"]
|
|
radius = 7.0
|
|
height = 16.0
|
|
|
|
[node name="Ball" type="RigidBody2D"]
|
|
collision_layer = 16
|
|
collision_mask = 5
|
|
physics_material_override = SubResource("PhysicsMaterial_oqv3d")
|
|
gravity_scale = 0.0
|
|
lock_rotation = true
|
|
continuous_cd = 1
|
|
script = ExtResource("1_nv6q1")
|
|
|
|
[node name="HurtArea2D" type="Area2D" parent="."]
|
|
collision_layer = 32
|
|
collision_mask = 64
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="HurtArea2D"]
|
|
position = Vector2(0, -1)
|
|
rotation = 1.5707964
|
|
shape = SubResource("CapsuleShape2D_nv6q1")
|
|
debug_color = Color(0.8785819, 0.30416045, 0.40790904, 0.41960785)
|
|
|
|
[node name="ShadowSprite2D" type="Sprite2D" parent="."]
|
|
modulate = Color(1, 1, 1, 0.28235295)
|
|
texture = ExtResource("2_stoaj")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_43gob")
|
|
frame = 6
|
|
frame_progress = 0.2223859
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -1)
|
|
rotation = 1.5707964
|
|
shape = SubResource("CapsuleShape2D_stoaj")
|