Skip to content

Commit

Permalink
Add portal visual at the end of path
Browse files Browse the repository at this point in the history
Edit tilemap to add a room with portal at the end of creep path
Add VFX for when creep reaches the portal
  • Loading branch information
Kvel2D committed Oct 6, 2024
1 parent beddcd5 commit a74d100
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 27 deletions.
4 changes: 4 additions & 0 deletions src/creeps/creep.gd
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ func _deal_damage_to_portal():
team.modify_lives(-damage_to_portal)
team.play_portal_damage_sfx()

var effect: int = Effect.create_simple_at_unit("res://src/effects/silence_area.tscn", self)
Effect.set_color(effect, Color8(90, 180, 250))
Effect.set_scale(effect, 1.5)

EventBus.portal_received_damage.emit()


Expand Down
21 changes: 15 additions & 6 deletions src/game_scene/game_scene.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=35 format=3 uid="uid://ccr6p41srpf4p"]
[gd_scene load_steps=36 format=3 uid="uid://ccr6p41srpf4p"]

[ext_resource type="Script" path="res://src/game_scene/game_scene.gd" id="1_0wd1b"]
[ext_resource type="Script" path="res://src/game_scene/manual_timer.gd" id="2_gestc"]
Expand All @@ -20,6 +20,7 @@
[ext_resource type="Script" path="res://src/creeps/wave_path.gd" id="18_m2fcq"]
[ext_resource type="Script" path="res://src/player/camera_origin.gd" id="19_jib72"]
[ext_resource type="Script" path="res://src/effects/effects_container.gd" id="20_rnpn6"]
[ext_resource type="PackedScene" uid="uid://djkt0t0jveoks" path="res://src/effects/vampiric_aura.tscn" id="21_5ytv3"]
[ext_resource type="Script" path="res://src/game_scene/default_camera.gd" id="21_8op63"]
[ext_resource type="PackedScene" uid="uid://db0630tccvc2i" path="res://src/towers/tower_preview.tscn" id="22_53ta1"]
[ext_resource type="Shader" path="res://resources/shaders/saturation_burn.gdshader" id="23_go3nh"]
Expand All @@ -31,25 +32,25 @@

[sub_resource type="Curve2D" id="1"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 2555, -2374, 0, 0, 0, 0, -376, -882, 3.76354, -42.3398, -3.76354, 42.3398, -426, -827, 0, 0, 0, 0, -386, -759, 0, 0, 0, 0, 384, -373, -36.6945, -0.470442, 36.6945, 0.470442, 500, -341, 0, 0, 0, 0, 643, -372, 0, 0, 0, 0, 2050, -1077, -45.8031, 3.23768, 45.8031, -3.23768, 2174, -1124, 0, 0, 0, 0, 2309, -1077, 0, 0, 0, 0, 3071, -689, 1.40535, -33.4014, -1.40535, 33.4014, 3131, -625, 0, 0, 0, 0, 3075, -562, 0, 0, 0, 0, 642, 647, 40.458, 0.470442, -40.458, -0.470442, 515, 695, 0, 0, 0, 0, 388, 648, 0, 0, 0, 0, -897, 9, 45.1023, 0.136732, -45.1023, -0.136732, -1022, -33, 0, 0, 0, 0, -1152, 8, 0, 0, 0, 0, -1920, 394, -0.840896, -31.3902, 0.840896, 31.3902, -1961, 459, 0, 0, 0, 0, -1919, 521, 0, 0, 0, 0, -640, 1163, 0.379654, -32.8072, -0.379654, 32.8072, -603, 1228, 0, 0, 0, 0, -641, 1290, 0, 0, 0, 0, -3330, 2627, 0, 0, 0, 0, -3325, 2622)
"points": PackedVector2Array(0, 0, 0, 0, 2555, -2374, 0, 0, 0, 0, -376, -882, 3.76354, -42.3398, -3.76354, 42.3398, -426, -827, 0, 0, 0, 0, -386, -759, 0, 0, 0, 0, 384, -373, -36.6945, -0.470442, 36.6945, 0.470442, 500, -341, 0, 0, 0, 0, 643, -372, 0, 0, 0, 0, 2050, -1077, -45.8031, 3.23768, 45.8031, -3.23768, 2174, -1124, 0, 0, 0, 0, 2309, -1077, 0, 0, 0, 0, 3071, -689, 1.40535, -33.4014, -1.40535, 33.4014, 3131, -625, 0, 0, 0, 0, 3075, -562, 0, 0, 0, 0, 642, 647, 40.458, 0.470442, -40.458, -0.470442, 515, 695, 0, 0, 0, 0, 388, 648, 0, 0, 0, 0, -897, 9, 45.1023, 0.136732, -45.1023, -0.136732, -1022, -33, 0, 0, 0, 0, -1152, 8, 0, 0, 0, 0, -1920, 394, -0.840896, -31.3902, 0.840896, 31.3902, -1961, 459, 0, 0, 0, 0, -1919, 521, 0, 0, 0, 0, -640, 1163, 0.379654, -32.8072, -0.379654, 32.8072, -603, 1228, 0, 0, 0, 0, -641, 1290, 0, 0, 0, 0, -2755, 2335)
}
point_count = 27
point_count = 26

