summaryrefslogtreecommitdiff
path: root/Stages/Goal
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-10-02 19:23:19 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-10-02 19:23:19 +0200
commitc8bd14d6feeca72fc96b895c9382ebc16a1caf55 (patch)
tree8423bdead9ce57d3dd62759cf362073ac5955eb3 /Stages/Goal
initial commit
Diffstat (limited to 'Stages/Goal')
-rw-r--r--Stages/Goal/Assets/goal-01.pngbin0 -> 829 bytes
-rw-r--r--Stages/Goal/Assets/goal-01.png.import34
-rw-r--r--Stages/Goal/Assets/goal-02.pngbin0 -> 808 bytes
-rw-r--r--Stages/Goal/Assets/goal-02.png.import34
-rw-r--r--Stages/Goal/Assets/goal-03.pngbin0 -> 816 bytes
-rw-r--r--Stages/Goal/Assets/goal-03.png.import34
-rw-r--r--Stages/Goal/Assets/goal-04.pngbin0 -> 822 bytes
-rw-r--r--Stages/Goal/Assets/goal-04.png.import34
-rw-r--r--Stages/Goal/Assets/goal-05.pngbin0 -> 821 bytes
-rw-r--r--Stages/Goal/Assets/goal-05.png.import34
-rw-r--r--Stages/Goal/Assets/goal-06.pngbin0 -> 820 bytes
-rw-r--r--Stages/Goal/Assets/goal-06.png.import34
-rw-r--r--Stages/Goal/Goal.tscn59
-rw-r--r--Stages/Goal/goal.gd10
-rw-r--r--Stages/Goal/goal_area.gd5
15 files changed, 278 insertions, 0 deletions
diff --git a/Stages/Goal/Assets/goal-01.png b/Stages/Goal/Assets/goal-01.png
new file mode 100644
index 0000000..c923e61
--- /dev/null
+++ b/Stages/Goal/Assets/goal-01.png
Binary files differ
diff --git a/Stages/Goal/Assets/goal-01.png.import b/Stages/Goal/Assets/goal-01.png.import
new file mode 100644
index 0000000..fc8c952
--- /dev/null
+++ b/Stages/Goal/Assets/goal-01.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dfd06s7jdcoh2"
+path="res://.godot/imported/goal-01.png-b503339c1f54fc5bd94192d7deebf86b.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://Stages/Goal/Assets/goal-01.png"
+dest_files=["res://.godot/imported/goal-01.png-b503339c1f54fc5bd94192d7deebf86b.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
diff --git a/Stages/Goal/Assets/goal-02.png b/Stages/Goal/Assets/goal-02.png
new file mode 100644
index 0000000..4681dae
--- /dev/null
+++ b/Stages/Goal/Assets/goal-02.png
Binary files differ
diff --git a/Stages/Goal/Assets/goal-02.png.import b/Stages/Goal/Assets/goal-02.png.import
new file mode 100644
index 0000000..83872e2
--- /dev/null
+++ b/Stages/Goal/Assets/goal-02.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cc5dx2nohiq0e"
+path="res://.godot/imported/goal-02.png-e610f6270ed9845d7f5c21b5b5619588.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://Stages/Goal/Assets/goal-02.png"
+dest_files=["res://.godot/imported/goal-02.png-e610f6270ed9845d7f5c21b5b5619588.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
diff --git a/Stages/Goal/Assets/goal-03.png b/Stages/Goal/Assets/goal-03.png
new file mode 100644
index 0000000..40f60d6
--- /dev/null
+++ b/Stages/Goal/Assets/goal-03.png
Binary files differ
diff --git a/Stages/Goal/Assets/goal-03.png.import b/Stages/Goal/Assets/goal-03.png.import
new file mode 100644
index 0000000..16354de
--- /dev/null
+++ b/Stages/Goal/Assets/goal-03.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cllb8yhfyxo2c"
+path="res://.godot/imported/goal-03.png-f3a68620ca99d823aa54f04e984a012d.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://Stages/Goal/Assets/goal-03.png"
+dest_files=["res://.godot/imported/goal-03.png-f3a68620ca99d823aa54f04e984a012d.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
diff --git a/Stages/Goal/Assets/goal-04.png b/Stages/Goal/Assets/goal-04.png
new file mode 100644
index 0000000..4604c08
--- /dev/null
+++ b/Stages/Goal/Assets/goal-04.png
Binary files differ
diff --git a/Stages/Goal/Assets/goal-04.png.import b/Stages/Goal/Assets/goal-04.png.import
new file mode 100644
index 0000000..993f45d
--- /dev/null
+++ b/Stages/Goal/Assets/goal-04.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://uskgsop6wmha"
+path="res://.godot/imported/goal-04.png-958517120d11e529a0b62f5b765a6e7d.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://Stages/Goal/Assets/goal-04.png"
+dest_files=["res://.godot/imported/goal-04.png-958517120d11e529a0b62f5b765a6e7d.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
diff --git a/Stages/Goal/Assets/goal-05.png b/Stages/Goal/Assets/goal-05.png
new file mode 100644
index 0000000..2f289fa
--- /dev/null
+++ b/Stages/Goal/Assets/goal-05.png
Binary files differ
diff --git a/Stages/Goal/Assets/goal-05.png.import b/Stages/Goal/Assets/goal-05.png.import
new file mode 100644
index 0000000..e89c6fc
--- /dev/null
+++ b/Stages/Goal/Assets/goal-05.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://crfbfk6vwy5vg"
+path="res://.godot/imported/goal-05.png-b97d4f4e988d3d36e262c13ffc5799e6.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://Stages/Goal/Assets/goal-05.png"
+dest_files=["res://.godot/imported/goal-05.png-b97d4f4e988d3d36e262c13ffc5799e6.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
diff --git a/Stages/Goal/Assets/goal-06.png b/Stages/Goal/Assets/goal-06.png
new file mode 100644
index 0000000..6304896
--- /dev/null
+++ b/Stages/Goal/Assets/goal-06.png
Binary files differ
diff --git a/Stages/Goal/Assets/goal-06.png.import b/Stages/Goal/Assets/goal-06.png.import
new file mode 100644
index 0000000..ee082ee
--- /dev/null
+++ b/Stages/Goal/Assets/goal-06.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://rrwn2c4rwgvx"
+path="res://.godot/imported/goal-06.png-7c676c4ec785393c2d137dba1a552993.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://Stages/Goal/Assets/goal-06.png"
+dest_files=["res://.godot/imported/goal-06.png-7c676c4ec785393c2d137dba1a552993.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
diff --git a/Stages/Goal/Goal.tscn b/Stages/Goal/Goal.tscn
new file mode 100644
index 0000000..2e208ec
--- /dev/null
+++ b/Stages/Goal/Goal.tscn
@@ -0,0 +1,59 @@
+[gd_scene load_steps=10 format=3 uid="uid://erjn41cnb3ha"]
+
+[ext_resource type="Script" path="res://Stages/Goal/goal.gd" id="1_olpsd"]
+[ext_resource type="Texture2D" uid="uid://dfd06s7jdcoh2" path="res://Stages/Goal/Assets/goal-01.png" id="2_fv7o7"]
+[ext_resource type="Texture2D" uid="uid://cc5dx2nohiq0e" path="res://Stages/Goal/Assets/goal-02.png" id="3_55ojj"]
+[ext_resource type="Texture2D" uid="uid://cllb8yhfyxo2c" path="res://Stages/Goal/Assets/goal-03.png" id="4_vme42"]
+[ext_resource type="Texture2D" uid="uid://uskgsop6wmha" path="res://Stages/Goal/Assets/goal-04.png" id="5_h2yew"]
+[ext_resource type="Texture2D" uid="uid://crfbfk6vwy5vg" path="res://Stages/Goal/Assets/goal-05.png" id="6_iyyas"]
+[ext_resource type="Texture2D" uid="uid://rrwn2c4rwgvx" path="res://Stages/Goal/Assets/goal-06.png" id="7_dvlyc"]
+
+[sub_resource type="SpriteFrames" id="SpriteFrames_0huga"]
+animations = [{
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("2_fv7o7")
+}, {
+"duration": 1.0,
+"texture": ExtResource("3_55ojj")
+}, {
+"duration": 1.0,
+"texture": ExtResource("4_vme42")
+}, {
+"duration": 1.0,
+"texture": ExtResource("5_h2yew")
+}, {
+"duration": 1.0,
+"texture": ExtResource("6_iyyas")
+}, {
+"duration": 1.0,
+"texture": ExtResource("7_dvlyc")
+}],
+"loop": true,
+"name": &"default",
+"speed": 5.0
+}]
+
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_7oxgv"]
+size = Vector2(8, 2)
+
+[node name="Goal" type="Node2D"]
+script = ExtResource("1_olpsd")
+
+[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
+texture_filter = 1
+sprite_frames = SubResource("SpriteFrames_0huga")
+frame_progress = 0.883034
+centered = false
+
+[node name="Area2D" type="Area2D" parent="."]
+collision_layer = 1024
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
+position = Vector2(19, 21)
+shape = SubResource("RectangleShape2D_7oxgv")
+
+[node name="GoalCenter" type="Marker2D" parent="."]
+position = Vector2(19, 14)
+
+[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
diff --git a/Stages/Goal/goal.gd b/Stages/Goal/goal.gd
new file mode 100644
index 0000000..6854d7a
--- /dev/null
+++ b/Stages/Goal/goal.gd
@@ -0,0 +1,10 @@
+extends Node2D
+
+
+func _ready() -> void:
+ $AnimatedSprite2D.play("default")
+
+
+func _on_area_2d_body_entered(body: Node2D) -> void:
+ if body is Unit:
+ body.enter_goal($GoalCenter.global_position)
diff --git a/Stages/Goal/goal_area.gd b/Stages/Goal/goal_area.gd
new file mode 100644
index 0000000..b206434
--- /dev/null
+++ b/Stages/Goal/goal_area.gd
@@ -0,0 +1,5 @@
+extends Area2D
+
+
+func get_center():
+ return get_parent().get_node("GoalCenter").global_position