Sixth Map
This commit is contained in:
BIN
Assets/Maps/map4.png
Normal file
BIN
Assets/Maps/map4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 85 KiB |
34
Assets/Maps/map4.png.import
Normal file
34
Assets/Maps/map4.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://c3ig1iy1m4ydq"
|
||||||
|
path="res://.godot/imported/map4.png-04740fc0d787ef0762dd576dcd968953.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/Maps/map4.png"
|
||||||
|
dest_files=["res://.godot/imported/map4.png-04740fc0d787ef0762dd576dcd968953.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
|
||||||
BIN
Assets/Maps/map5.png
Normal file
BIN
Assets/Maps/map5.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 81 KiB |
34
Assets/Maps/map5.png.import
Normal file
34
Assets/Maps/map5.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://c0q8h850738on"
|
||||||
|
path="res://.godot/imported/map5.png-866c8a9e4a358af603571c71a29c14d5.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/Maps/map5.png"
|
||||||
|
dest_files=["res://.godot/imported/map5.png-866c8a9e4a358af603571c71a29c14d5.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
|
||||||
BIN
Assets/Maps/map6.png
Normal file
BIN
Assets/Maps/map6.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 88 KiB |
34
Assets/Maps/map6.png.import
Normal file
34
Assets/Maps/map6.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://b3dk0ipi0galp"
|
||||||
|
path="res://.godot/imported/map6.png-1b21ab404f11a2debfc2d314365f50a8.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/Maps/map6.png"
|
||||||
|
dest_files=["res://.godot/imported/map6.png-1b21ab404f11a2debfc2d314365f50a8.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
|
||||||
@ -24,17 +24,17 @@ var waves = [
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
[2, 0.1, 0.8, 0.2, 0.0], #wave 1 #Fourth Path TOPRIGHT
|
[2, 0.1, 0.8, 0.2, 0.0], #wave 1 #Fourth Path TOPRIGHT
|
||||||
[4, 0.2, 0.5, 0.5, 0.0], #wave 2
|
[3, 0.1, 0.5, 0.5, 0.0], #wave 2
|
||||||
[6, 0.3, 0.4, 0.4, 0.1], #wave 3
|
[4, 0.1, 0.4, 0.4, 0.1], #wave 3
|
||||||
[10, 0.4, 0.3, 0.2, 0.5], #wave 4
|
[4, 0.1, 0.3, 0.2, 0.5], #wave 4
|
||||||
[10, 0.7, 0.1, 0.2, 0.7], #wave 5
|
[4, 0.1, 0.1, 0.2, 0.7], #wave 5
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
[5, 0.1, 0.8, 0.2, 0.0], #wave 1 #Fith Path BOTTOMRIGHT
|
[2, 0.1, 0.8, 0.2, 0.0], #wave 1 #Fith Path BOTTOMRIGHT
|
||||||
[8, 0.2, 0.5, 0.5, 0.0], #wave 2
|
[3, 0.1, 0.5, 0.5, 0.0], #wave 2
|
||||||
[10, 0.3, 0.4, 0.4, 0.1], #wave 3
|
[4, 0.1, 0.4, 0.4, 0.1], #wave 3
|
||||||
[15, 0.4, 0.3, 0.2, 0.5], #wave 4
|
[5, 0.1, 0.3, 0.2, 0.5], #wave 4
|
||||||
[15, 0.7, 0.1, 0.2, 0.7], #wave 5
|
[5, 0.1, 0.1, 0.2, 0.7], #wave 5
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
28
Game/Maps/Map5_setup.gd
Normal file
28
Game/Maps/Map5_setup.gd
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
extends Node
|
||||||
|
|
||||||
|
var waves = [
|
||||||
|
[
|
||||||
|
[10, 0.2, 0.8, 0.2, 0.0], #wave 1 #First path TOP
|
||||||
|
[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 TOP
|
||||||
|
[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
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
|
var lives = 20
|
||||||
|
var coins = 500
|
||||||
1
Game/Maps/Map5_setup.gd.uid
Normal file
1
Game/Maps/Map5_setup.gd.uid
Normal file
@ -0,0 +1 @@
|
|||||||
|
uid://blrwshvlgkc7w
|
||||||
42
Game/Maps/Map6_setup.gd
Normal file
42
Game/Maps/Map6_setup.gd
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
extends Node
|
||||||
|
|
||||||
|
var waves = [
|
||||||
|
[
|
||||||
|
[10, 0.2, 0.8, 0.2, 0.0], #wave 1 #First path TOP
|
||||||
|
[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 TOP
|
||||||
|
[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
|
||||||
|
],
|
||||||
|
[
|
||||||
|
[10, 0.2, 0.8, 0.2, 0.0], #wave 1 #First path TOP
|
||||||
|
[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 TOP
|
||||||
|
[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
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
|
var lives = 25
|
||||||
|
var coins = 800
|
||||||
1
Game/Maps/Map6_setup.gd.uid
Normal file
1
Game/Maps/Map6_setup.gd.uid
Normal file
@ -0,0 +1 @@
|
|||||||
|
uid://bejxrbky6j88q
|
||||||
BIN
Game/Maps/map6.png
Normal file
BIN
Game/Maps/map6.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 88 KiB |
34
Game/Maps/map6.png.import
Normal file
34
Game/Maps/map6.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bga5bdw0jky6y"
|
||||||
|
path="res://.godot/imported/map6.png-0e1fbf77be565a8b11e85963055f3e6a.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Game/Maps/map6.png"
|
||||||
|
dest_files=["res://.godot/imported/map6.png-0e1fbf77be565a8b11e85963055f3e6a.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
|
||||||
@ -932,6 +932,7 @@ point_count = 4
|
|||||||
script = ExtResource("1_iueon")
|
script = ExtResource("1_iueon")
|
||||||
|
|
||||||
[node name="TileMap" type="TileMap" parent="."]
|
[node name="TileMap" type="TileMap" parent="."]
|
||||||
|
visible = false
|
||||||
z_index = -1
|
z_index = -1
|
||||||
tile_set = SubResource("TileSet_4e145")
|
tile_set = SubResource("TileSet_4e145")
|
||||||
rendering_quadrant_size = 64
|
rendering_quadrant_size = 64
|
||||||
@ -953,6 +954,7 @@ wait_time = 0.4
|
|||||||
autostart = true
|
autostart = true
|
||||||
|
|
||||||
[node name="TrapArea" type="Area2D" parent="."]
|
[node name="TrapArea" type="Area2D" parent="."]
|
||||||
|
visible = false
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TrapArea"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="TrapArea"]
|
||||||
position = Vector2(511.5, 148)
|
position = Vector2(511.5, 148)
|
||||||
@ -975,6 +977,7 @@ position = Vector2(993.25, 312.75)
|
|||||||
shape = SubResource("RectangleShape2D_7kmhc")
|
shape = SubResource("RectangleShape2D_7kmhc")
|
||||||
|
|
||||||
[node name="TowerArea" type="Area2D" parent="."]
|
[node name="TowerArea" type="Area2D" parent="."]
|
||||||
|
visible = false
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TowerArea"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="TowerArea"]
|
||||||
position = Vector2(568, -8)
|
position = Vector2(568, -8)
|
||||||
@ -1013,6 +1016,7 @@ position = Vector2(984, 569)
|
|||||||
shape = SubResource("RectangleShape2D_tsol2")
|
shape = SubResource("RectangleShape2D_tsol2")
|
||||||
|
|
||||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||||
|
visible = false
|
||||||
|
|
||||||
[node name="SidePanel" parent="CanvasLayer" instance=ExtResource("109_oxd1a")]
|
[node name="SidePanel" parent="CanvasLayer" instance=ExtResource("109_oxd1a")]
|
||||||
size_flags_horizontal = 6
|
size_flags_horizontal = 6
|
||||||
@ -1020,12 +1024,15 @@ size_flags_horizontal = 6
|
|||||||
[node name="MusicPlayer" parent="." instance=ExtResource("110_kw68t")]
|
[node name="MusicPlayer" parent="." instance=ExtResource("110_kw68t")]
|
||||||
|
|
||||||
[node name="Path2D" type="Path2D" parent="."]
|
[node name="Path2D" type="Path2D" parent="."]
|
||||||
|
visible = false
|
||||||
curve = SubResource("Curve2D_ocvl1")
|
curve = SubResource("Curve2D_ocvl1")
|
||||||
|
|
||||||
[node name="Path2D2" type="Path2D" parent="."]
|
[node name="Path2D2" type="Path2D" parent="."]
|
||||||
|
visible = false
|
||||||
curve = SubResource("Curve2D_sjmo1")
|
curve = SubResource("Curve2D_sjmo1")
|
||||||
|
|
||||||
[node name="Path2D3" type="Path2D" parent="."]
|
[node name="Path2D3" type="Path2D" parent="."]
|
||||||
|
visible = false
|
||||||
curve = SubResource("Curve2D_7kmhc")
|
curve = SubResource("Curve2D_7kmhc")
|
||||||
|
|
||||||
[node name="Setup" type="Node" parent="."]
|
[node name="Setup" type="Node" parent="."]
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=253 format=4 uid="uid://byktpghp0qkxf"]
|
[gd_scene load_steps=252 format=4 uid="uid://byktpghp0qkxf"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://xo6vbicdva8d" path="res://Game/Maps/map_managger.gd" id="1_6tijn"]
|
[ext_resource type="Script" uid="uid://xo6vbicdva8d" path="res://Game/Maps/map_managger.gd" id="1_6tijn"]
|
||||||
[ext_resource type="Texture2D" uid="uid://f1npbjsw71nk" path="res://Assets/Tiles/Fields/FieldsTile_01.png" id="2_43nuy"]
|
[ext_resource type="Texture2D" uid="uid://f1npbjsw71nk" path="res://Assets/Tiles/Fields/FieldsTile_01.png" id="2_43nuy"]
|
||||||
@ -893,10 +893,10 @@ size = Vector2(98, 3)
|
|||||||
size = Vector2(125.5, 1.5)
|
size = Vector2(125.5, 1.5)
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r25yv"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r25yv"]
|
||||||
size = Vector2(1162, 50)
|
size = Vector2(840, 50)
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8x0i6"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8x0i6"]
|
||||||
size = Vector2(873, 90.5)
|
size = Vector2(823, 90.5)
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_n15pr"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_n15pr"]
|
||||||
size = Vector2(34, 170)
|
size = Vector2(34, 170)
|
||||||
@ -907,9 +907,6 @@ size = Vector2(609.5, 9)
|
|||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ts6e7"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ts6e7"]
|
||||||
size = Vector2(162, 257)
|
size = Vector2(162, 257)
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_tsol2"]
|
|
||||||
size = Vector2(266, 34)
|
|
||||||
|
|
||||||
[sub_resource type="Curve2D" id="Curve2D_ocvl1"]
|
[sub_resource type="Curve2D" id="Curve2D_ocvl1"]
|
||||||
_data = {
|
_data = {
|
||||||
"points": PackedVector2Array(0, 0, 0, 0, 0, 288, 0, 0, 0, 0, 128, 288, 0, 0, 0, 0, 128, 128, 0, 0, 0, 0, 896, 128, 0, 0, 0, 0, 896, 288, 0, 0, 0, 0, 1056, 288)
|
"points": PackedVector2Array(0, 0, 0, 0, 0, 288, 0, 0, 0, 0, 128, 288, 0, 0, 0, 0, 128, 128, 0, 0, 0, 0, 896, 128, 0, 0, 0, 0, 896, 288, 0, 0, 0, 0, 1056, 288)
|
||||||
@ -990,11 +987,11 @@ shape = SubResource("RectangleShape2D_7kmhc")
|
|||||||
[node name="TowerArea" type="Area2D" parent="."]
|
[node name="TowerArea" type="Area2D" parent="."]
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TowerArea"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="TowerArea"]
|
||||||
position = Vector2(568, -8)
|
position = Vector2(407, -8)
|
||||||
shape = SubResource("RectangleShape2D_r25yv")
|
shape = SubResource("RectangleShape2D_r25yv")
|
||||||
|
|
||||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="TowerArea"]
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="TowerArea"]
|
||||||
position = Vector2(435.5, 538.75)
|
position = Vector2(410.5, 538.75)
|
||||||
shape = SubResource("RectangleShape2D_8x0i6")
|
shape = SubResource("RectangleShape2D_8x0i6")
|
||||||
|
|
||||||
[node name="CollisionShape2D3" type="CollisionShape2D" parent="TowerArea"]
|
[node name="CollisionShape2D3" type="CollisionShape2D" parent="TowerArea"]
|
||||||
@ -1021,10 +1018,6 @@ shape = SubResource("RectangleShape2D_ts6e7")
|
|||||||
position = Vector2(1055, 48)
|
position = Vector2(1055, 48)
|
||||||
shape = SubResource("RectangleShape2D_ts6e7")
|
shape = SubResource("RectangleShape2D_ts6e7")
|
||||||
|
|
||||||
[node name="CollisionShape2D9" type="CollisionShape2D" parent="TowerArea"]
|
|
||||||
position = Vector2(984, 569)
|
|
||||||
shape = SubResource("RectangleShape2D_tsol2")
|
|
||||||
|
|
||||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||||
|
|
||||||
[node name="SidePanel" parent="CanvasLayer" instance=ExtResource("67_tf5g3")]
|
[node name="SidePanel" parent="CanvasLayer" instance=ExtResource("67_tf5g3")]
|
||||||
|
|||||||
1456
Game/Maps/map_5.tscn
Normal file
1456
Game/Maps/map_5.tscn
Normal file
File diff suppressed because one or more lines are too long
1658
Game/Maps/map_6.tscn
Normal file
1658
Game/Maps/map_6.tscn
Normal file
File diff suppressed because one or more lines are too long
@ -20,6 +20,15 @@ func LoadMap4() -> void:
|
|||||||
get_tree().change_scene_to_file("res://Game/Maps/map_4.tscn")
|
get_tree().change_scene_to_file("res://Game/Maps/map_4.tscn")
|
||||||
pass # Replace with function body.
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
func LoadMap5() -> void:
|
||||||
|
get_tree().change_scene_to_file("res://Game/Maps/map_5.tscn")
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
func LoadMap6() -> void:
|
||||||
|
get_tree().change_scene_to_file("res://Game/Maps/map_6.tscn")
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
loadData()
|
loadData()
|
||||||
@ -27,6 +36,8 @@ func _ready() -> void:
|
|||||||
get_node("VBoxContainer/HBoxContainer/second/Button").connect("button_up", LoadMap2)
|
get_node("VBoxContainer/HBoxContainer/second/Button").connect("button_up", LoadMap2)
|
||||||
get_node("VBoxContainer/HBoxContainer/third/Button").connect("button_up", LoadMap3)
|
get_node("VBoxContainer/HBoxContainer/third/Button").connect("button_up", LoadMap3)
|
||||||
get_node("VBoxContainer/HBoxContainer/fourth/Button").connect("button_up", LoadMap4)
|
get_node("VBoxContainer/HBoxContainer/fourth/Button").connect("button_up", LoadMap4)
|
||||||
|
get_node("VBoxContainer/HBoxContainer/fith/Button").connect("button_up", LoadMap5)
|
||||||
|
get_node("VBoxContainer/HBoxContainer/sixth/Button").connect("button_up", LoadMap6)
|
||||||
|
|
||||||
var unlocker = true
|
var unlocker = true
|
||||||
for i in get_node("VBoxContainer").get_children():
|
for i in get_node("VBoxContainer").get_children():
|
||||||
@ -56,15 +67,20 @@ func loadData() -> void:
|
|||||||
get_node("VBoxContainer/HBoxContainer/second/Label2").text = "Haven't finished yet" if map_scores["Map2"] == 0 else "Scored: " + str(map_scores["Map2"]) + " out of 10"
|
get_node("VBoxContainer/HBoxContainer/second/Label2").text = "Haven't finished yet" if map_scores["Map2"] == 0 else "Scored: " + str(map_scores["Map2"]) + " out of 10"
|
||||||
get_node("VBoxContainer/HBoxContainer/third/Label2").text = "Haven't finished yet" if map_scores["Map3"] == 0 else "Scored: " + str(map_scores["Map3"]) + " out of 10"
|
get_node("VBoxContainer/HBoxContainer/third/Label2").text = "Haven't finished yet" if map_scores["Map3"] == 0 else "Scored: " + str(map_scores["Map3"]) + " out of 10"
|
||||||
get_node("VBoxContainer/HBoxContainer/fourth/Label2").text = "Haven't finished yet" if map_scores["Map4"] == 0 else "Scored: " + str(map_scores["Map4"]) + " out of 10"
|
get_node("VBoxContainer/HBoxContainer/fourth/Label2").text = "Haven't finished yet" if map_scores["Map4"] == 0 else "Scored: " + str(map_scores["Map4"]) + " out of 10"
|
||||||
|
get_node("VBoxContainer/HBoxContainer/fith/Label2").text = "Haven't finished yet" if map_scores["Map5"] == 0 else "Scored: " + str(map_scores["Map5"]) + " out of 10"
|
||||||
|
get_node("VBoxContainer/HBoxContainer/sixth/Label2").text = "Haven't finished yet" if map_scores["Map6"] == 0 else "Scored: " + str(map_scores["Map6"]) + " out of 10"
|
||||||
|
|
||||||
else:
|
else:
|
||||||
map_scores["Map1"] = 0
|
map_scores["Map1"] = 0
|
||||||
map_scores["Map2"] = 0
|
map_scores["Map2"] = 0
|
||||||
map_scores["Map3"] = 0
|
map_scores["Map3"] = 0
|
||||||
map_scores["Map4"] = 0
|
map_scores["Map4"] = 0
|
||||||
|
map_scores["Map5"] = 0
|
||||||
|
map_scores["Map6"] = 0
|
||||||
|
|
||||||
save_scores()
|
save_scores()
|
||||||
loadData()
|
loadData()
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
func save_scores():
|
func save_scores():
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=20 format=3 uid="uid://cxet2lvdco2ak"]
|
[gd_scene load_steps=33 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"]
|
||||||
@ -7,6 +7,9 @@
|
|||||||
[ext_resource type="Texture2D" uid="uid://dffphf4kn5sk2" path="res://Assets/Maps/map2.png" id="5_mjmwi"]
|
[ext_resource type="Texture2D" uid="uid://dffphf4kn5sk2" path="res://Assets/Maps/map2.png" id="5_mjmwi"]
|
||||||
[ext_resource type="Texture2D" uid="uid://fevwxt4ody3f" path="res://Assets/Maps/map3.png" id="6_5yqcp"]
|
[ext_resource type="Texture2D" uid="uid://fevwxt4ody3f" path="res://Assets/Maps/map3.png" id="6_5yqcp"]
|
||||||
[ext_resource type="Texture2D" uid="uid://djv5n53tndiig" path="res://Assets/Others/padlock.png" id="6_udeaf"]
|
[ext_resource type="Texture2D" uid="uid://djv5n53tndiig" path="res://Assets/Others/padlock.png" id="6_udeaf"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://c3ig1iy1m4ydq" path="res://Assets/Maps/map4.png" id="8_cg1t8"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://c0q8h850738on" path="res://Assets/Maps/map5.png" id="9_losb8"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://b3dk0ipi0galp" path="res://Assets/Maps/map6.png" id="9_rjq3w"]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_cnef1"]
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_cnef1"]
|
||||||
texture = ExtResource("1_jteil")
|
texture = ExtResource("1_jteil")
|
||||||
@ -44,6 +47,48 @@ texture_margin_top = 5.0
|
|||||||
texture_margin_right = 5.0
|
texture_margin_right = 5.0
|
||||||
texture_margin_bottom = 5.0
|
texture_margin_bottom = 5.0
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_32se8"]
|
||||||
|
texture = ExtResource("8_cg1t8")
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_0idsm"]
|
||||||
|
texture = ExtResource("8_cg1t8")
|
||||||
|
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_eun27"]
|
||||||
|
texture = ExtResource("8_cg1t8")
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_ujig1"]
|
||||||
|
texture = ExtResource("9_losb8")
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_oet65"]
|
||||||
|
texture = ExtResource("9_losb8")
|
||||||
|
texture_margin_left = 5.0
|
||||||
|
texture_margin_top = 5.0
|
||||||
|
texture_margin_right = 5.0
|
||||||
|
texture_margin_bottom = 5.0
|
||||||
|
|
||||||
|
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_rjq3w"]
|
||||||
|
load_path = "res://.godot/imported/map5.png-866c8a9e4a358af603571c71a29c14d5.ctex"
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_rhwuk"]
|
||||||
|
texture = SubResource("CompressedTexture2D_rjq3w")
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_h63b2"]
|
||||||
|
texture = ExtResource("9_rjq3w")
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_7vqd6"]
|
||||||
|
texture = ExtResource("9_rjq3w")
|
||||||
|
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_42tg7"]
|
||||||
|
texture = ExtResource("9_rjq3w")
|
||||||
|
|
||||||
[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"]
|
||||||
@ -244,14 +289,14 @@ alignment = 1
|
|||||||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/fourth"]
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/fourth"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 4
|
size_flags_horizontal = 4
|
||||||
text = "3rd Level"
|
text = "4th Level"
|
||||||
|
|
||||||
[node name="Button" type="Button" parent="VBoxContainer/HBoxContainer/fourth"]
|
[node name="Button" type="Button" parent="VBoxContainer/HBoxContainer/fourth"]
|
||||||
custom_minimum_size = Vector2(120, 80)
|
custom_minimum_size = Vector2(120, 80)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme_override_styles/disabled = SubResource("StyleBoxTexture_44oc2")
|
theme_override_styles/disabled = SubResource("StyleBoxTexture_32se8")
|
||||||
theme_override_styles/hover = SubResource("StyleBoxTexture_losb8")
|
theme_override_styles/hover = SubResource("StyleBoxTexture_0idsm")
|
||||||
theme_override_styles/normal = SubResource("StyleBoxTexture_44oc2")
|
theme_override_styles/normal = SubResource("StyleBoxTexture_eun27")
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer/fourth/Button"]
|
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer/fourth/Button"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
@ -273,6 +318,78 @@ layout_mode = 2
|
|||||||
size_flags_horizontal = 4
|
size_flags_horizontal = 4
|
||||||
text = "Score: 10 / "
|
text = "Score: 10 / "
|
||||||
|
|
||||||
|
[node name="fith" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
alignment = 1
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/fith"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "5th Level"
|
||||||
|
|
||||||
|
[node name="Button" type="Button" parent="VBoxContainer/HBoxContainer/fith"]
|
||||||
|
custom_minimum_size = Vector2(120, 80)
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_styles/disabled = SubResource("StyleBoxTexture_ujig1")
|
||||||
|
theme_override_styles/hover = SubResource("StyleBoxTexture_oet65")
|
||||||
|
theme_override_styles/normal = SubResource("StyleBoxTexture_rhwuk")
|
||||||
|
|
||||||
|
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer/fith/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/HBoxContainer/fith"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "Score: 10 / "
|
||||||
|
|
||||||
|
[node name="sixth" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
alignment = 1
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/sixth"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
text = "6th Level"
|
||||||
|
|
||||||
|
[node name="Button" type="Button" parent="VBoxContainer/HBoxContainer/sixth"]
|
||||||
|
custom_minimum_size = Vector2(120, 80)
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_styles/disabled = SubResource("StyleBoxTexture_h63b2")
|
||||||
|
theme_override_styles/hover = SubResource("StyleBoxTexture_7vqd6")
|
||||||
|
theme_override_styles/normal = SubResource("StyleBoxTexture_42tg7")
|
||||||
|
|
||||||
|
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer/sixth/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/HBoxContainer/sixth"]
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user