Pong/Scenes/Objects/Ball.tscn
Fries 8072cf4961 the enemy can now scale to the resolution.
i made a BasePaddle class so i can put commonly used fields in a base class. this means i made a new plugin called CustomTypes which contains both Base classes.
2023-05-23 21:48:30 -07:00

21 lines
693 B
Text

[gd_scene load_steps=4 format=3 uid="uid://dts6gwgqbre22"]
[ext_resource type="Script" path="res://Scripts/Objects/Ball.cs" id="1_474si"]
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_yq7ub"]
size = Vector2(50, 50)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_i1hik"]
size = Vector2(50, 50)
[node name="Ball" type="CharacterBody2D"]
collision_mask = 3
script = ExtResource("1_474si")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(-1, -1)
texture = SubResource("PlaceholderTexture2D_yq7ub")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-1, -1)
shape = SubResource("RectangleShape2D_i1hik")