68 lines
2.4 KiB
Plaintext
68 lines
2.4 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://3acuhn3ykmnq"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dbgbygehmmopa" path="res://player.tscn" id="1_7bgs4"]
|
|
[ext_resource type="Script" uid="uid://dljnfwu2g88p1" path="res://GameManager.cs" id="1_284o0"]
|
|
[ext_resource type="PackedScene" uid="uid://bxkg2ri346c2o" path="res://ball.tscn" id="2_dcxy0"]
|
|
[ext_resource type="Texture2D" uid="uid://d08fnpfoa3vsl" path="res://Wall.png" id="4_elhby"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2o851"]
|
|
size = Vector2(18, 648)
|
|
|
|
[node name="Pong" type="Node2D"]
|
|
|
|
[node name="GameManager" type="Node2D" parent="."]
|
|
script = ExtResource("1_284o0")
|
|
|
|
[node name="Player1" parent="." instance=ExtResource("1_7bgs4")]
|
|
position = Vector2(64, 264)
|
|
|
|
[node name="Player2" parent="." instance=ExtResource("1_7bgs4")]
|
|
position = Vector2(1080, 256)
|
|
|
|
[node name="Ball" parent="." instance=ExtResource("2_dcxy0")]
|
|
position = Vector2(80, 216)
|
|
|
|
[node name="Walls" type="Node2D" parent="."]
|
|
|
|
[node name="WallLeft" type="Sprite2D" parent="Walls"]
|
|
position = Vector2(8, 325)
|
|
texture = ExtResource("4_elhby")
|
|
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="Walls/WallLeft"]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/WallLeft/StaticBody2D"]
|
|
shape = SubResource("RectangleShape2D_2o851")
|
|
|
|
[node name="WallRight" type="Sprite2D" parent="Walls"]
|
|
position = Vector2(1144, 325)
|
|
texture = ExtResource("4_elhby")
|
|
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="Walls/WallRight"]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/WallRight/StaticBody2D"]
|
|
shape = SubResource("RectangleShape2D_2o851")
|
|
|
|
[node name="WallTop" type="Sprite2D" parent="Walls"]
|
|
position = Vector2(576, 8)
|
|
rotation = 1.5708
|
|
scale = Vector2(1, 1.78)
|
|
texture = ExtResource("4_elhby")
|
|
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="Walls/WallTop"]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/WallTop/StaticBody2D"]
|
|
shape = SubResource("RectangleShape2D_2o851")
|
|
|
|
[node name="WallGround" type="Sprite2D" parent="Walls"]
|
|
position = Vector2(576, 640)
|
|
rotation = 1.5708
|
|
scale = Vector2(1, 1.78)
|
|
texture = ExtResource("4_elhby")
|
|
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="Walls/WallGround"]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/WallGround/StaticBody2D"]
|
|
shape = SubResource("RectangleShape2D_2o851")
|
|
|
|
[node name="AudioListener2D" type="AudioListener2D" parent="."]
|