-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWorld.tscn
98 lines (75 loc) · 2.62 KB
/
World.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Sprites/paddle.png" type="Texture" id=1]
[ext_resource path="res://Objects/Ball.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scripts/Paddle.gd" type="Script" id=3]
[ext_resource path="res://Objects/Brick.tscn" type="PackedScene" id=4]
[ext_resource path="res://Scripts/World.gd" type="Script" id=5]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 40, 4 )
[node name="World" type="Node2D"]
script = ExtResource( 5 )
[node name="Paddle" type="KinematicBody2D" parent="."]
position = Vector2( 296, 325 )
script = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Paddle"]
shape = SubResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="Sprite" type="Sprite" parent="Paddle"]
scale = Vector2( 2, 2 )
texture = ExtResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="Ancor" type="Position2D" parent="Paddle"]
position = Vector2( 0, 32 )
__meta__ = {
"_edit_lock_": true
}
[node name="Ball" parent="." instance=ExtResource( 2 )]
SPEEDUP = 10
MAXSPEED = 400
[node name="Walls" type="StaticBody2D" parent="."]
__meta__ = {
"_edit_lock_": true
}
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Walls"]
polygon = PoolVector2Array( 0, 416, -96, 416, -96, -64, 704, -64, 704, 416, 640, 416, 640, 0, 0, 0 )
__meta__ = {
"_edit_lock_": true
}
[node name="Bricks" type="Node2D" parent="."]
__meta__ = {
"_edit_lock_": true
}
[node name="Brick" parent="Bricks" instance=ExtResource( 4 )]
position = Vector2( 224, 112 )
[node name="Brick2" parent="Bricks" instance=ExtResource( 4 )]
position = Vector2( 288, 112 )
[node name="Brick3" parent="Bricks" instance=ExtResource( 4 )]
position = Vector2( 352, 112 )
[node name="Brick4" parent="Bricks" instance=ExtResource( 4 )]
position = Vector2( 416, 112 )
[node name="Brick5" parent="Bricks" instance=ExtResource( 4 )]
position = Vector2( 256, 144 )
[node name="Brick6" parent="Bricks" instance=ExtResource( 4 )]
position = Vector2( 320, 144 )
[node name="Brick7" parent="Bricks" instance=ExtResource( 4 )]
position = Vector2( 384, 144 )
[node name="Brick8" parent="Bricks" instance=ExtResource( 4 )]
position = Vector2( 288, 176 )
[node name="Brick9" parent="Bricks" instance=ExtResource( 4 )]
position = Vector2( 352, 176 )
[node name="Brick10" parent="Bricks" instance=ExtResource( 4 )]
position = Vector2( 320, 208 )
[node name="Score" type="Label" parent="."]
margin_left = 32.0
margin_top = 16.0
margin_right = 72.0
margin_bottom = 30.0
text = "Score : 0"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="brick_hit" from="Ball" to="." method="_on_Ball_brick_hit"]