-
Notifications
You must be signed in to change notification settings - Fork 0
/
Level.tscn
74 lines (55 loc) · 2.33 KB
/
Level.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
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Player.tscn" type="PackedScene" id=1]
[ext_resource path="res://Ball.tscn" type="PackedScene" id=2]
[ext_resource path="res://Oponente.gd" type="Script" id=3]
[ext_resource path="res://Level.gd" type="Script" id=4]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 960, 50 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 50, 540 )
[node name="Level" type="Node2D"]
script = ExtResource( 4 )
[node name="ParedSuperior" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="ParedSuperior"]
position = Vector2( 960, -50 )
shape = SubResource( 1 )
[node name="ParedInferior" type="StaticBody2D" parent="."]
position = Vector2( 0, 1130 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="ParedInferior"]
position = Vector2( 960, 0 )
shape = SubResource( 1 )
[node name="ArcoPlayer" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="ArcoPlayer"]
position = Vector2( -50, 540 )
shape = SubResource( 2 )
[node name="ArcoOponente" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="ArcoOponente"]
position = Vector2( 1970, 540 )
shape = SubResource( 2 )
[node name="Player" parent="." instance=ExtResource( 1 )]
position = Vector2( 50, 460 )
[node name="Oponente" parent="." instance=ExtResource( 1 )]
position = Vector2( 1870, 460 )
script = ExtResource( 3 )
[node name="Ball" parent="." instance=ExtResource( 2 )]
position = Vector2( 960, 540 )
[node name="MarcadorPlayer" type="Label" parent="."]
margin_left = -200.0
margin_right = 1920.0
margin_bottom = 1080.0
custom_colors/font_color = Color( 0.823529, 0.466667, 0.141176, 1 )
text = "MarcadorPlayer"
align = 1
valign = 1
[node name="MarcadorOponente" type="Label" parent="."]
margin_left = 200.0
margin_right = 1920.0
margin_bottom = 1080.0
custom_colors/font_color = Color( 0.823529, 0.466667, 0.141176, 1 )
text = "MarcadorOponente"
align = 1
valign = 1
[node name="RestartTimer" type="Timer" parent="."]
[connection signal="body_entered" from="ArcoPlayer" to="." method="_on_ArcoPlayer_body_entered"]
[connection signal="body_entered" from="ArcoOponente" to="." method="_on_ArcoOponente_body_entered"]
[connection signal="timeout" from="RestartTimer" to="Ball" method="_on_RestartTimer_timeout"]