Last map (for now)

This commit is contained in:
2025-09-12 20:08:00 +02:00
parent 3272336f86
commit 25287c57fc
8 changed files with 2315 additions and 10 deletions

BIN
Assets/Maps/map10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ckho4scmi8m3t"
path="res://.godot/imported/map10.png-0b4c3279dc942831aec7c5d2fa01d544.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/Maps/map10.png"
dest_files=["res://.godot/imported/map10.png-0b4c3279dc942831aec7c5d2fa01d544.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

49
Game/Maps/Map10_setup.gd Normal file
View File

@ -0,0 +1,49 @@
extends Node
var waves = [
[
[10, 0.2, 0.8, 0.2, 0.0], #wave 1 #First path
[20, 0.4, 0.5, 0.5, 0.0], #wave 2
[30, 0.5, 0.4, 0.4, 0.1], #wave 3
[40, 0.8, 0.3, 0.2, 0.5], #wave 4
[50, 0.9, 0.1, 0.2, 0.7], #wave 5
],
[
[10, 0.2, 0.8, 0.2, 0.0], #wave 1 #First path
[20, 0.4, 0.5, 0.5, 0.0], #wave 2
[30, 0.5, 0.4, 0.4, 0.1], #wave 3
[40, 0.8, 0.3, 0.2, 0.5], #wave 4
[50, 0.9, 0.1, 0.2, 0.7], #wave 5
],
[
[10, 0.2, 0.8, 0.2, 0.0], #wave 1 #First path
[20, 0.4, 0.5, 0.5, 0.0], #wave 2
[30, 0.5, 0.4, 0.4, 0.1], #wave 3
[40, 0.8, 0.3, 0.2, 0.5], #wave 4
[50, 0.9, 0.1, 0.2, 0.7], #wave 5
],
[
[10, 0.2, 0.8, 0.2, 0.0], #wave 1 #First path
[20, 0.4, 0.5, 0.5, 0.0], #wave 2
[30, 0.5, 0.4, 0.4, 0.1], #wave 3
[40, 0.8, 0.3, 0.2, 0.5], #wave 4
[50, 0.9, 0.1, 0.2, 0.7], #wave 5
],
[
[5, 0.1, 0.8, 0.2, 0.0], #wave 1 #Third Path CENTER
[10, 0.2, 0.5, 0.5, 0.0], #wave 2
[20, 0.3, 0.4, 0.4, 0.1], #wave 3
[30, 0.4, 0.3, 0.2, 0.5], #wave 4
[40, 0.7, 0.1, 0.2, 0.7], #wave 5
],
[
[5, 0.1, 0.8, 0.2, 0.0], #wave 1 #Third Path CENTER
[10, 0.2, 0.5, 0.5, 0.0], #wave 2
[20, 0.3, 0.4, 0.4, 0.1], #wave 3
[30, 0.4, 0.3, 0.2, 0.5], #wave 4
[40, 0.7, 0.1, 0.2, 0.7], #wave 5
]
]
var lives = 20
var coins = 1500

View File

@ -0,0 +1 @@
uid://dbkla6i7vwysd

2151
Game/Maps/map_10.tscn Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=243 format=4 uid="uid://bj1bpymbq3xrl"] [gd_scene load_steps=244 format=4 uid="uid://bj1bpymbq3xrl"]
[ext_resource type="Script" uid="uid://xo6vbicdva8d" path="res://Game/Maps/map_managger.gd" id="1_cv1eb"] [ext_resource type="Script" uid="uid://xo6vbicdva8d" path="res://Game/Maps/map_managger.gd" id="1_cv1eb"]
[ext_resource type="Texture2D" uid="uid://f1npbjsw71nk" path="res://Assets/Tiles/Fields/FieldsTile_01.png" id="2_vltem"] [ext_resource type="Texture2D" uid="uid://f1npbjsw71nk" path="res://Assets/Tiles/Fields/FieldsTile_01.png" id="2_vltem"]
@ -882,8 +882,11 @@ size = Vector2(96, 4)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_tgdbn"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_tgdbn"]
size = Vector2(170.75, 2) size = Vector2(170.75, 2)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ju5bg"]
size = Vector2(283.188, 2)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xvoy5"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_xvoy5"]
size = Vector2(863.375, 4) size = Vector2(1154.69, 5)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ufjro"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ufjro"]
size = Vector2(1153, 17) size = Vector2(1153, 17)
@ -892,16 +895,16 @@ size = Vector2(1153, 17)
size = Vector2(524.5, 59.125) size = Vector2(524.5, 59.125)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ktuvy"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ktuvy"]
size = Vector2(232, 408.25) size = Vector2(232, 240)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jwl0r"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_jwl0r"]
size = Vector2(512.625, 46.25) size = Vector2(512.625, 46.25)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_i6ajv"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_i6ajv"]
size = Vector2(220.25, 502.25) size = Vector2(220.25, 236)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_as1ew"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_as1ew"]
size = Vector2(936, 118.125) size = Vector2(1157, 118.125)
[sub_resource type="Curve2D" id="Curve2D_hr4td"] [sub_resource type="Curve2D" id="Curve2D_hr4td"]
_data = { _data = {
@ -970,8 +973,12 @@ shape = SubResource("RectangleShape2D_icc02")
position = Vector2(781, 349) position = Vector2(781, 349)
shape = SubResource("RectangleShape2D_tgdbn") shape = SubResource("RectangleShape2D_tgdbn")
[node name="CollisionShape2D5" type="CollisionShape2D" parent="TrapArea"]
position = Vector2(1010.41, 159)
shape = SubResource("RectangleShape2D_ju5bg")
[node name="CollisionShape2D4" type="CollisionShape2D" parent="TrapArea"] [node name="CollisionShape2D4" type="CollisionShape2D" parent="TrapArea"]
position = Vector2(720, 542) position = Vector2(574.344, 542.5)
shape = SubResource("RectangleShape2D_xvoy5") shape = SubResource("RectangleShape2D_xvoy5")
[node name="TowerArea" type="Area2D" parent="."] [node name="TowerArea" type="Area2D" parent="."]
@ -985,7 +992,7 @@ position = Vector2(481.75, 194.438)
shape = SubResource("RectangleShape2D_0gi2v") shape = SubResource("RectangleShape2D_0gi2v")
[node name="CollisionShape2D8" type="CollisionShape2D" parent="TowerArea"] [node name="CollisionShape2D8" type="CollisionShape2D" parent="TowerArea"]
position = Vector2(1036, 203.875) position = Vector2(1036, 288)
shape = SubResource("RectangleShape2D_ktuvy") shape = SubResource("RectangleShape2D_ktuvy")
[node name="CollisionShape2D3" type="CollisionShape2D" parent="TowerArea"] [node name="CollisionShape2D3" type="CollisionShape2D" parent="TowerArea"]
@ -993,14 +1000,15 @@ position = Vector2(607.688, 376.875)
shape = SubResource("RectangleShape2D_jwl0r") shape = SubResource("RectangleShape2D_jwl0r")
[node name="CollisionShape2D4" type="CollisionShape2D" parent="TowerArea"] [node name="CollisionShape2D4" type="CollisionShape2D" parent="TowerArea"]
position = Vector2(105.875, 419.125) position = Vector2(105.875, 286)
shape = SubResource("RectangleShape2D_i6ajv") shape = SubResource("RectangleShape2D_i6ajv")
[node name="CollisionShape2D5" type="CollisionShape2D" parent="TowerArea"] [node name="CollisionShape2D5" type="CollisionShape2D" parent="TowerArea"]
position = Vector2(684, 611.063) position = Vector2(573.5, 611.063)
shape = SubResource("RectangleShape2D_as1ew") shape = SubResource("RectangleShape2D_as1ew")
[node name="CanvasLayer" type="CanvasLayer" parent="."] [node name="CanvasLayer" type="CanvasLayer" parent="."]
visible = false
[node name="SidePanel" parent="CanvasLayer" instance=ExtResource("67_ijw35")] [node name="SidePanel" parent="CanvasLayer" instance=ExtResource("67_ijw35")]
size_flags_horizontal = 6 size_flags_horizontal = 6
@ -1011,15 +1019,19 @@ size_flags_horizontal = 6
script = ExtResource("69_ju5bg") script = ExtResource("69_ju5bg")
[node name="Path2D" type="Path2D" parent="."] [node name="Path2D" type="Path2D" parent="."]
visible = false
curve = SubResource("Curve2D_hr4td") curve = SubResource("Curve2D_hr4td")
[node name="Path2D2" type="Path2D" parent="."] [node name="Path2D2" type="Path2D" parent="."]
visible = false
curve = SubResource("Curve2D_mwr61") curve = SubResource("Curve2D_mwr61")
[node name="Path2D3" type="Path2D" parent="."] [node name="Path2D3" type="Path2D" parent="."]
visible = false
curve = SubResource("Curve2D_cv1eb") curve = SubResource("Curve2D_cv1eb")
[node name="Path2D4" type="Path2D" parent="."] [node name="Path2D4" type="Path2D" parent="."]
visible = false
curve = SubResource("Curve2D_vltem") curve = SubResource("Curve2D_vltem")
[node name="Decoration" type="Node2D" parent="."] [node name="Decoration" type="Node2D" parent="."]

View File

@ -40,6 +40,10 @@ func LoadMap9() -> void:
get_tree().change_scene_to_file("res://Game/Maps/map_9.tscn") get_tree().change_scene_to_file("res://Game/Maps/map_9.tscn")
pass # Replace with function body. pass # Replace with function body.
func LoadMap10() -> void:
get_tree().change_scene_to_file("res://Game/Maps/map_10.tscn")
pass # Replace with function body.
func _ready() -> void: func _ready() -> void:
loadData() loadData()
@ -52,6 +56,7 @@ func _ready() -> void:
get_node("VBoxContainer/HBoxContainer2/seventh/Button").connect("button_up", LoadMap7) get_node("VBoxContainer/HBoxContainer2/seventh/Button").connect("button_up", LoadMap7)
get_node("VBoxContainer/HBoxContainer2/eighth/Button").connect("button_up", LoadMap8) get_node("VBoxContainer/HBoxContainer2/eighth/Button").connect("button_up", LoadMap8)
get_node("VBoxContainer/HBoxContainer2/nineth/Button").connect("button_up", LoadMap9) get_node("VBoxContainer/HBoxContainer2/nineth/Button").connect("button_up", LoadMap9)
get_node("VBoxContainer/HBoxContainer2/tenth/Button").connect("button_up", LoadMap10)
var unlocker = true var unlocker = true
for i in get_node("VBoxContainer").get_children(): for i in get_node("VBoxContainer").get_children():
@ -85,6 +90,7 @@ func loadData() -> void:
get_node("VBoxContainer/HBoxContainer2/seventh/Label2").text = "Haven't finished yet" if map_scores["Map7"] == 0 else "Scored: " + str(map_scores["Map7"]) + " out of 10" get_node("VBoxContainer/HBoxContainer2/seventh/Label2").text = "Haven't finished yet" if map_scores["Map7"] == 0 else "Scored: " + str(map_scores["Map7"]) + " out of 10"
get_node("VBoxContainer/HBoxContainer2/eighth/Label2").text = "Haven't finished yet" if map_scores["Map8"] == 0 else "Scored: " + str(map_scores["Map8"]) + " out of 10" get_node("VBoxContainer/HBoxContainer2/eighth/Label2").text = "Haven't finished yet" if map_scores["Map8"] == 0 else "Scored: " + str(map_scores["Map8"]) + " out of 10"
get_node("VBoxContainer/HBoxContainer2/nineth/Label2").text = "Haven't finished yet" if map_scores["Map9"] == 0 else "Scored: " + str(map_scores["Map9"]) + " out of 10" get_node("VBoxContainer/HBoxContainer2/nineth/Label2").text = "Haven't finished yet" if map_scores["Map9"] == 0 else "Scored: " + str(map_scores["Map9"]) + " out of 10"
get_node("VBoxContainer/HBoxContainer2/tenth/Label2").text = "Haven't finished yet" if map_scores["Map10"] == 0 else "Scored: " + str(map_scores["Map10"]) + " out of 10"
else: else:
map_scores["Map1"] = 0 map_scores["Map1"] = 0
@ -96,6 +102,7 @@ func loadData() -> void:
map_scores["Map7"] = 0 map_scores["Map7"] = 0
map_scores["Map8"] = 0 map_scores["Map8"] = 0
map_scores["Map9"] = 0 map_scores["Map9"] = 0
map_scores["Map10"] = 0
save_scores() save_scores()
loadData() loadData()

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=45 format=3 uid="uid://cxet2lvdco2ak"] [gd_scene load_steps=49 format=3 uid="uid://cxet2lvdco2ak"]
[ext_resource type="Script" uid="uid://duhi4pfoa45j1" path="res://Game/Menu/mapselector.gd" id="1_cnef1"] [ext_resource type="Script" uid="uid://duhi4pfoa45j1" path="res://Game/Menu/mapselector.gd" id="1_cnef1"]
[ext_resource type="Texture2D" uid="uid://bgy114b67j3kg" path="res://Assets/Others/8-bit-graphics-pixels-scene-with-castle.jpg" id="1_jteil"] [ext_resource type="Texture2D" uid="uid://bgy114b67j3kg" path="res://Assets/Others/8-bit-graphics-pixels-scene-with-castle.jpg" id="1_jteil"]
@ -13,6 +13,7 @@
[ext_resource type="Texture2D" uid="uid://nxo2e3kn35ym" path="res://Assets/Maps/map7.png" id="11_uvrvw"] [ext_resource type="Texture2D" uid="uid://nxo2e3kn35ym" path="res://Assets/Maps/map7.png" id="11_uvrvw"]
[ext_resource type="Texture2D" uid="uid://b8gw3mcck5ig6" path="res://Assets/Maps/map8.png" id="12_44oc2"] [ext_resource type="Texture2D" uid="uid://b8gw3mcck5ig6" path="res://Assets/Maps/map8.png" id="12_44oc2"]
[ext_resource type="Texture2D" uid="uid://cn502nylvorxv" path="res://Assets/Maps/map9.png" id="13_hmthg"] [ext_resource type="Texture2D" uid="uid://cn502nylvorxv" path="res://Assets/Maps/map9.png" id="13_hmthg"]
[ext_resource type="Texture2D" uid="uid://ckho4scmi8m3t" path="res://Assets/Maps/map10.png" id="14_32se8"]
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_cnef1"] [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_cnef1"]
texture = ExtResource("1_jteil") texture = ExtResource("1_jteil")
@ -131,6 +132,19 @@ texture_margin_bottom = 5.0
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_1ujta"] [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_1ujta"]
texture = ExtResource("13_hmthg") texture = ExtResource("13_hmthg")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_o7mrl"]
texture = ExtResource("14_32se8")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_8bfy0"]
texture = ExtResource("14_32se8")
texture_margin_left = 5.0
texture_margin_top = 5.0
texture_margin_right = 5.0
texture_margin_bottom = 5.0
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_g12em"]
texture = ExtResource("14_32se8")
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_cnef1"] [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_cnef1"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mjmwi"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mjmwi"]
@ -546,6 +560,42 @@ layout_mode = 2
size_flags_horizontal = 4 size_flags_horizontal = 4
text = "Score: 10 / " text = "Score: 10 / "
[node name="tenth" type="VBoxContainer" parent="VBoxContainer/HBoxContainer2"]
layout_mode = 2
alignment = 1
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2/tenth"]
layout_mode = 2
size_flags_horizontal = 4
text = "10th Level"
[node name="Button" type="Button" parent="VBoxContainer/HBoxContainer2/tenth"]
custom_minimum_size = Vector2(120, 80)
layout_mode = 2
theme_override_styles/disabled = SubResource("StyleBoxTexture_o7mrl")
theme_override_styles/hover = SubResource("StyleBoxTexture_8bfy0")
theme_override_styles/normal = SubResource("StyleBoxTexture_g12em")
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer2/tenth/Button"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("6_udeaf")
[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer2/tenth"]
layout_mode = 2
size_flags_horizontal = 4
text = "Score: 10 / "
[node name="HBoxContainer" type="HBoxContainer" parent="."] [node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 1 layout_mode = 1
anchors_preset = 12 anchors_preset = 12
@ -579,4 +629,5 @@ text = "Main Menu"
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/seventh/Button" to="." method="_on_button_map1_pressed"] [connection signal="pressed" from="VBoxContainer/HBoxContainer2/seventh/Button" to="." method="_on_button_map1_pressed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/eighth/Button" to="." method="_on_button_map1_pressed"] [connection signal="pressed" from="VBoxContainer/HBoxContainer2/eighth/Button" to="." method="_on_button_map1_pressed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/nineth/Button" to="." method="_on_button_map1_pressed"] [connection signal="pressed" from="VBoxContainer/HBoxContainer2/nineth/Button" to="." method="_on_button_map1_pressed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/tenth/Button" to="." method="_on_button_map1_pressed"]
[connection signal="pressed" from="HBoxContainer/MarginContainer/Button" to="." method="_on_button_pressed"] [connection signal="pressed" from="HBoxContainer/MarginContainer/Button" to="." method="_on_button_pressed"]