-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMain.tscn
75 lines (55 loc) · 2.15 KB
/
Main.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
[gd_scene load_steps=12 format=2]
[ext_resource path="res://Paddle.tscn" type="PackedScene" id=1]
[ext_resource path="res://ball.png" type="Texture" id=2]
[ext_resource path="res://Ball.gd" type="Script" id=3]
[ext_resource path="res://Computer.gd" type="Script" id=4]
[ext_resource path="res://PlayerBackWall.gd" type="Script" id=5]
[ext_resource path="res://Player.gd" type="Script" id=6]
[sub_resource type="CircleShape2D" id=1]
radius = 10.1874
[sub_resource type="SegmentShape2D" id=2]
a = Vector2( 0, 600 )
b = Vector2( 0, 0 )
[sub_resource type="SegmentShape2D" id=3]
a = Vector2( 1024, 0 )
b = Vector2( 1024, 600 )
[sub_resource type="SegmentShape2D" id=4]
a = Vector2( 0, 600 )
b = Vector2( 1024, 600 )
[sub_resource type="SegmentShape2D" id=5]
b = Vector2( 1024, 0 )
[node name="Node2D" type="Node2D"]
[node name="Computer" parent="." instance=ExtResource( 1 )]
position = Vector2( 75, 300 )
script = ExtResource( 4 )
moving = true
[node name="Player" parent="." instance=ExtResource( 1 )]
position = Vector2( 949, 300 )
script = ExtResource( 6 )
speed = 500
[node name="Ball" type="KinematicBody2D" parent="."]
position = Vector2( 512, 280 )
rotation = 0.174533
script = ExtResource( 3 )
rotation_minimum = 20
rotation_maximum = 25
opposite_side_offset = 270
[node name="Sprite" type="Sprite" parent="Ball"]
scale = Vector2( 0.1, 0.1 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ball"]
shape = SubResource( 1 )
[node name="ComputerBackWall" type="KinematicBody2D" parent="."]
script = ExtResource( 5 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="ComputerBackWall"]
shape = SubResource( 2 )
[node name="PlayerBackWall" type="KinematicBody2D" parent="."]
script = ExtResource( 5 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerBackWall"]
shape = SubResource( 3 )
[node name="BottomWall" type="KinematicBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="BottomWall"]
shape = SubResource( 4 )
[node name="KinematicBody2D" type="KinematicBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBody2D"]
shape = SubResource( 5 )