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.
19 lines
738 B
Text
19 lines
738 B
Text
[gd_scene load_steps=4 format=3 uid="uid://kmfgtiugs4m0"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bklo6torhapa0" path="res://Scenes/Paddle.tscn" id="1_5rs0o"]
|
|
[ext_resource type="PackedScene" uid="uid://cggi01qnnlnwg" path="res://Scenes/Ball.tscn" id="2_u2ksv"]
|
|
[ext_resource type="PackedScene" uid="uid://c5n541vsuvfk8" path="res://Scenes/Walls.tscn" id="3_jfis7"]
|
|
|
|
[node name="Pong" type="Node2D"]
|
|
|
|
[node name="Paddle" parent="." instance=ExtResource("1_5rs0o")]
|
|
position = Vector2(-350, 0)
|
|
_moveSpeed = 50.0
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
position = Vector2(0, -2)
|
|
|
|
[node name="Ball" parent="." instance=ExtResource("2_u2ksv")]
|
|
_ballSpeed = 50.0
|
|
|
|
[node name="Walls" parent="." instance=ExtResource("3_jfis7")]
|