-
Notifications
You must be signed in to change notification settings - Fork 0
/
ball.tscn
57 lines (42 loc) · 1.34 KB
/
ball.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[gd_scene load_steps=5 format=1]
[ext_resource path="res://ball.gd" type="Script" id=1]
[ext_resource path="res://ase/disc.png" type="Texture" id=2]
[sub_resource type="CircleShape2D" id=1]
custom_solver_bias = 0.0
radius = 9.61196
[sub_resource type="Animation" id=2]
resource/name = "spin"
length = 0.6
loop = true
step = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath("sprite:frame")
tracks/0/interp = 1
tracks/0/keys = { "cont":true, "times":FloatArray( 0, 0.6 ), "transitions":FloatArray( 1, 1 ), "values":[ 0, 5 ] }
[node name="ball" type="KinematicBody2D"]
input/pickable = false
shapes/0/shape = SubResource( 1 )
shapes/0/transform = Matrix32( 1, 0, 0, 0.956933, 0, 0.507777 )
shapes/0/trigger = false
collision/layers = 2
collision/mask = 2
collision/margin = 0.08
script/script = ExtResource( 1 )
[node name="sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
hframes = 6
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
transform/pos = Vector2( 0, 0.507777 )
transform/scale = Vector2( 1, 0.956933 )
shape = SubResource( 1 )
trigger = false
_update_shape_index = 0
[node name="anim" type="AnimationPlayer" parent="."]
playback/process_mode = 1
playback/default_blend_time = 0.0
root/root = NodePath("..")
anims/spin = SubResource( 2 )
playback/active = true
playback/speed = 1.0
blend_times = [ ]
autoplay = "spin"