gdnative_python/examples/pong_multiplayer/paddle.tscn

53 lines
1.1 KiB
Plaintext

[gd_scene load_steps=4 format=2]
[ext_resource path="res://paddle.gd" type="Script" id=1]
[ext_resource path="res://paddle.png" type="Texture" id=2]
[sub_resource type="CapsuleShape2D" id=1]
custom_solver_bias = 0.0
radius = 4.78568
height = 23.6064
[node name="paddle" type="Area2D"]
input_pickable = true
shapes/0/shape = SubResource( 1 )
shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 )
shapes/0/trigger = false
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
script = ExtResource( 1 )
left = false
[node name="sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
[node name="shape" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
trigger = false
_update_shape_index = 0
[node name="you" type="Label" parent="."]
margin_left = -12.0
margin_top = 21.0
margin_right = 11.0
margin_bottom = 35.0
rect_clip_content = false
mouse_filter = 2
size_flags_vertical = 0
text = "You"
align = 1
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[connection signal="area_entered" from="." to="." method="_on_paddle_area_enter"]