-
Notifications
You must be signed in to change notification settings - Fork 8
/
Ball.tscn
46 lines (39 loc) · 1.09 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
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Ball.gd" type="Script" id=1]
[ext_resource path="res://graphics/ball.png" type="Texture" id=2]
[ext_resource path="res://graphics/particle.png" type="Texture" id=3]
[sub_resource type="PhysicsMaterial" id=1]
friction = 0.0
bounce = 0.1
[sub_resource type="CircleShape2D" id=2]
radius = 24.0
[node name="Ball" type="RigidBody2D" groups=[
"balls",
]]
pause_mode = 1
collision_layer = 2
collision_mask = 7
mode = 2
physics_material_override = SubResource( 1 )
continuous_cd = 2
contacts_reported = 1
contact_monitor = true
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
[node name="CPUParticles2D" type="CPUParticles2D" parent="."]
emitting = false
amount = 64
lifetime = 0.5
local_coords = false
texture = ExtResource( 3 )
flag_align_y = true
spread = 180.0
gravity = Vector2( 0, 0 )
initial_velocity = 40.0
initial_velocity_random = 1.0
angular_velocity = 3.0
scale_amount = 2.0
scale_amount_random = 1.0