Fries
f84479e03a
i added a main menu scene and a score system that is written in GDScript instead of C# for a change. the WallManager, the thing that detects collisions, calls the score method on the ScoreManager.
30 lines
1.2 KiB
Text
30 lines
1.2 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://wn48xnd0lstq"]
|
|
|
|
[ext_resource type="PackedScene" path="res://Scenes/Paddle.tscn" id="1_5rs0o"]
|
|
[ext_resource type="Script" path="res://Scripts/Managers/SceneManager.cs" id="1_m8437"]
|
|
[ext_resource type="PackedScene" uid="uid://co2rv0nci8sbm" path="res://Scenes/Score.tscn" id="2_f3jwj"]
|
|
[ext_resource type="PackedScene" uid="uid://67qguep14iko" path="res://Scenes/Ball.tscn" id="2_u2ksv"]
|
|
[ext_resource type="PackedScene" uid="uid://dsvv7vqonylr1" path="res://Scenes/Walls.tscn" id="3_jfis7"]
|
|
[ext_resource type="PackedScene" path="res://Scenes/Enemy.tscn" id="4_uwvof"]
|
|
|
|
[node name="Pong" type="Node2D"]
|
|
script = ExtResource("1_m8437")
|
|
|
|
[node name="Score" parent="." instance=ExtResource("2_f3jwj")]
|
|
|
|
[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
|
|
_maxRandomAngle = 0.42
|
|
|
|
[node name="Walls" parent="." instance=ExtResource("3_jfis7")]
|
|
|
|
[node name="Enemy" parent="." instance=ExtResource("4_uwvof")]
|
|
position = Vector2(350, 0)
|
|
_moveSpeed = 50.0
|