godot-demo-projects/networking/multiplayer_pong/pong.tscn

85 lines
2.1 KiB
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://pong.gd" type="Script" id=1]
[ext_resource path="res://separator.png" type="Texture" id=2]
[ext_resource path="res://paddle.tscn" type="PackedScene" id=3]
[ext_resource path="res://ball.tscn" type="PackedScene" id=4]
[node name="pong" type="Node2D"]
script = ExtResource( 1 )
[node name="separator" type="Sprite" parent="."]
position = Vector2( 320, 200 )
texture = ExtResource( 2 )
[node name="player1" parent="." instance=ExtResource( 3 )]
position = Vector2( 32.49, 188.622 )
[node name="sprite" parent="player1" index="0"]
self_modulate = Color( 1, 0, 0.960938, 1 )
[node name="player2" parent="." instance=ExtResource( 3 )]
position = Vector2( 608.88, 188.622 )
[node name="sprite" parent="player2" index="0"]
self_modulate = Color( 0, 0.929688, 1, 1 )
[node name="ball" parent="." instance=ExtResource( 4 )]
position = Vector2( 320.387, 189.525 )
[node name="score_left" type="Label" parent="."]
margin_left = 240.0
margin_top = 10.0
margin_right = 280.0
margin_bottom = 30.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "0"
align = 1
[node name="score_right" type="Label" parent="."]
margin_left = 360.0
margin_top = 10.0
margin_right = 400.0
margin_bottom = 30.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "0"
align = 1
[node name="winner_left" type="Label" parent="."]
visible = false
margin_left = 190.0
margin_top = 170.0
margin_right = 267.0
margin_bottom = 184.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "The Winner!"
[node name="winner_right" type="Label" parent="."]
visible = false
margin_left = 380.0
margin_top = 170.0
margin_right = 457.0
margin_bottom = 184.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "The Winner!"
[node name="exit_game" type="Button" parent="."]
visible = false
margin_left = 280.0
margin_top = 340.0
margin_right = 360.0
margin_bottom = 360.0
size_flags_horizontal = 2
size_flags_vertical = 2
text = "Exit Game"
[connection signal="pressed" from="exit_game" to="." method="_on_exit_game_pressed"]
[editable path="player1"]
[editable path="player2"]