[sub_resource type="Curve2D" id="Curve2D_72x3r"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 2558, -2376, 0, 0, 0, 0, 1540, -1845, 0, 0, 0, 0, 1537, 206, 0, 0, 0, 0, -1536, 188, 0, 0, 0, 0, -1149, 1536, 0, 0, 0, 0, -3331, 2625)
"points": PackedVector2Array(0, 0, 0, 0, 2558, -2376, 0, 0, 0, 0, 1540, -1845, 0, 0, 0, 0, 1537, 206, 0, 0, 0, 0, -1536, 188, 0, 0, 0, 0, -1149, 1536, 0, 0, 0, 0, -2755, 2338)
}
point_count = 6

[sub_resource type="Curve2D" id="Curve2D_u40fb"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 6655, -324, 0, 0, 0, 0, 3712, 1167, 67.4238, 0.374577, -67.4238, -0.374577, 3585, 1199, 0, 0, 0, 0, 3457, 1165, 0, 0, 0, 0, 2689, 780, 0.471937, 35.3953, -0.471937, -35.3953, 2652, 717, 0, 0, 0, 0, 2689, 654, 0, 0, 0, 0, 4097, -50, 0, 39.1708, 0, -39.1708, 4130, -114, 0, 0, 0, 0, 4097, -177, 0, 0, 0, 0, 3330, -563, 41.0585, -1.41581, -41.0585, 1.41581, 3199, -597, 0, 0, 0, 0, 3075, -559, 0, 0, 0, 0, 641, 650, 1.5, -34.5, -1.5, 34.5, 607, 711, 0, 0, 0, 0, 638, 776, 0, 0, 0, 0, 1922, 1420, 1, -39.5, -1, 39.5, 1958, 1483, 0, 0, 0, 0, 1916, 1546, 0, 0, 0, 0, 1151, 1927, 54.5, -1.5, -54.5, 1.5, 1020, 1952, 0, 0, 0, 0, 897, 1929, 0, 0, 0, 0, -387, 1288, 54.5, 1, -54.5, -1, -517, 1253, 0, 0, 0, 0, -639, 1287, 0, 0, 0, 0, -3333, 2626)
"points": PackedVector2Array(0, 0, 0, 0, 6655, -324, 0, 0, 0, 0, 3712, 1167, 67.4238, 0.374577, -67.4238, -0.374577, 3585, 1199, 0, 0, 0, 0, 3457, 1165, 0, 0, 0, 0, 2689, 780, 0.471937, 35.3953, -0.471937, -35.3953, 2652, 717, 0, 0, 0, 0, 2689, 654, 0, 0, 0, 0, 4097, -50, 0, 39.1708, 0, -39.1708, 4130, -114, 0, 0, 0, 0, 4097, -177, 0, 0, 0, 0, 3330, -563, 41.0585, -1.41581, -41.0585, 1.41581, 3199, -597, 0, 0, 0, 0, 3075, -559, 0, 0, 0, 0, 641, 650, 1.5, -34.5, -1.5, 34.5, 607, 711, 0, 0, 0, 0, 638, 776, 0, 0, 0, 0, 1922, 1420, 1, -39.5, -1, 39.5, 1958, 1483, 0, 0, 0, 0, 1916, 1546, 0, 0, 0, 0, 1151, 1927, 54.5, -1.5, -54.5, 1.5, 1020, 1952, 0, 0, 0, 0, 897, 1929, 0, 0, 0, 0, -387, 1288, 54.5, 1, -54.5, -1, -517, 1253, 0, 0, 0, 0, -639, 1287, 0, 0, 0, 0, -2752, 2339)
}
point_count = 26

[sub_resource type="Curve2D" id="Curve2D_gtbgo"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 6658, -328, 0, 0, 0, 0, 5637, 189, 0, 0, 0, 0, 1535, 202, 0, 0, 0, 0, 1540, 1729, 0, 0, 0, 0, -1149, 1537, 0, 0, 0, 0, -3330, 2622)
"points": PackedVector2Array(0, 0, 0, 0, 6658, -328, 0, 0, 0, 0, 5637, 189, 0, 0, 0, 0, 1535, 202, 0, 0, 0, 0, 1540, 1729, 0, 0, 0, 0, -1149, 1537, 0, 0, 0, 0, -2755, 2339)
}
point_count = 6

Expand Down Expand Up @@ -213,6 +214,14 @@ y_sort_enabled = true
[node name="EffectsContainer" type="Node2D" parent="World"]
script = ExtResource("20_rnpn6")

[node name="VampiricAura" parent="World/EffectsContainer" instance=ExtResource("21_5ytv3")]
modulate = Color(0.341176, 0.72549, 0.992157, 0.901961)
z_index = 9
position = Vector2(-2756, 2338)
scale = Vector2(6, 3)
autoplay = "default"
frame_progress = 0.0

[node name="FloatingTextContainer" type="Node2D" parent="World"]
z_index = 1000

Expand Down
Loading

0 comments on commit a74d100

Please sign in to comment.