pong_gdscript/ball.tscn

39 lines
1.2 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://buqqojsie0k8c"]
[ext_resource type="Script" uid="uid://sv6hcl04t1f6" path="res://ball.gd" id="1_41u45"]
[ext_resource type="Texture2D" uid="uid://bqvc42b35kys5" path="res://player_texture.tres" id="1_x8fbi"]
[sub_resource type="SphereMesh" id="SphereMesh_ktgx5"]
[sub_resource type="CircleShape2D" id="CircleShape2D_41u45"]
radius = 11.0
[sub_resource type="SystemFont" id="SystemFont_41u45"]
subpixel_positioning = 0
[sub_resource type="LabelSettings" id="LabelSettings_ktgx5"]
font = SubResource("SystemFont_41u45")
font_size = 8
font_color = Color(0.491891, 1, 0.676743, 1)
[node name="Ball" type="RigidBody2D"]
input_pickable = true
gravity_scale = 0.0
script = ExtResource("1_41u45")
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
scale = Vector2(20, 20)
mesh = SubResource("SphereMesh_ktgx5")
texture = ExtResource("1_x8fbi")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_41u45")
[node name="LabelPosition" type="Label" parent="."]
unique_name_in_owner = true
visible = false
offset_right = 40.0
offset_bottom = 23.0
text = "(0, 0)"
label_settings = SubResource("LabelSettings_ktgx5")