Fries
02c5b90415
right now theres just a moving ball, inside a box, with a working paddle. i had to make the ball kinematic and tell the ball to bounce when it hits the other direction.
20 lines
666 B
Text
20 lines
666 B
Text
[gd_scene load_steps=4 format=3 uid="uid://cggi01qnnlnwg"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/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"]
|
|
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")
|