blob: 31b82410a81e940bac800f2d10544721fc2fa63f (
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
|
[gd_scene load_steps=9 format=3 uid="uid://dprjenpi8i42x"]
[ext_resource type="PackedScene" uid="uid://dbcc3l74gqjjo" path="res://scenes/hoop.tscn" id="2"]
[ext_resource type="PackedScene" uid="uid://dnb0otlc0mnc5" path="res://scenes/basketball.tscn" id="3"]
[ext_resource type="PackedScene" uid="uid://cixqgc85i5wnn" path="res://scenes/interface.tscn" id="4"]
[ext_resource type="Texture2D" uid="uid://f47j73kxq8lf" path="res://textures/court.png" id="5_53mtb"]
[ext_resource type="Script" path="res://scripts/camera.gd" id="6"]
[sub_resource type="WorldBoundaryShape2D" id="1"]
[sub_resource type="WorldBoundaryShape2D" id="2"]
normal = Vector2(-1, 0)
[sub_resource type="WorldBoundaryShape2D" id="3"]
normal = Vector2(1, 0)
[node name="Node2D" type="Node2D"]
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2(123, 55)
position_smoothing_speed = 7.0
script = ExtResource("6")
[node name="Interface" parent="." instance=ExtResource("4")]
[node name="Background" type="StaticBody2D" parent="."]
[node name="FloorCollider" type="CollisionShape2D" parent="Background"]
position = Vector2(93, 113)
shape = SubResource("1")
[node name="RightWallCollider" type="CollisionShape2D" parent="Background"]
position = Vector2(194, 20)
shape = SubResource("2")
[node name="LeftWallCollider" type="CollisionShape2D" parent="Background"]
position = Vector2(-281, 20)
shape = SubResource("3")
[node name="Court" type="Sprite2D" parent="Background"]
position = Vector2(-34, -8)
texture = ExtResource("5_53mtb")
[node name="Hoop" parent="." instance=ExtResource("2")]
position = Vector2(142, 34)
[node name="Basketball" parent="." instance=ExtResource("3")]
position = Vector2(103, 73)
max_contacts_reported = 1
contact_monitor = true
[connection signal="score" from="Hoop" to="Interface" method="_on_Hoop_score"]
[connection signal="score" from="Hoop" to="Basketball" method="_on_Hoop_score"]
[connection signal="body_entered" from="Basketball" to="Basketball" method="_on_body_entered"]
[connection signal="reset" from="Basketball" to="Camera2D" method="_on_Basketball_reset"]
[connection signal="reset" from="Basketball" to="Hoop" method="_on_Basketball_reset"]
|