Compare commits
3 Commits
43900660b6
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 0a2143d4c8 | |||
| 25287c57fc | |||
| 3272336f86 |
BIN
Assets/Castles/castle crop.png
Normal file
BIN
Assets/Castles/castle crop.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 299 KiB |
34
Assets/Castles/castle crop.png.import
Normal file
34
Assets/Castles/castle crop.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://biwoh23r10d2j"
|
||||
path="res://.godot/imported/castle crop.png-eced81e7152f7e8e9ef1a52b4e0f06e0.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Castles/castle crop.png"
|
||||
dest_files=["res://.godot/imported/castle crop.png-eced81e7152f7e8e9ef1a52b4e0f06e0.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/map10.png
Normal file
BIN
Assets/Maps/map10.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
34
Assets/Maps/map10.png.import
Normal file
34
Assets/Maps/map10.png.import
Normal 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
|
||||
BIN
Assets/Maps/map7.png
Normal file
BIN
Assets/Maps/map7.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 68 KiB |
@ -2,16 +2,16 @@
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bga5bdw0jky6y"
|
||||
path="res://.godot/imported/map6.png-0e1fbf77be565a8b11e85963055f3e6a.ctex"
|
||||
uid="uid://nxo2e3kn35ym"
|
||||
path="res://.godot/imported/map7.png-82d21e37ff5eb3e81c6fa086a1d85f70.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Game/Maps/map6.png"
|
||||
dest_files=["res://.godot/imported/map6.png-0e1fbf77be565a8b11e85963055f3e6a.ctex"]
|
||||
source_file="res://Assets/Maps/map7.png"
|
||||
dest_files=["res://.godot/imported/map7.png-82d21e37ff5eb3e81c6fa086a1d85f70.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
BIN
Assets/Maps/map8.png
Normal file
BIN
Assets/Maps/map8.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 97 KiB |
34
Assets/Maps/map8.png.import
Normal file
34
Assets/Maps/map8.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b8gw3mcck5ig6"
|
||||
path="res://.godot/imported/map8.png-61a854517541a0ca59807a6fc7f6474f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Maps/map8.png"
|
||||
dest_files=["res://.godot/imported/map8.png-61a854517541a0ca59807a6fc7f6474f.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/map9.png
Normal file
BIN
Assets/Maps/map9.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 115 KiB |
34
Assets/Maps/map9.png.import
Normal file
34
Assets/Maps/map9.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cn502nylvorxv"
|
||||
path="res://.godot/imported/map9.png-b1e9daa3c37677c598016c591719f8b6.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Maps/map9.png"
|
||||
dest_files=["res://.godot/imported/map9.png-b1e9daa3c37677c598016c591719f8b6.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
|
||||
@ -89,7 +89,9 @@ func target_reached() -> void:
|
||||
if name.contains("Magic"):
|
||||
self.get_node("CharacterBody2D").get_node("Sprite2D").hide()
|
||||
if randf() < 0.1:
|
||||
target.get_parent().set_progress(max(target.get_parent().get_progress() - 60, 0))
|
||||
#target.get_parent().set_progress(max(target.get_parent().get_progress() - 60, 0))
|
||||
target.get_parent().set_progress(0)
|
||||
target.get_parent().set_process(true)
|
||||
|
||||
if target:
|
||||
target.get_parent().enemy_hurt(hitpoint)
|
||||
|
||||
49
Game/Maps/Map10_setup.gd
Normal file
49
Game/Maps/Map10_setup.gd
Normal 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 = 1000
|
||||
1
Game/Maps/Map10_setup.gd.uid
Normal file
1
Game/Maps/Map10_setup.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://dbkla6i7vwysd
|
||||
@ -23,20 +23,20 @@ var waves = [
|
||||
[40, 0.7, 0.1, 0.2, 0.7], #wave 5
|
||||
],
|
||||
[
|
||||
[2, 0.1, 0.8, 0.2, 0.0], #wave 1 #Fourth Path TOPRIGHT
|
||||
[3, 0.1, 0.5, 0.5, 0.0], #wave 2
|
||||
[4, 0.1, 0.4, 0.4, 0.1], #wave 3
|
||||
[4, 0.1, 0.3, 0.2, 0.5], #wave 4
|
||||
[4, 0.1, 0.1, 0.2, 0.7], #wave 5
|
||||
[4, 0.1, 0.8, 0.2, 0.0], #wave 1 #Fith Path BOTTOMRIGHT
|
||||
[6, 0.1, 0.5, 0.5, 0.0], #wave 2
|
||||
[8, 0.1, 0.4, 0.4, 0.1], #wave 3
|
||||
[10, 0.1, 0.3, 0.2, 0.5], #wave 4
|
||||
[15, 0.1, 0.1, 0.2, 0.7], #wave 5
|
||||
],
|
||||
[
|
||||
[2, 0.1, 0.8, 0.2, 0.0], #wave 1 #Fith Path BOTTOMRIGHT
|
||||
[3, 0.1, 0.5, 0.5, 0.0], #wave 2
|
||||
[4, 0.1, 0.4, 0.4, 0.1], #wave 3
|
||||
[5, 0.1, 0.3, 0.2, 0.5], #wave 4
|
||||
[5, 0.1, 0.1, 0.2, 0.7], #wave 5
|
||||
[4, 0.1, 0.8, 0.2, 0.0], #wave 1 #Fith Path BOTTOMRIGHT
|
||||
[6, 0.1, 0.5, 0.5, 0.0], #wave 2
|
||||
[8, 0.1, 0.4, 0.4, 0.1], #wave 3
|
||||
[10, 0.1, 0.3, 0.2, 0.5], #wave 4
|
||||
[15, 0.1, 0.1, 0.2, 0.7], #wave 5
|
||||
]
|
||||
]
|
||||
|
||||
var lives = 25
|
||||
var coins = 800
|
||||
var coins = 650
|
||||
|
||||
@ -25,4 +25,4 @@ var waves = [
|
||||
]
|
||||
|
||||
var lives = 20
|
||||
var coins = 500
|
||||
var coins = 350
|
||||
|
||||
@ -39,4 +39,4 @@ var waves = [
|
||||
]
|
||||
|
||||
var lives = 25
|
||||
var coins = 800
|
||||
var coins = 700
|
||||
|
||||
56
Game/Maps/Map7_setup.gd
Normal file
56
Game/Maps/Map7_setup.gd
Normal file
@ -0,0 +1,56 @@
|
||||
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
|
||||
],
|
||||
[
|
||||
[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 = 30
|
||||
var coins = 900
|
||||
1
Game/Maps/Map7_setup.gd.uid
Normal file
1
Game/Maps/Map7_setup.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://bckvp5iwipuap
|
||||
21
Game/Maps/Map8_setup.gd
Normal file
21
Game/Maps/Map8_setup.gd
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
||||
]
|
||||
]
|
||||
|
||||
var lives = 20
|
||||
var coins = 600
|
||||
1
Game/Maps/Map8_setup.gd.uid
Normal file
1
Game/Maps/Map8_setup.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://dh51rcpffhuyf
|
||||
35
Game/Maps/Map9_setup.gd
Normal file
35
Game/Maps/Map9_setup.gd
Normal file
@ -0,0 +1,35 @@
|
||||
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
|
||||
]
|
||||
]
|
||||
|
||||
var lives = 20
|
||||
var coins = 700
|
||||
1
Game/Maps/Map9_setup.gd.uid
Normal file
1
Game/Maps/Map9_setup.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://mn145ijama14
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 88 KiB |
@ -1556,7 +1556,7 @@ autostart = true
|
||||
[node name="TrapArea" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TrapArea"]
|
||||
position = Vector2(435, 187.5)
|
||||
position = Vector2(435, 190)
|
||||
shape = SubResource("RectangleShape2D_rec5e")
|
||||
debug_color = Color(0.798903, 0.0385002, 1, 0.42)
|
||||
|
||||
@ -1577,7 +1577,7 @@ position = Vector2(587, 48)
|
||||
shape = SubResource("RectangleShape2D_6egdt")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="TowerArea"]
|
||||
position = Vector2(404.938, 206)
|
||||
position = Vector2(400, 199)
|
||||
shape = SubResource("RectangleShape2D_n3ya7")
|
||||
|
||||
[node name="CollisionShape2D3" type="CollisionShape2D" parent="TowerArea"]
|
||||
|
||||
2151
Game/Maps/map_10.tscn
Normal file
2151
Game/Maps/map_10.tscn
Normal file
File diff suppressed because one or more lines are too long
@ -521,7 +521,7 @@ size = Vector2(1081.5, 2)
|
||||
size = Vector2(992, 1)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6egdt"]
|
||||
size = Vector2(1163, 13)
|
||||
size = Vector2(1163, 54.5)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_n3ya7"]
|
||||
size = Vector2(915.093, 2.34375)
|
||||
@ -533,7 +533,7 @@ size = Vector2(992, 0.656128)
|
||||
size = Vector2(1161, 2)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sglle"]
|
||||
size = Vector2(163, 153)
|
||||
size = Vector2(163, 163)
|
||||
|
||||
[node name="Map2" type="Node2D"]
|
||||
script = ExtResource("1_qncs7")
|
||||
@ -1586,7 +1586,7 @@ autostart = true
|
||||
[node name="TrapArea" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TrapArea"]
|
||||
position = Vector2(435, 187.5)
|
||||
position = Vector2(435, 191)
|
||||
shape = SubResource("RectangleShape2D_rec5e")
|
||||
debug_color = Color(0.798903, 0.0385002, 1, 0.42)
|
||||
|
||||
@ -1603,15 +1603,15 @@ debug_color = Color(0.798903, 0.0385002, 1, 0.42)
|
||||
[node name="TowerArea" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TowerArea"]
|
||||
position = Vector2(587, 48)
|
||||
position = Vector2(587, 27.25)
|
||||
shape = SubResource("RectangleShape2D_6egdt")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="TowerArea"]
|
||||
position = Vector2(350.453, 206)
|
||||
position = Vector2(350, 198)
|
||||
shape = SubResource("RectangleShape2D_n3ya7")
|
||||
|
||||
[node name="CollisionShape2D3" type="CollisionShape2D" parent="TowerArea"]
|
||||
position = Vector2(616, 360.328)
|
||||
position = Vector2(616, 358)
|
||||
shape = SubResource("RectangleShape2D_xfegu")
|
||||
|
||||
[node name="CollisionShape2D4" type="CollisionShape2D" parent="TowerArea"]
|
||||
@ -1619,7 +1619,7 @@ position = Vector2(579, 521)
|
||||
shape = SubResource("RectangleShape2D_4tlg5")
|
||||
|
||||
[node name="CollisionShape2D5" type="CollisionShape2D" parent="TowerArea"]
|
||||
position = Vector2(1072.5, 139.5)
|
||||
position = Vector2(1072.5, 134.5)
|
||||
shape = SubResource("RectangleShape2D_sglle")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
@ -890,13 +890,13 @@ size = Vector2(672, 4)
|
||||
size = Vector2(98, 3)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7kmhc"]
|
||||
size = Vector2(125.5, 1.5)
|
||||
size = Vector2(125.5, 8.75)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r25yv"]
|
||||
size = Vector2(1162, 50)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8x0i6"]
|
||||
size = Vector2(873, 90.5)
|
||||
size = Vector2(873, 96)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_n15pr"]
|
||||
size = Vector2(34, 170)
|
||||
@ -932,7 +932,6 @@ point_count = 4
|
||||
script = ExtResource("1_iueon")
|
||||
|
||||
[node name="TileMap" type="TileMap" parent="."]
|
||||
visible = false
|
||||
z_index = -1
|
||||
tile_set = SubResource("TileSet_4e145")
|
||||
rendering_quadrant_size = 64
|
||||
@ -954,18 +953,17 @@ wait_time = 0.4
|
||||
autostart = true
|
||||
|
||||
[node name="TrapArea" type="Area2D" parent="."]
|
||||
visible = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TrapArea"]
|
||||
position = Vector2(511.5, 148)
|
||||
position = Vector2(515, 160)
|
||||
shape = SubResource("RectangleShape2D_ocvl1")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="TrapArea"]
|
||||
position = Vector2(515, 310)
|
||||
position = Vector2(517, 317)
|
||||
shape = SubResource("RectangleShape2D_ocvl1")
|
||||
|
||||
[node name="CollisionShape2D3" type="CollisionShape2D" parent="TrapArea"]
|
||||
position = Vector2(520, 474)
|
||||
position = Vector2(521, 480)
|
||||
shape = SubResource("RectangleShape2D_ocvl1")
|
||||
|
||||
[node name="CollisionShape2D4" type="CollisionShape2D" parent="TrapArea"]
|
||||
@ -973,18 +971,17 @@ position = Vector2(47, 313.5)
|
||||
shape = SubResource("RectangleShape2D_sjmo1")
|
||||
|
||||
[node name="CollisionShape2D5" type="CollisionShape2D" parent="TrapArea"]
|
||||
position = Vector2(993.25, 312.75)
|
||||
position = Vector2(992, 323.625)
|
||||
shape = SubResource("RectangleShape2D_7kmhc")
|
||||
|
||||
[node name="TowerArea" type="Area2D" parent="."]
|
||||
visible = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TowerArea"]
|
||||
position = Vector2(568, -8)
|
||||
shape = SubResource("RectangleShape2D_r25yv")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="TowerArea"]
|
||||
position = Vector2(435.5, 538.75)
|
||||
position = Vector2(435.5, 536)
|
||||
shape = SubResource("RectangleShape2D_8x0i6")
|
||||
|
||||
[node name="CollisionShape2D3" type="CollisionShape2D" parent="TowerArea"]
|
||||
@ -1016,7 +1013,6 @@ position = Vector2(984, 569)
|
||||
shape = SubResource("RectangleShape2D_tsol2")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
visible = false
|
||||
|
||||
[node name="SidePanel" parent="CanvasLayer" instance=ExtResource("109_oxd1a")]
|
||||
size_flags_horizontal = 6
|
||||
@ -1024,15 +1020,12 @@ size_flags_horizontal = 6
|
||||
[node name="MusicPlayer" parent="." instance=ExtResource("110_kw68t")]
|
||||
|
||||
[node name="Path2D" type="Path2D" parent="."]
|
||||
visible = false
|
||||
curve = SubResource("Curve2D_ocvl1")
|
||||
|
||||
[node name="Path2D2" type="Path2D" parent="."]
|
||||
visible = false
|
||||
curve = SubResource("Curve2D_sjmo1")
|
||||
|
||||
[node name="Path2D3" type="Path2D" parent="."]
|
||||
visible = false
|
||||
curve = SubResource("Curve2D_7kmhc")
|
||||
|
||||
[node name="Setup" type="Node" parent="."]
|
||||
|
||||
1873
Game/Maps/map_7.tscn
Normal file
1873
Game/Maps/map_7.tscn
Normal file
File diff suppressed because one or more lines are too long
1785
Game/Maps/map_8.tscn
Normal file
1785
Game/Maps/map_8.tscn
Normal file
File diff suppressed because one or more lines are too long
1976
Game/Maps/map_9.tscn
Normal file
1976
Game/Maps/map_9.tscn
Normal file
File diff suppressed because one or more lines are too long
@ -38,6 +38,7 @@ func _on_timer_timeout() -> void:
|
||||
if checkend:
|
||||
endwave = false
|
||||
get_node("CanvasLayer/SidePanel").Update_waves(currentwave + 1) #updating waves
|
||||
pause = 40
|
||||
if currentwave >= waves[0].size():
|
||||
get_node("CanvasLayer/SidePanel").Update_waves(currentwave) #updating waves
|
||||
get_node("Timer").stop()
|
||||
|
||||
@ -28,8 +28,23 @@ func LoadMap6() -> void:
|
||||
get_tree().change_scene_to_file("res://Game/Maps/map_6.tscn")
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func LoadMap7() -> void:
|
||||
get_tree().change_scene_to_file("res://Game/Maps/map_7.tscn")
|
||||
pass # Replace with function body.
|
||||
|
||||
func LoadMap8() -> void:
|
||||
get_tree().change_scene_to_file("res://Game/Maps/map_8.tscn")
|
||||
pass # Replace with function body.
|
||||
|
||||
func LoadMap9() -> void:
|
||||
get_tree().change_scene_to_file("res://Game/Maps/map_9.tscn")
|
||||
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:
|
||||
loadData()
|
||||
get_node("VBoxContainer/HBoxContainer/first/Button").connect("button_up", LoadMap1)
|
||||
@ -38,6 +53,10 @@ func _ready() -> void:
|
||||
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)
|
||||
get_node("VBoxContainer/HBoxContainer2/seventh/Button").connect("button_up", LoadMap7)
|
||||
get_node("VBoxContainer/HBoxContainer2/eighth/Button").connect("button_up", LoadMap8)
|
||||
get_node("VBoxContainer/HBoxContainer2/nineth/Button").connect("button_up", LoadMap9)
|
||||
get_node("VBoxContainer/HBoxContainer2/tenth/Button").connect("button_up", LoadMap10)
|
||||
|
||||
var unlocker = true
|
||||
for i in get_node("VBoxContainer").get_children():
|
||||
@ -61,7 +80,6 @@ func loadData() -> void:
|
||||
|
||||
if file:
|
||||
map_scores = file.get_var()
|
||||
print(map_scores)
|
||||
file.close()
|
||||
get_node("VBoxContainer/HBoxContainer/first/Label2").text = "Haven't finished yet" if map_scores["Map1"] == 0 else "Scored: " + str(map_scores["Map1"]) + " 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"
|
||||
@ -69,6 +87,10 @@ func loadData() -> void:
|
||||
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"
|
||||
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/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:
|
||||
map_scores["Map1"] = 0
|
||||
@ -77,6 +99,10 @@ func loadData() -> void:
|
||||
map_scores["Map4"] = 0
|
||||
map_scores["Map5"] = 0
|
||||
map_scores["Map6"] = 0
|
||||
map_scores["Map7"] = 0
|
||||
map_scores["Map8"] = 0
|
||||
map_scores["Map9"] = 0
|
||||
map_scores["Map10"] = 0
|
||||
|
||||
save_scores()
|
||||
loadData()
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=33 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="Texture2D" uid="uid://bgy114b67j3kg" path="res://Assets/Others/8-bit-graphics-pixels-scene-with-castle.jpg" id="1_jteil"]
|
||||
@ -10,6 +10,10 @@
|
||||
[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"]
|
||||
[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://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"]
|
||||
texture = ExtResource("1_jteil")
|
||||
@ -89,6 +93,58 @@ texture_margin_bottom = 5.0
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_42tg7"]
|
||||
texture = ExtResource("9_rjq3w")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_7w5kq"]
|
||||
texture = ExtResource("11_uvrvw")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_c13he"]
|
||||
texture = ExtResource("11_uvrvw")
|
||||
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_j14e4"]
|
||||
texture = ExtResource("11_uvrvw")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_8m1pv"]
|
||||
texture = ExtResource("12_44oc2")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_yuwpe"]
|
||||
texture = ExtResource("12_44oc2")
|
||||
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_7syen"]
|
||||
texture = ExtResource("12_44oc2")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_u8iav"]
|
||||
texture = ExtResource("13_hmthg")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_8svj5"]
|
||||
texture = ExtResource("13_hmthg")
|
||||
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_1ujta"]
|
||||
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="StyleBoxFlat" id="StyleBoxFlat_mjmwi"]
|
||||
@ -390,6 +446,156 @@ layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "Score: 10 / "
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 8
|
||||
theme_override_constants/separation = 30
|
||||
alignment = 1
|
||||
|
||||
[node name="seventh" type="VBoxContainer" parent="VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2/seventh"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "7th Level"
|
||||
|
||||
[node name="Button" type="Button" parent="VBoxContainer/HBoxContainer2/seventh"]
|
||||
custom_minimum_size = Vector2(120, 80)
|
||||
layout_mode = 2
|
||||
theme_override_styles/disabled = SubResource("StyleBoxTexture_7w5kq")
|
||||
theme_override_styles/hover = SubResource("StyleBoxTexture_c13he")
|
||||
theme_override_styles/normal = SubResource("StyleBoxTexture_j14e4")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer2/seventh/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/seventh"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "Score: 10 / "
|
||||
|
||||
[node name="eighth" type="VBoxContainer" parent="VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2/eighth"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "8th Level"
|
||||
|
||||
[node name="Button" type="Button" parent="VBoxContainer/HBoxContainer2/eighth"]
|
||||
custom_minimum_size = Vector2(120, 80)
|
||||
layout_mode = 2
|
||||
theme_override_styles/disabled = SubResource("StyleBoxTexture_8m1pv")
|
||||
theme_override_styles/hover = SubResource("StyleBoxTexture_yuwpe")
|
||||
theme_override_styles/normal = SubResource("StyleBoxTexture_7syen")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer2/eighth/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/eighth"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "Score: 10 / "
|
||||
|
||||
[node name="nineth" type="VBoxContainer" parent="VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2/nineth"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "9th Level"
|
||||
|
||||
[node name="Button" type="Button" parent="VBoxContainer/HBoxContainer2/nineth"]
|
||||
custom_minimum_size = Vector2(120, 80)
|
||||
layout_mode = 2
|
||||
theme_override_styles/disabled = SubResource("StyleBoxTexture_u8iav")
|
||||
theme_override_styles/hover = SubResource("StyleBoxTexture_8svj5")
|
||||
theme_override_styles/normal = SubResource("StyleBoxTexture_1ujta")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer2/nineth/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/nineth"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
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="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
@ -420,4 +626,8 @@ theme_override_styles/normal = SubResource("StyleBoxFlat_5yqcp")
|
||||
text = "Main Menu"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/HBoxContainer/first/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/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"]
|
||||
|
||||
@ -5,11 +5,11 @@
|
||||
[ext_resource type="Texture2D" uid="uid://l58s5yxh4f8n" path="res://Assets/Traps/Sticks/Tile2_60.png" id="2_metvu"]
|
||||
[ext_resource type="AudioStream" uid="uid://b00qix6a3do53" path="res://Assets/Sounds/stick trap impact.mp3" id="4_m1bdk"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_m1bdk"]
|
||||
radius = 32.0
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_m1bdk"]
|
||||
size = Vector2(62.5, 35)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_metvu"]
|
||||
size = Vector2(49.5, 18)
|
||||
size = Vector2(49.5, 27)
|
||||
|
||||
[node name="StickTrap" type="Node2D"]
|
||||
script = ExtResource("1_metvu")
|
||||
@ -29,14 +29,14 @@ texture = ExtResource("2_metvu")
|
||||
offset = Vector2(-10, 0)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
position = Vector2(5, 0)
|
||||
position = Vector2(4, 2)
|
||||
scale = Vector2(0.8, 0.8)
|
||||
shape = SubResource("CircleShape2D_m1bdk")
|
||||
shape = SubResource("RectangleShape2D_m1bdk")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(4.25, 11)
|
||||
position = Vector2(4.25, 2.5)
|
||||
shape = SubResource("RectangleShape2D_metvu")
|
||||
debug_color = Color(0.811824, 0.00210331, 0.983083, 0.42)
|
||||
|
||||
|
||||
@ -82,7 +82,7 @@ func _on_timer_timeout() -> void:
|
||||
for i in get_node("CharacterBody2D/Area2D").get_overlapping_bodies():
|
||||
for j in NAMES:
|
||||
if i.get_parent().name.contains(j):
|
||||
minus += 1
|
||||
minus += 0.3
|
||||
|
||||
health -= minus
|
||||
get_node("CharacterBody2D/ProgressBar").value = health
|
||||
|
||||
@ -23,7 +23,7 @@ corner_radius_bottom_right = 20
|
||||
corner_radius_bottom_left = 20
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3ht3o"]
|
||||
size = Vector2(38, 59)
|
||||
size = Vector2(42, 59)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xk2lx"]
|
||||
size = Vector2(20, 52)
|
||||
@ -63,11 +63,11 @@ show_percentage = false
|
||||
[node name="Area2D" type="Area2D" parent="CharacterBody2D"]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D/Area2D"]
|
||||
position = Vector2(-9, -1.5)
|
||||
position = Vector2(0, 1)
|
||||
shape = SubResource("RectangleShape2D_3ht3o")
|
||||
|
||||
[node name="Timer" type="Timer" parent="CharacterBody2D"]
|
||||
wait_time = 0.3
|
||||
wait_time = 0.1
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ func _ready() -> void:
|
||||
get_node("WaveCounter").z_index = 5
|
||||
|
||||
stickspawner.connect("button_up", Spawn_Stick)
|
||||
stickspawner.tooltip_text = "Cost: 10\nReturn: 5"
|
||||
stickspawner.tooltip_text = "Cost: 30\nReturn: 5"
|
||||
|
||||
minespawner.connect("button_up", Spawn_Mine)
|
||||
minespawner.tooltip_text = "Cost: 40\nReturn: 10"
|
||||
@ -110,8 +110,8 @@ func Update_Coins(amount) -> void:
|
||||
coins += amount
|
||||
|
||||
func Spawn_Stick() -> void:
|
||||
if coins >= 10:
|
||||
coins -= 10
|
||||
if coins >= 30:
|
||||
coins -= 30
|
||||
var stick = STICK_TRAP.instantiate()
|
||||
stick.name = "StickTrap-" + str(randi())
|
||||
get_parent().add_child(stick)
|
||||
@ -212,7 +212,7 @@ func GameWon() -> void:
|
||||
file.close()
|
||||
|
||||
var old_score = old_scores.get(map_name, 0)
|
||||
if new_score > old_score:
|
||||
if new_score >= old_score:
|
||||
old_scores[map_name] = new_score
|
||||
file = FileAccess.open(save_path, FileAccess.WRITE)
|
||||
file.store_var(old_scores)
|
||||
|
||||
Reference in New Issue
Block a user