Added pause and mute.

Improved fonts and font scaling
Added level editor
This commit is contained in:
2024-05-05 22:36:32 +01:00
parent fef3ae9d8e
commit 81d8e14746
355 changed files with 3231 additions and 5428 deletions

View File

@@ -1,20 +1,18 @@
[gd_scene load_steps=17 format=3 uid="uid://4q0epdnb0x4s"]
[gd_scene load_steps=18 format=3 uid="uid://4q0epdnb0x4s"]
[ext_resource type="Script" path="res://Dunkanoid.gd" id="1_kv4if"]
[ext_resource type="PackedScene" uid="uid://dndemjw7up2r6" path="res://Paddle/Paddle.tscn" id="2_26c5i"]
[ext_resource type="Texture2D" uid="uid://14rcfdux2hkr" path="res://Backgrounds/dark-green-2790337_640.png" id="2_ke5lc"]
[ext_resource type="Script" path="res://Wall.gd" id="4_evt42"]
[ext_resource type="Texture2D" uid="uid://3r13ufv5sq3w" path="res://Backgrounds/BlueSlash.png" id="5_j5mmn"]
[ext_resource type="AudioStream" uid="uid://bkw4xksukx0dd" path="res://Sounds/Fail.wav" id="5_p5ta8"]
[ext_resource type="Script" path="res://Floor.gd" id="5_sravy"]
[ext_resource type="AudioStream" uid="uid://818gpo5mes22" path="res://Sounds/Start.wav" id="6_s0pha"]
[ext_resource type="PhysicsMaterial" uid="uid://cql6t5hd40fgn" path="res://CorePhysics.tres" id="7_300m5"]
[ext_resource type="AudioStream" uid="uid://bh2blx1uovmyt" path="res://Sounds/Win.wav" id="7_xrjor"]
[ext_resource type="AudioStream" uid="uid://bojc0es7165ed" path="res://Sounds/Collected.wav" id="8_fpbsr"]
[ext_resource type="Theme" uid="uid://cfvww0geatnnk" path="res://MainTheme.tres" id="8_wcf7g"]
[ext_resource type="Material" uid="uid://bv4vhjg83fqpn" path="res://ArkanoidMaterial.tres" id="9_ouuij"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_yf4r2"]
rough = true
bounce = 1.0
[ext_resource type="Script" path="res://Paused.gd" id="12_8qv0d"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_jsudl"]
normal = Vector2(0, 1)
@@ -35,22 +33,44 @@ distance = -360.0
texture_filter = 1
script = ExtResource("1_kv4if")
[node name="Paused" type="Node2D" parent="."]
process_mode = 3
visible = false
z_index = 2
script = ExtResource("12_8qv0d")
[node name="ColorRect" type="ColorRect" parent="Paused"]
offset_right = 448.0
offset_bottom = 360.0
color = Color(0, 0, 0, 0.247059)
[node name="Label" type="Label" parent="Paused"]
material = ExtResource("9_ouuij")
offset_right = 448.0
offset_bottom = 360.0
theme = ExtResource("8_wcf7g")
theme_type_variation = &"Arkanoid"
text = "PAUSED"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Background" type="TextureRect" parent="."]
z_index = -2
texture_repeat = 2
clip_contents = true
offset_right = 640.0
offset_bottom = 640.0
offset_bottom = 514.0
scale = Vector2(0.7, 0.7)
texture = ExtResource("2_ke5lc")
texture = ExtResource("5_j5mmn")
stretch_mode = 1
[node name="Paddle" parent="." instance=ExtResource("2_26c5i")]
position = Vector2(39, 340)
input_pickable = false
physics_material_override = SubResource("PhysicsMaterial_yf4r2")
physics_material_override = null
[node name="Wall" type="StaticBody2D" parent="."]
physics_material_override = ExtResource("7_300m5")
script = ExtResource("4_evt42")
[node name="Top" type="CollisionShape2D" parent="Wall"]
@@ -174,7 +194,6 @@ horizontal_alignment = 1
vertical_alignment = 1
[node name="Exits" type="Node2D" parent="."]
visible = false
[node name="Left" type="ColorRect" parent="Exits"]
offset_top = 312.0
@@ -189,6 +208,13 @@ offset_right = 448.0
offset_bottom = 360.0
color = Color(0, 0, 1, 1)
[node name="ColorRect4" type="ColorRect" parent="."]
offset_left = 448.0
offset_top = 312.0
offset_right = 641.0
offset_bottom = 360.0
color = Color(0, 0, 0, 1)
[connection signal="update_lives" from="." to="." method="_on_update_lives"]
[connection signal="finished" from="Sounds/StartRound" to="." method="_on_start_round_finished"]
[connection signal="finished" from="Sounds/RoundWon" to="." method="_on_round_won_finished"]