Jul 11, 2024
StaticBody2D
and attach CollisionShape2D
RectangleShape2D
for collision shapeRigidBody2D
and attach CollisionShape2D
and Sprite
Control
node with buttons) for player movement (up and down)CharacterBody2D
with CollisionShape2D
and Sprite
PhysicsMaterial2D
to enable bouncingenemy_or_player
)VisibilityNotifier2D
to detect when the ball exits the screen