summaryrefslogtreecommitdiff
path: root/scenes/level.tscn
blob: dbf4ba12506c9f41bbbad1ab34a1801f8c6d527a (plain)
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
[gd_scene load_steps=10 format=2]

[ext_resource path="res://textures/court_lines.png" type="Texture" id=1]
[ext_resource path="res://scenes/hoop.tscn" type="PackedScene" id=2]
[ext_resource path="res://scenes/basketball.tscn" type="PackedScene" id=3]
[ext_resource path="res://scenes/interface.tscn" type="PackedScene" id=4]
[ext_resource path="res://textures/court_tile.png" type="Texture" id=5]
[ext_resource path="res://scripts/camera.gd" type="Script" id=6]

[sub_resource type="LineShape2D" id=1]
d = 10.0

[sub_resource type="LineShape2D" id=2]
normal = Vector2( -1, 0 )

[sub_resource type="LineShape2D" id=3]
normal = Vector2( 1, 0 )

[node name="Node2D" type="Node2D"]

[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2( 123, 73 )
current = true
limit_left = -202
limit_top = -150
limit_right = 214
limit_bottom = 120
smoothing_enabled = true
smoothing_speed = 7.0
script = ExtResource( 6 )

[node name="Interface" parent="." instance=ExtResource( 4 )]

[node name="Background" type="StaticBody2D" parent="."]
z_index = -1

[node name="CourtLines" type="Sprite" parent="Background"]
position = Vector2( 134, 56 )
texture = ExtResource( 1 )

[node name="FloorCollider" type="CollisionShape2D" parent="Background"]
position = Vector2( 93, 113 )
shape = SubResource( 1 )

[node name="CourtTile" type="TextureRect" parent="Background"]
margin_left = -202.0
margin_top = -8.0
margin_right = 55.0
margin_bottom = 120.0
mouse_filter = 2
texture = ExtResource( 5 )
stretch_mode = 2

[node name="RightWallCollider" type="CollisionShape2D" parent="Background"]
position = Vector2( 194, 20 )
shape = SubResource( 2 )

[node name="LeftWallCollider" type="CollisionShape2D" parent="Background"]
position = Vector2( -202, 20 )
shape = SubResource( 3 )

[node name="WallCourtLines" type="Sprite" parent="Background"]
position = Vector2( 141, -128 )
scale = Vector2( 1, 2 )
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 87, 0, 73, 60 )

[node name="WallCourtTile" type="Sprite" parent="Background"]
position = Vector2( -202, -128 )
scale = Vector2( 10.719, 2 )
texture = ExtResource( 5 )
centered = false
region_enabled = true
region_rect = Rect2( 0, 0, 32, 60 )

[node name="Hoop" parent="." instance=ExtResource( 2 )]
position = Vector2( 163, 37 )

[node name="Basketball" parent="." instance=ExtResource( 3 )]
position = Vector2( 123, 73 )

[connection signal="score" from="Hoop" to="Interface" method="_on_Hoop_score"]
[connection signal="score" from="Hoop" to="Basketball" method="_on_Hoop_score"]
[connection signal="reset" from="Basketball" to="Hoop" method="_on_Basketball_reset"]