diff --git a/Dunkanoid.gd b/Dunkanoid.gd index e721f58..c60c144 100644 --- a/Dunkanoid.gd +++ b/Dunkanoid.gd @@ -81,7 +81,7 @@ var opened: bool = false func _process(delta : float) -> void: if OS.has_feature("editor"): - if Input.is_action_just_pressed("cheat"): + if Input.is_action_pressed("cheat"): fire_bullet() if PaddleNode.is_laser(): diff --git a/Dunkanoid.tscn b/Dunkanoid.tscn index 0874307..f49fbbf 100644 --- a/Dunkanoid.tscn +++ b/Dunkanoid.tscn @@ -43,13 +43,13 @@ distance = -432.0 [sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_48dqy"] distance = -360.0 -[sub_resource type="ShaderMaterial" id="ShaderMaterial_p2a4d"] +[sub_resource type="ShaderMaterial" id="ShaderMaterial_mnwco"] shader = ExtResource("12_ljnes") -shader_parameter/rect_global_position = Vector2(0, 77) +shader_parameter/rect_global_position = Vector2(0, 0.226471) shader_parameter/rect_size = Vector2(448, 25) shader_parameter/ColourTexture = ExtResource("13_u52d1") -[sub_resource type="ShaderMaterial" id="ShaderMaterial_vti8i"] +[sub_resource type="ShaderMaterial" id="ShaderMaterial_xsw3b"] shader = ExtResource("12_ljnes") shader_parameter/rect_global_position = Vector2(0, 0) shader_parameter/rect_size = Vector2(89, 25) @@ -323,7 +323,7 @@ theme_type_variation = &"RoundStart" layout_mode = 2 [node name="Title" type="Label" parent="Start/VBoxContainer/PanelContainer/VBoxContainer"] -material = SubResource("ShaderMaterial_p2a4d") +material = SubResource("ShaderMaterial_mnwco") layout_mode = 2 theme = ExtResource("8_wcf7g") theme_type_variation = &"Arkanoid" @@ -371,7 +371,7 @@ size_flags_vertical = 3 theme = ExtResource("8_wcf7g") [node name="Label" type="Label" parent="Paused/VBoxContainer"] -material = SubResource("ShaderMaterial_vti8i") +material = SubResource("ShaderMaterial_xsw3b") layout_mode = 2 theme = ExtResource("8_wcf7g") theme_type_variation = &"Arkanoid" diff --git a/Fonts/5x7.png b/Fonts/5x7.png new file mode 100644 index 0000000..069e66d Binary files /dev/null and b/Fonts/5x7.png differ diff --git a/Fonts/5x7.png.import b/Fonts/5x7.png.import new file mode 100644 index 0000000..e7097ca --- /dev/null +++ b/Fonts/5x7.png.import @@ -0,0 +1,22 @@ +[remap] + +importer="font_data_image" +type="FontFile" +uid="uid://5a5w0lptxg83" +path="res://.godot/imported/5x7.png-a5ebb16077e924352bb6b8f78b00553d.fontdata" + +[deps] + +source_file="res://Fonts/5x7.png" +dest_files=["res://.godot/imported/5x7.png-a5ebb16077e924352bb6b8f78b00553d.fontdata"] + +[params] + +character_ranges=PackedStringArray("\' \'-\'~\'") +columns=16 +rows=6 +image_margin=Rect2i(0, 0, 0, 0) +character_margin=Rect2i(0, 0, 0, 0) +fallbacks=[] +compress=true +scaling_mode=2 diff --git a/Fonts/Chunky.png b/Fonts/Chunky.png new file mode 100644 index 0000000..c095348 Binary files /dev/null and b/Fonts/Chunky.png differ diff --git a/Fonts/Chunky.png.import b/Fonts/Chunky.png.import new file mode 100644 index 0000000..3a83c80 --- /dev/null +++ b/Fonts/Chunky.png.import @@ -0,0 +1,22 @@ +[remap] + +importer="font_data_image" +type="FontFile" +uid="uid://bfue7ekap54wi" +path="res://.godot/imported/Chunky.png-c0832c9d756abcfb8e32384224778b58.fontdata" + +[deps] + +source_file="res://Fonts/Chunky.png" +dest_files=["res://.godot/imported/Chunky.png-c0832c9d756abcfb8e32384224778b58.fontdata"] + +[params] + +character_ranges=PackedStringArray("\' \'-\'}\'") +columns=20 +rows=5 +image_margin=Rect2i(0, 0, 0, 0) +character_margin=Rect2i(0, 0, 0, 0) +fallbacks=[] +compress=true +scaling_mode=0 diff --git a/Intro.tscn b/Intro.tscn index ca072a9..fad7824 100644 --- a/Intro.tscn +++ b/Intro.tscn @@ -20,15 +20,15 @@ point_count = 2 [sub_resource type="Gradient" id="Gradient_431mb"] colors = PackedColorArray(0, 0, 0, 0, 1, 1, 1, 1) -[sub_resource type="ShaderMaterial" id="ShaderMaterial_6od3v"] +[sub_resource type="ShaderMaterial" id="ShaderMaterial_6jl2f"] shader = ExtResource("3_eo4f3") -shader_parameter/rect_global_position = Vector2(122.5, 27.5) +shader_parameter/rect_global_position = Vector2(0, 0) shader_parameter/rect_size = Vector2(150, 25) shader_parameter/ColourTexture = ExtResource("4_v8i0c") -[sub_resource type="ShaderMaterial" id="ShaderMaterial_ipjaf"] +[sub_resource type="ShaderMaterial" id="ShaderMaterial_1smc2"] shader = ExtResource("3_eo4f3") -shader_parameter/rect_global_position = Vector2(99.5, 42) +shader_parameter/rect_global_position = Vector2(0, 0) shader_parameter/rect_size = Vector2(242, 25) shader_parameter/ColourTexture = ExtResource("4_v8i0c") @@ -70,7 +70,7 @@ size_flags_horizontal = 3 theme = ExtResource("3_8d2ix") [node name="ArkaLabel" type="Label" parent="VBoxContainer/HBoxContainer"] -material = SubResource("ShaderMaterial_6od3v") +material = SubResource("ShaderMaterial_6jl2f") layout_mode = 2 theme = ExtResource("3_8d2ix") theme_type_variation = &"Arkanoid" @@ -91,7 +91,7 @@ size_flags_horizontal = 3 theme = ExtResource("3_8d2ix") [node name="Revenge" type="Label" parent="VBoxContainer/HBoxContainer2"] -material = SubResource("ShaderMaterial_ipjaf") +material = SubResource("ShaderMaterial_1smc2") layout_mode = 2 theme = ExtResource("3_8d2ix") theme_type_variation = &"Arkanoid" diff --git a/Level.gd b/Level.gd index eca0895..d5a8cfe 100644 --- a/Level.gd +++ b/Level.gd @@ -55,7 +55,6 @@ func load_level(level_name : String) -> void: push_warning("Level %s unknown" % level_name) func load_from_file(filename : String) -> void: - print("Loading %s" % filename) var data = JSON.parse_string(FileAccess.get_file_as_string(filename)) if data != null: load_from_data(data) diff --git a/MainTheme.tres b/MainTheme.tres index eb98756..b7cb101 100644 --- a/MainTheme.tres +++ b/MainTheme.tres @@ -1,9 +1,10 @@ -[gd_resource type="Theme" load_steps=18 format=3 uid="uid://cfvww0geatnnk"] +[gd_resource type="Theme" load_steps=19 format=3 uid="uid://cfvww0geatnnk"] [ext_resource type="FontFile" uid="uid://dfkm2dibf0c3b" path="res://Fonts/fonts-DSEG_v046/DSEG7-Classic-MINI/DSEG7ClassicMini-Italic.ttf" id="1_17to7"] [ext_resource type="FontFile" uid="uid://bx41ej4o03nbx" path="res://Fonts/arkanoid/Arka_solid.ttf" id="1_s07ae"] [ext_resource type="FontFile" uid="uid://c3gxkerjb3w7q" path="res://Fonts/charmap-oldschool_white.png" id="2_04xve"] [ext_resource type="FontFile" uid="uid://0a8bjrb4tfqn" path="res://Fonts/charmap-oldschool_white_glow.png" id="3_fjg1d"] +[ext_resource type="FontFile" uid="uid://bfue7ekap54wi" path="res://Fonts/Chunky.png" id="5_dx8ei"] [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_naqov"] @@ -138,8 +139,8 @@ TextEdit/font_sizes/font_size = 9 TextEdit/fonts/font = ExtResource("2_04xve") Upgrade/base_type = &"Label" Upgrade/colors/font_color = Color(0, 0, 0, 1) -Upgrade/font_sizes/font_size = 9 -Upgrade/fonts/font = ExtResource("2_04xve") +Upgrade/font_sizes/font_size = 8 +Upgrade/fonts/font = ExtResource("5_dx8ei") UpgradeContainer/base_type = &"PanelContainer" UpgradeContainer/styles/panel = SubResource("StyleBoxEmpty_6g8gs") UpgradePanel/base_type = &"VBoxContainer" diff --git a/Upgrade/Upgrade.tscn b/Upgrade/Upgrade.tscn index d91dca8..5a21265 100644 --- a/Upgrade/Upgrade.tscn +++ b/Upgrade/Upgrade.tscn @@ -8,7 +8,7 @@ colors = PackedColorArray(1, 1, 0, 1, 1, 1, 0, 0) [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_slgxc"] radius = 6.0 -height = 24.0 +height = 22.0 [node name="Upgrade" type="RigidBody2D"] collision_layer = 0 @@ -25,8 +25,8 @@ emission_shape = 3 emission_rect_extents = Vector2(10, 1) direction = Vector2(0, -1) gravity = Vector2(0, 0) -initial_velocity_min = 5.0 -initial_velocity_max = 5.0 +initial_velocity_min = 2.0 +initial_velocity_max = 2.0 color = Color(1, 1, 0, 1) color_ramp = SubResource("Gradient_ll6dt") hue_variation_min = 1.0 @@ -39,11 +39,11 @@ shape = SubResource("CapsuleShape2D_slgxc") [node name="Shadow" type="Polygon2D" parent="."] position = Vector2(2, 4) color = Color(0, 0, 0, 0.247059) -polygon = PackedVector2Array(-6, -6, 6, -6, 9, -5, 11, -3, 12, 0, 11, 3, 9, 5, 6, 6, -6, 6, -9, 5, -11, 3, -12, 0, -11, -3, -9, -5) +polygon = PackedVector2Array(-5, -6, 5, -6, 8, -5, 10, -3, 11, 0, 10, 3, 8, 5, 5, 6, -5, 6, -8, 5, -10, 3, -11, 0, -10, -3, -8, -5) [node name="Polygon2D" type="Polygon2D" parent="."] color = Color(0, 0.258824, 1, 1) -polygon = PackedVector2Array(-6, -6, 6, -6, 9, -5, 11, -3, 12, 0, 11, 3, 9, 5, 6, 6, -6, 6, -9, 5, -11, 3, -12, 0, -11, -3, -9, -5) +polygon = PackedVector2Array(-5, -6, 5, -6, 8, -5, 10, -3, 11, 0, 10, 3, 8, 5, 5, 6, -5, 6, -8, 5, -10, 3, -11, 0, -10, -3, -8, -5) [node name="Label" type="Label" parent="."] texture_filter = 1 @@ -52,15 +52,15 @@ anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -offset_left = -12.0 -offset_top = -7.0 -offset_right = 12.0 -offset_bottom = 10.0 +offset_left = -4.0 +offset_top = -4.0 +offset_right = 4.0 +offset_bottom = 4.0 grow_horizontal = 2 grow_vertical = 2 theme = ExtResource("2_iabep") theme_type_variation = &"Upgrade" -text = "C" +text = "W" horizontal_alignment = 1 vertical_alignment = 1 diff --git a/Upgrades.tscn b/Upgrades.tscn index 8bc69b7..cfcf8e9 100644 --- a/Upgrades.tscn +++ b/Upgrades.tscn @@ -18,10 +18,10 @@ point_count = 2 [sub_resource type="Gradient" id="Gradient_ucorl"] colors = PackedColorArray(0, 0, 0, 0, 1, 1, 1, 1) -[sub_resource type="ShaderMaterial" id="ShaderMaterial_llrvb"] +[sub_resource type="ShaderMaterial" id="ShaderMaterial_v7t7t"] shader = ExtResource("4_waenw") -shader_parameter/rect_global_position = Vector2(8, 25) -shader_parameter/rect_size = Vector2(608, 25) +shader_parameter/rect_global_position = Vector2(8, 8) +shader_parameter/rect_size = Vector2(127, 25) shader_parameter/ColourTexture = ExtResource("5_y0x1p") [node name="Upgrades" type="Node2D"] @@ -76,7 +76,7 @@ autoplay = "default" centered = false [node name="ArkaLabel" type="Label" parent="VBoxContainer"] -material = SubResource("ShaderMaterial_llrvb") +material = SubResource("ShaderMaterial_v7t7t") layout_mode = 2 size_flags_vertical = 6 theme = ExtResource("1_rv7oa") diff --git a/project.godot b/project.godot index 45b96b1..e38b49e 100644 --- a/project.godot +++ b/project.godot @@ -11,7 +11,7 @@ config_version=5 [application] config/name="Dunkanoid" -config/version="0.9.3" +config/version="0.9.4" run/main_scene="res://Intro.tscn" config/features=PackedStringArray("4.2", "Forward Plus") run/max_fps=30