diff options
author | bd <bdunahu@operationnull.com> | 2025-05-22 13:50:49 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-05-22 13:50:49 -0400 |
commit | 8c5c4863aeacb4afcf70f339df6d601e2df1a7a6 (patch) | |
tree | 6c2af54a18271534864a7a1daed7814ebac5abd1 /scenes | |
parent | 80e145ba2b85e08f895e76ba6a03bb67bc9ce9ea (diff) |
Reorganized files into scenes and scripts
Diffstat (limited to 'scenes')
38 files changed, 40 insertions, 1499 deletions
diff --git a/scenes/L1.tscn b/scenes/L1.tscn index 5a1bba8..9ba570c 100644 --- a/scenes/L1.tscn +++ b/scenes/L1.tscn @@ -1,1110 +1,20 @@ -[gd_scene load_steps=6 format=4 uid="uid://diyn84ax1s7y8"] +[gd_scene load_steps=3 format=3 uid="uid://diyn84ax1s7y8"] -[ext_resource type="Texture2D" uid="uid://di2vybjsniag4" path="res://assets/tilemap.png" id="1_crqkg"] -[ext_resource type="PackedScene" uid="uid://rp5orgc6ae7j" path="res://scenes/crawlers/soldier.tscn" id="2_vye67"] - -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_tjuek"] -texture = ExtResource("1_crqkg") -1:0/0 = 0 -2:0/0 = 0 -3:0/0 = 0 -4:0/0 = 0 -5:0/0 = 0 -6:0/0 = 0 -7:0/0 = 0 -8:0/0 = 0 -9:0/0 = 0 -10:0/0 = 0 -11:0/0 = 0 -12:0/0 = 0 -13:0/0 = 0 -14:0/0 = 0 -15:0/0 = 0 -16:0/0 = 0 -17:0/0 = 0 -18:0/0 = 0 -19:0/0 = 0 -20:0/0 = 0 -21:0/0 = 0 -22:0/0 = 0 -23:0/0 = 0 -24:0/0 = 0 -25:0/0 = 0 -26:0/0 = 0 -27:0/0 = 0 -28:0/0 = 0 -29:0/0 = 0 -30:0/0 = 0 -31:0/0 = 0 -32:0/0 = 0 -33:0/0 = 0 -34:0/0 = 0 -35:0/0 = 0 -36:0/0 = 0 -37:0/0 = 0 -38:0/0 = 0 -39:0/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 -15:10/0 = 0 -16:10/0 = 0 -17:10/0 = 0 -18:10/0 = 0 -19:10/0 = 0 -20:10/0 = 0 -21:10/0 = 0 -22:10/0 = 0 -23:10/0 = 0 -24:10/0 = 0 -25:10/0 = 0 -26:10/0 = 0 -27:10/0 = 0 -28:10/0 = 0 -29:10/0 = 0 -30:10/0 = 0 -31:10/0 = 0 -32:10/0 = 0 -33:10/0 = 0 -34:10/0 = 0 -35:10/0 = 0 -36:10/0 = 0 -37:10/0 = 0 -38:10/0 = 0 -39:10/0 = 0 -40:10/0 = 0 -41:10/0 = 0 -42:10/0 = 0 -43:10/0 = 0 -44:10/0 = 0 -45:10/0 = 0 -46:10/0 = 0 -47:10/0 = 0 -48:10/0 = 0 -0:11/0 = 0 -1:11/0 = 0 -2:11/0 = 0 -3:11/0 = 0 -4:11/0 = 0 -5:11/0 = 0 -6:11/0 = 0 -7:11/0 = 0 -8:11/0 = 0 -9:11/0 = 0 -10:11/0 = 0 -11:11/0 = 0 -12:11/0 = 0 -13:11/0 = 0 -14:11/0 = 0 -15:11/0 = 0 -16:11/0 = 0 -17:11/0 = 0 -18:11/0 = 0 -19:11/0 = 0 -20:11/0 = 0 -21:11/0 = 0 -22:11/0 = 0 -23:11/0 = 0 -24:11/0 = 0 -25:11/0 = 0 -26:11/0 = 0 -27:11/0 = 0 -28:11/0 = 0 -29:11/0 = 0 -30:11/0 = 0 -31:11/0 = 0 -32:11/0 = 0 -33:11/0 = 0 -34:11/0 = 0 -35:11/0 = 0 -36:11/0 = 0 -37:11/0 = 0 -38:11/0 = 0 -39:11/0 = 0 -40:11/0 = 0 -41:11/0 = 0 -42:11/0 = 0 -43:11/0 = 0 -44:11/0 = 0 -45:11/0 = 0 -46:11/0 = 0 -47:11/0 = 0 -48:11/0 = 0 -0:12/0 = 0 -1:12/0 = 0 -2:12/0 = 0 -3:12/0 = 0 -4:12/0 = 0 -5:12/0 = 0 -6:12/0 = 0 -7:12/0 = 0 -8:12/0 = 0 -9:12/0 = 0 -10:12/0 = 0 -11:12/0 = 0 -12:12/0 = 0 -13:12/0 = 0 -14:12/0 = 0 -15:12/0 = 0 -16:12/0 = 0 -17:12/0 = 0 -18:12/0 = 0 -19:12/0 = 0 -20:12/0 = 0 -21:12/0 = 0 -22:12/0 = 0 -23:12/0 = 0 -24:12/0 = 0 -25:12/0 = 0 -26:12/0 = 0 -27:12/0 = 0 -28:12/0 = 0 -29:12/0 = 0 -30:12/0 = 0 -31:12/0 = 0 -32:12/0 = 0 -33:12/0 = 0 -34:12/0 = 0 -35:12/0 = 0 -36:12/0 = 0 -37:12/0 = 0 -38:12/0 = 0 -39:12/0 = 0 -40:12/0 = 0 -41:12/0 = 0 -42:12/0 = 0 -43:12/0 = 0 -44:12/0 = 0 -45:12/0 = 0 -46:12/0 = 0 -47:12/0 = 0 -48:12/0 = 0 -0:13/0 = 0 -1:13/0 = 0 -2:13/0 = 0 -3:13/0 = 0 -4:13/0 = 0 -5:13/0 = 0 -6:13/0 = 0 -7:13/0 = 0 -8:13/0 = 0 -9:13/0 = 0 -10:13/0 = 0 -11:13/0 = 0 -12:13/0 = 0 -13:13/0 = 0 -14:13/0 = 0 -15:13/0 = 0 -16:13/0 = 0 -17:13/0 = 0 -18:13/0 = 0 -19:13/0 = 0 -20:13/0 = 0 -21:13/0 = 0 -22:13/0 = 0 -23:13/0 = 0 -24:13/0 = 0 -25:13/0 = 0 -26:13/0 = 0 -27:13/0 = 0 -28:13/0 = 0 -29:13/0 = 0 -30:13/0 = 0 -31:13/0 = 0 -32:13/0 = 0 -33:13/0 = 0 -34:13/0 = 0 -35:13/0 = 0 -36:13/0 = 0 -37:13/0 = 0 -38:13/0 = 0 -39:13/0 = 0 -40:13/0 = 0 -41:13/0 = 0 -42:13/0 = 0 -43:13/0 = 0 -44:13/0 = 0 -45:13/0 = 0 -46:13/0 = 0 -47:13/0 = 0 -48:13/0 = 0 -0:14/0 = 0 -1:14/0 = 0 -2:14/0 = 0 -3:14/0 = 0 -4:14/0 = 0 -5:14/0 = 0 -6:14/0 = 0 -7:14/0 = 0 -8:14/0 = 0 -9:14/0 = 0 -10:14/0 = 0 -11:14/0 = 0 -12:14/0 = 0 -13:14/0 = 0 -14:14/0 = 0 -15:14/0 = 0 -16:14/0 = 0 -17:14/0 = 0 -18:14/0 = 0 -19:14/0 = 0 -20:14/0 = 0 -21:14/0 = 0 -22:14/0 = 0 -23:14/0 = 0 -24:14/0 = 0 -25:14/0 = 0 -26:14/0 = 0 -27:14/0 = 0 -28:14/0 = 0 -29:14/0 = 0 -30:14/0 = 0 -31:14/0 = 0 -32:14/0 = 0 -33:14/0 = 0 -34:14/0 = 0 -35:14/0 = 0 -36:14/0 = 0 -37:14/0 = 0 -38:14/0 = 0 -39:14/0 = 0 -40:14/0 = 0 -41:14/0 = 0 -42:14/0 = 0 -43:14/0 = 0 -44:14/0 = 0 -45:14/0 = 0 -46:14/0 = 0 -47:14/0 = 0 -48:14/0 = 0 -0:15/0 = 0 -1:15/0 = 0 -2:15/0 = 0 -3:15/0 = 0 -4:15/0 = 0 -5:15/0 = 0 -6:15/0 = 0 -7:15/0 = 0 -8:15/0 = 0 -9:15/0 = 0 -10:15/0 = 0 -11:15/0 = 0 -12:15/0 = 0 -13:15/0 = 0 -14:15/0 = 0 -15:15/0 = 0 -16:15/0 = 0 -17:15/0 = 0 -18:15/0 = 0 -19:15/0 = 0 -20:15/0 = 0 -21:15/0 = 0 -22:15/0 = 0 -23:15/0 = 0 -24:15/0 = 0 -25:15/0 = 0 -26:15/0 = 0 -27:15/0 = 0 -28:15/0 = 0 -29:15/0 = 0 -30:15/0 = 0 -31:15/0 = 0 -32:15/0 = 0 -33:15/0 = 0 -34:15/0 = 0 -35:15/0 = 0 -36:15/0 = 0 -37:15/0 = 0 -38:15/0 = 0 -39:15/0 = 0 -40:15/0 = 0 -41:15/0 = 0 -42:15/0 = 0 -43:15/0 = 0 -44:15/0 = 0 -45:15/0 = 0 -46:15/0 = 0 -47:15/0 = 0 -48:15/0 = 0 -0:16/0 = 0 -1:16/0 = 0 -2:16/0 = 0 -3:16/0 = 0 -4:16/0 = 0 -5:16/0 = 0 -6:16/0 = 0 -7:16/0 = 0 -8:16/0 = 0 -9:16/0 = 0 -10:16/0 = 0 -11:16/0 = 0 -12:16/0 = 0 -13:16/0 = 0 -14:16/0 = 0 -15:16/0 = 0 -16:16/0 = 0 -17:16/0 = 0 -18:16/0 = 0 -19:16/0 = 0 -20:16/0 = 0 -21:16/0 = 0 -22:16/0 = 0 -23:16/0 = 0 -24:16/0 = 0 -25:16/0 = 0 -26:16/0 = 0 -27:16/0 = 0 -28:16/0 = 0 -29:16/0 = 0 -30:16/0 = 0 -31:16/0 = 0 -32:16/0 = 0 -33:16/0 = 0 -34:16/0 = 0 -35:16/0 = 0 -36:16/0 = 0 -37:16/0 = 0 -38:16/0 = 0 -39:16/0 = 0 -40:16/0 = 0 -41:16/0 = 0 -42:16/0 = 0 -43:16/0 = 0 -44:16/0 = 0 -45:16/0 = 0 -46:16/0 = 0 -47:16/0 = 0 -48:16/0 = 0 -0:17/0 = 0 -1:17/0 = 0 -2:17/0 = 0 -3:17/0 = 0 -4:17/0 = 0 -5:17/0 = 0 -6:17/0 = 0 -7:17/0 = 0 -8:17/0 = 0 -9:17/0 = 0 -10:17/0 = 0 -11:17/0 = 0 -12:17/0 = 0 -13:17/0 = 0 -14:17/0 = 0 -15:17/0 = 0 -16:17/0 = 0 -17:17/0 = 0 -18:17/0 = 0 -19:17/0 = 0 -20:17/0 = 0 -21:17/0 = 0 -22:17/0 = 0 -23:17/0 = 0 -24:17/0 = 0 -25:17/0 = 0 -26:17/0 = 0 -27:17/0 = 0 -28:17/0 = 0 -29:17/0 = 0 -30:17/0 = 0 -31:17/0 = 0 -32:17/0 = 0 -33:17/0 = 0 -34:17/0 = 0 -35:17/0 = 0 -36:17/0 = 0 -37:17/0 = 0 -38:17/0 = 0 -39:17/0 = 0 -40:17/0 = 0 -41:17/0 = 0 -42:17/0 = 0 -43:17/0 = 0 -44:17/0 = 0 -45:17/0 = 0 -46:17/0 = 0 -47:17/0 = 0 -48:17/0 = 0 -0:18/0 = 0 -1:18/0 = 0 -2:18/0 = 0 -3:18/0 = 0 -4:18/0 = 0 -5:18/0 = 0 -6:18/0 = 0 -7:18/0 = 0 -8:18/0 = 0 -9:18/0 = 0 -10:18/0 = 0 -11:18/0 = 0 -12:18/0 = 0 -13:18/0 = 0 -14:18/0 = 0 -15:18/0 = 0 -16:18/0 = 0 -17:18/0 = 0 -18:18/0 = 0 -19:18/0 = 0 -20:18/0 = 0 -21:18/0 = 0 -22:18/0 = 0 -23:18/0 = 0 -24:18/0 = 0 -25:18/0 = 0 -26:18/0 = 0 -27:18/0 = 0 -28:18/0 = 0 -29:18/0 = 0 -30:18/0 = 0 -31:18/0 = 0 -32:18/0 = 0 -33:18/0 = 0 -34:18/0 = 0 -35:18/0 = 0 -36:18/0 = 0 -37:18/0 = 0 -38:18/0 = 0 -39:18/0 = 0 -40:18/0 = 0 -41:18/0 = 0 -42:18/0 = 0 -43:18/0 = 0 -44:18/0 = 0 -45:18/0 = 0 -46:18/0 = 0 -47:18/0 = 0 -48:18/0 = 0 -0:19/0 = 0 -1:19/0 = 0 -2:19/0 = 0 -3:19/0 = 0 -4:19/0 = 0 -5:19/0 = 0 -6:19/0 = 0 -7:19/0 = 0 -8:19/0 = 0 -9:19/0 = 0 -10:19/0 = 0 -11:19/0 = 0 -12:19/0 = 0 -13:19/0 = 0 -14:19/0 = 0 -15:19/0 = 0 -16:19/0 = 0 -17:19/0 = 0 -18:19/0 = 0 -19:19/0 = 0 -20:19/0 = 0 -21:19/0 = 0 -22:19/0 = 0 -23:19/0 = 0 -24:19/0 = 0 -25:19/0 = 0 -26:19/0 = 0 -27:19/0 = 0 -28:19/0 = 0 -29:19/0 = 0 -30:19/0 = 0 -31:19/0 = 0 -32:19/0 = 0 -33:19/0 = 0 -34:19/0 = 0 -35:19/0 = 0 -36:19/0 = 0 -37:19/0 = 0 -38:19/0 = 0 -39:19/0 = 0 -40:19/0 = 0 -41:19/0 = 0 -42:19/0 = 0 -43:19/0 = 0 -44:19/0 = 0 -45:19/0 = 0 -46:19/0 = 0 -47:19/0 = 0 -48:19/0 = 0 -0:20/0 = 0 -1:20/0 = 0 -2:20/0 = 0 -3:20/0 = 0 -4:20/0 = 0 -5:20/0 = 0 -6:20/0 = 0 -7:20/0 = 0 -8:20/0 = 0 -9:20/0 = 0 -10:20/0 = 0 -11:20/0 = 0 -12:20/0 = 0 -13:20/0 = 0 -14:20/0 = 0 -15:20/0 = 0 -16:20/0 = 0 -17:20/0 = 0 -18:20/0 = 0 -19:20/0 = 0 -20:20/0 = 0 -21:20/0 = 0 -22:20/0 = 0 -23:20/0 = 0 -24:20/0 = 0 -25:20/0 = 0 -26:20/0 = 0 -27:20/0 = 0 -28:20/0 = 0 -29:20/0 = 0 -30:20/0 = 0 -31:20/0 = 0 -32:20/0 = 0 -33:20/0 = 0 -34:20/0 = 0 -35:20/0 = 0 -36:20/0 = 0 -37:20/0 = 0 -38:20/0 = 0 -39:20/0 = 0 -40:20/0 = 0 -41:20/0 = 0 -42:20/0 = 0 -43:20/0 = 0 -44:20/0 = 0 -45:20/0 = 0 -46:20/0 = 0 -47:20/0 = 0 -48:20/0 = 0 -0:21/0 = 0 -1:21/0 = 0 -2:21/0 = 0 -3:21/0 = 0 -4:21/0 = 0 -5:21/0 = 0 -6:21/0 = 0 -7:21/0 = 0 -8:21/0 = 0 -9:21/0 = 0 -10:21/0 = 0 -11:21/0 = 0 -12:21/0 = 0 -13:21/0 = 0 -14:21/0 = 0 -15:21/0 = 0 -16:21/0 = 0 -17:21/0 = 0 -18:21/0 = 0 -19:21/0 = 0 -20:21/0 = 0 -21:21/0 = 0 -22:21/0 = 0 -23:21/0 = 0 -24:21/0 = 0 -25:21/0 = 0 -26:21/0 = 0 -27:21/0 = 0 -28:21/0 = 0 -29:21/0 = 0 -30:21/0 = 0 -31:21/0 = 0 -32:21/0 = 0 -33:21/0 = 0 -34:21/0 = 0 -35:21/0 = 0 -36:21/0 = 0 -37:21/0 = 0 -38:21/0 = 0 -39:21/0 = 0 -40:21/0 = 0 -41:21/0 = 0 -42:21/0 = 0 -43:21/0 = 0 -44:21/0 = 0 -45:21/0 = 0 -46:21/0 = 0 -47:21/0 = 0 -48:21/0 = 0 - -[sub_resource type="TileSet" id="TileSet_47enk"] -sources/0 = SubResource("TileSetAtlasSource_tjuek") +[ext_resource type="PackedScene" uid="uid://rp5orgc6ae7j" path="res://scenes/soldier.tscn" id="2_vye67"] [sub_resource type="Curve2D" id="Curve2D_tjuek"] _data = { -"points": PackedVector2Array(0, 0, 0, 0, -8, 168, 0, 0, 0, 0, -8, 168, 0, 0, 0, 0, 248, 168, 0, 0, 0, 0, 248, 104, 0, 0, 0, 0, 72, 104, 0, 0, 0, 0, 72, 56, 0, 0, 0, 0, 328, 56) +"points": PackedVector2Array(0, 0, 0, 0, -8, 168, 0, 0, 0, 0, 248, 168, 0, 0, 0, 0, 248, 104, 0, 0, 0, 0, 72, 104, 0, 0, 0, 0, 72, 56, 0, 0, 0, 0, 328, 56) } -point_count = 7 - -[node name="Main" type="Node2D"] - -[node name="L1" type="TileMapLayer" parent="."] -tile_map_data = PackedByteArray("AAAAAAoAAAAIAAEAAGABAAoAAAAIAAEAAGACAAoAAAAIAAEAAGADAAoAAAAIAAEAAGAEAAoAAAAIAAEAAGAFAAoAAAAIAAEAAGAGAAoAAAAIAAEAAGAHAAoAAAAIAAEAAGAIAAoAAAAIAAEAAGAJAAoAAAAIAAEAAGAKAAoAAAAIAAEAAGALAAoAAAAIAAEAAGAMAAoAAAAIAAEAAGANAAoAAAAIAAEAAGAOAAoAAAAIAAEAAGAPAAoAAAAJAAEAADAPAAkAAAAIAAEAAAAPAAgAAAAIAAEAAAAPAAcAAAAIAAEAAAAPAAYAAAAJAAEAAFAOAAYAAAAIAAEAAGANAAYAAAAIAAEAAGAMAAYAAAAIAAEAAGALAAYAAAAIAAEAAGAKAAYAAAAIAAEAAGAJAAYAAAAIAAEAAGAIAAYAAAAIAAEAAGAHAAYAAAAIAAEAAGAGAAYAAAAIAAEAAGAFAAYAAAAIAAEAAGAEAAMAAAAJAAEAAAAEAAUAAAAIAAEAADAEAAQAAAAIAAEAADAFAAMAAAAIAAEAAGAGAAMAAAAIAAEAAGAHAAMAAAAIAAEAAGAIAAMAAAAIAAEAAGAJAAMAAAAIAAEAAGAKAAMAAAAIAAEAAGALAAMAAAAIAAEAAGAMAAMAAAAIAAEAAGANAAMAAAAIAAEAAGAOAAMAAAAIAAEAAGAPAAMAAAAIAAEAAGAQAAMAAAAIAAEAAGARAAMAAAAIAAEAAGASAAMAAAAIAAEAAGATAAMAAAAIAAEAAGAEAAYAAAAJAAEAAGA=") -tile_set = SubResource("TileSet_47enk") - -[node name="PathSpawner" type="Node2D" parent="."] +point_count = 6 -[node name="Path2D" type="Path2D" parent="."] +[node name="Path2D" type="Path2D"] +z_index = 1 curve = SubResource("Curve2D_tjuek") -[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"] -position = Vector2(-8.17969, 168) +[node name="PathFollow2D" type="PathFollow2D" parent="."] +position = Vector2(-8, 168) +rotates = false loop = false -[node name="CrawlerSoldier" parent="Path2D/PathFollow2D" instance=ExtResource("2_vye67")] +[node name="CrawlerSoldier" parent="PathFollow2D" instance=ExtResource("2_vye67")] diff --git a/scenes/Main.tscn b/scenes/Main.tscn index 01f6590..c885bab 100644 --- a/scenes/Main.tscn +++ b/scenes/Main.tscn @@ -1,10 +1,10 @@ [gd_scene load_steps=8 format=4 uid="uid://chwnewu8l45kj"] [ext_resource type="Texture2D" uid="uid://di2vybjsniag4" path="res://assets/tilemap.png" id="1_rvslj"] -[ext_resource type="Script" uid="uid://i5bjnah05h14" path="res://path_spawner.gd" id="2_0bbpv"] -[ext_resource type="PackedScene" uid="uid://cq6d7gmjbwl14" path="res://scenes/UI/cursor.tscn" id="4_rarhs"] -[ext_resource type="Script" uid="uid://c8p74tnba8rs8" path="res://scenes/grid_manager.gd" id="4_vcsgt"] -[ext_resource type="PackedScene" uid="uid://dycgp3yept14k" path="res://scenes/UI/ui.tscn" id="5_vcsgt"] +[ext_resource type="Script" uid="uid://i5bjnah05h14" path="res://scripts/path_spawner.gd" id="2_0bbpv"] +[ext_resource type="PackedScene" uid="uid://cq6d7gmjbwl14" path="res://scenes/cursor.tscn" id="4_rarhs"] +[ext_resource type="Script" uid="uid://c8p74tnba8rs8" path="res://scripts/grid_manager.gd" id="4_vcsgt"] +[ext_resource type="PackedScene" uid="uid://dycgp3yept14k" path="res://scenes/ui.tscn" id="5_vcsgt"] [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_tjuek"] texture = ExtResource("1_rvslj") @@ -1092,9 +1092,7 @@ sources/0 = SubResource("TileSetAtlasSource_tjuek") [node name="Main" type="Node2D"] -[node name="L1" type="TileMapLayer" parent="."] -tile_map_data = PackedByteArray("AAAAAAMAAAADAAIAAAAAAAYAAAAEAAEAAAAAAAcAAAAEAAEAAAAAAAgAAAADAAEAAAAAAAkAAAAOAAYAAAAAAAoAAAAIAAEAAGAAAAsAAAAEAAEAAAAAAAwAAAADAAEAAAAAAA0AAAAEAAIAAAABAAEAAAAOAAoAAAABAAIAAAAAAAIAAAABAAUAAAABAAEAAAABAAgAAAAEAAEAAAABAAkAAAATAAYAAAABAAoAAAAIAAEAAGABAAsAAAAAAAIAAAABAAwAAAAEAAIAAAABAA0AAAAdAAcAAAACAAEAAAAQABQAAAACAAIAAAAQABUAAAACAAMAAAABAAEAAAACAAQAAAAAAAEAAAACAAUAAAADAAIAAAACAAYAAAAFAAIAAAACAAcAAAAAAAIAAAACAAgAAAADAAIAAAACAAkAAAADAAEAAAACAAoAAAAIAAEAAGACAAsAAAADAAEAAAADAAEAAAAQABUAAAADAAIAAAARABUAAAADAAwAAAAGAAIAAAADAA0AAAABAAEAAAAEAAEAAAARABUAAAAEAAIAAAARABUAAAAEAAMAAAAJAAEAAAAEAAQAAAAIAAEAADAEAAUAAAAIAAEAADA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ARAAcAAAADAAAAAAARAA4AAAAIAAUAAAASAAMAAAAIAAEAAGASAA4AAAAIAAUAAAATAAQAAAARAAkAAAATAAcAAAADAAAAAAATAA4AAAAIAAUAAAA=") -tile_set = SubResource("TileSet_47enk") +[node name="Cursor" parent="." instance=ExtResource("4_rarhs")] [node name="PathSpawner" type="Node2D" parent="."] script = ExtResource("2_0bbpv") @@ -1103,9 +1101,11 @@ script = ExtResource("2_0bbpv") wait_time = 2.0 autostart = true -[node name="Defenders" type="Node" parent="."] +[node name="L1" type="TileMapLayer" parent="."] +tile_map_data = PackedByteArray("AAAAAAMAAAADAAIAAAAAAAYAAAAEAAEAAAAAAAcAAAAEAAEAAAAAAAgAAAADAAEAAAAAAAkAAAAOAAYAAAAAAAoAAAAIAAEAAGAAAAsAAAAEAAEAAAAAAAwAAAADAAEAAAAAAA0AAAAEAAIAAAABAAEAAAAOAAoAAAABAAIAAAAAAAIAAAABAAUAAAABAAEAAAABAAgAAAAEAAEAAAABAAkAAAATAAYAAAABAAoAAAAIAAEAAGABAAsAAAAAAAIAAAABAAwAAAAEAAIAAAABAA0AAAAdAAcAAAACAAEAAAAQABQAAAACAAIAAAAQABUAAAACAAMAAAABAAEAAAACAAQAAAAAAAEAAAACAAUAAAADAAIAAAACAAYAAAAFAAIAAAACAAcAAAAAAAIAAAACAAgAAAADAAIAAAACAAkAAAADAAEAAAACAAoAAAAIAAEAAGACAAsAAAADAAEAAAADAAEAAAAQABUAAAADAAIAAAARABUAAAADAAwAAAAGAAIAAAADAA0AAAABAAEAAAAEAAEAAAARABUAAAAEAAIAAAARABUAAAAEAAMAAAAJAAEAAAAEAAQAAAAIAAEAADAEAAUAAAAIAAEAADAEAAwAAAABAAEAAAAEAA0AAAADAAIAAAAFAAEAAAASABUAAAAFAAIAAAARABUAAAAFAAwAAAABAAEAAAAFAA0AAAAPAAYAAAAGAAEAAAAAAAEAAAAGAAIAAAARABUAAAAGAAMAAAAIAAEAAGAGAAoAAAAIAAEAAGAGAA0A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+[node name="Defenders" type="Node" parent="."] [node name="GridManager" type="Node" parent="."] script = ExtResource("4_vcsgt") diff --git a/scenes/UI/cursor.gd b/scenes/UI/cursor.gd deleted file mode 100644 index c71eaa2..0000000 --- a/scenes/UI/cursor.gd +++ /dev/null @@ -1,61 +0,0 @@ -extends Node2D - -@onready var grid_manager = get_node("../GridManager") -@onready var tilemap = get_node("../L1") - -var tile_size : float -var max_x : float -var max_y : float - -var dirs = {"move_right": Vector2.RIGHT, - "move_left": Vector2.LEFT, - "move_up": Vector2.UP, - "move_down": Vector2.DOWN} -var towers : Dictionary = { - "place_warlock": { - "scene": preload("res://scenes/defenders/warlock.tscn"), - "cost": 10 - }, - "place_wyvern": { - "scene": preload("res://scenes/defenders/wyvern.tscn"), - "cost": 15 - } -} - -func _ready(): - tile_size = grid_manager.tile_size - max_x = 20 * tile_size - max_y = 15 * tile_size - position = position.snapped(Vector2.ONE * tile_size) - position += Vector2(max_x / 2, max_y / 2) + Vector2(1, 0) * tile_size / 2 - -func _unhandled_input(event): - for dir in dirs.keys(): - if event.is_action_pressed(dir): - handle_move(dirs[dir]) - return - for tower in towers.keys(): - if event.is_action_pressed(tower): - handle_tower(towers[tower]) - return - -func handle_tower(tower): - var tower_cost = tower["cost"] - if is_valid_placement_tile() && GameData.get_life() >= tower_cost: - var tmp = tower["scene"].instantiate() - var path = get_tree().get_root().get_node("Main/Defenders") - path.add_child(tmp) - tmp.global_position = position - grid_manager.occupy_tile(position) - GameData.subtract_life(tower_cost) - -func handle_move(dir): - position += dir * tile_size - position.x = max(position.x, tile_size / 2) - position.y = max(position.y, tile_size + tile_size / 2) - position.x = min(position.x, max_x - (tile_size / 2)) - position.y = min(position.y, max_y - (tile_size / 2)) - -func is_valid_placement_tile(): - var tile_coords = tilemap.get_cell_atlas_coords(tilemap.local_to_map(global_position)) - return (tile_coords == (Vector2i(-1, -1))) && (!grid_manager.is_tile_occupied(position)) diff --git a/scenes/UI/cursor.gd.uid b/scenes/UI/cursor.gd.uid deleted file mode 100644 index 015cefa..0000000 --- a/scenes/UI/cursor.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://bwiimenoyb5og diff --git a/scenes/UI/life.gd b/scenes/UI/life.gd deleted file mode 100644 index b185cda..0000000 --- a/scenes/UI/life.gd +++ /dev/null @@ -1,11 +0,0 @@ -extends Label - -func _ready(): - GameData.connect("life_changed", Callable(self, "_on_life_changed")) - update_label(GameData.get_life()) - -func _on_life_changed(new_life: int) -> void: - update_label(new_life) - -func update_label(new_life: int) -> void: - text = "Life:" + str(new_life) diff --git a/scenes/UI/life.gd.uid b/scenes/UI/life.gd.uid deleted file mode 100644 index 6666d8d..0000000 --- a/scenes/UI/life.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://dtj2opmwvh4y1 diff --git a/scenes/UI/morale.gd b/scenes/UI/morale.gd deleted file mode 100644 index d5a8046..0000000 --- a/scenes/UI/morale.gd +++ /dev/null @@ -1,11 +0,0 @@ -extends Label - -func _ready(): - GameData.connect("morale_changed", Callable(self, "_on_morale_changed")) - update_label(GameData.get_morale()) - -func _on_life_changed(new_morale: int) -> void: - update_label(new_morale) - -func update_label(new_morale: int) -> void: - text = "Morale:" + str(new_morale) diff --git a/scenes/UI/morale.gd.uid b/scenes/UI/morale.gd.uid deleted file mode 100644 index 2424396..0000000 --- a/scenes/UI/morale.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://b8urrbmynk327 diff --git a/scenes/crawlers/soldier.gd b/scenes/crawlers/soldier.gd deleted file mode 100644 index fe494e6..0000000 --- a/scenes/crawlers/soldier.gd +++ /dev/null @@ -1,27 +0,0 @@ -extends CharacterBody2D - -@export var worth : int = 5 -@export var damage : int = 1 -@export var speed : float = 50.0 -@export var max_health : float = 30.0 -var _health : float = max_health - -func _process(delta): - get_parent().set_progress(get_parent().get_progress() + speed * delta) - if get_parent().get_progress_ratio() == 1: - GameData.subtract_morale(damage) - queue_free() - -func deal_damage(damage): - _health -= damage - if _health <= 0: - GameData.add_life(worth) - queue_free() - else: - _update_color() - -func _update_color(): - var ratio : float = _health / max_health - var target_color = Color(1, ratio, ratio) - - $Sprite2D.modulate = target_color diff --git a/scenes/crawlers/soldier.gd.uid b/scenes/crawlers/soldier.gd.uid deleted file mode 100644 index 917b467..0000000 --- a/scenes/crawlers/soldier.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://gn1504blq1pf diff --git a/scenes/UI/cursor.tscn b/scenes/cursor.tscn index 9da5554..f309af1 100644 --- a/scenes/UI/cursor.tscn +++ b/scenes/cursor.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=3 format=3 uid="uid://cq6d7gmjbwl14"] -[ext_resource type="Script" uid="uid://bwiimenoyb5og" path="res://scenes/UI/cursor.gd" id="1_4knn1"] +[ext_resource type="Script" uid="uid://bwiimenoyb5og" path="res://scripts/cursor.gd" id="1_4knn1"] [ext_resource type="Texture2D" uid="uid://di2vybjsniag4" path="res://assets/tilemap.png" id="2_gber1"] [node name="Cursor" type="Node2D"] diff --git a/scenes/defenders/base_animation_handler.gd b/scenes/defenders/base_animation_handler.gd deleted file mode 100644 index c9e7630..0000000 --- a/scenes/defenders/base_animation_handler.gd +++ /dev/null @@ -1,24 +0,0 @@ -extends Sprite2D - -@onready var tile_map = preload("res://assets/tilemap.png") - -var idle : Rect2 -var attack : Rect2 -var is_idle : bool = true - -func _ready(): - update_texture() - -func update_texture(): - var atlas_texture = AtlasTexture.new() - atlas_texture.atlas = tile_map - atlas_texture.region = idle if is_idle else attack - texture = atlas_texture - -func attack_state(): - is_idle = false - update_texture() - -func idle_state(): - is_idle = true - update_texture() diff --git a/scenes/defenders/base_animation_handler.gd.uid b/scenes/defenders/base_animation_handler.gd.uid deleted file mode 100644 index 75b9ff2..0000000 --- a/scenes/defenders/base_animation_handler.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://cb5we0gjjbcfu diff --git a/scenes/defenders/base_defender.gd b/scenes/defenders/base_defender.gd deleted file mode 100644 index 66be11d..0000000 --- a/scenes/defenders/base_defender.gd +++ /dev/null @@ -1,49 +0,0 @@ -extends StaticBody2D - -@onready var sprite_node = $Sprite2D - -var defender_range : float -var fire_rate : float -var damage : int -var target : CharacterBody2D - -func _on_fire_timer_timeout() -> void: - # extending classes override here - pass - -func select_target() -> void: - var targets : Array = _find_targets() - - # this is all to select the furthest target on the track - var curr : PathFollow2D = null - for i in targets: - if curr == null: - curr = i.get_node("../") - else: - if i.get_parent().get_progress() > curr.get_progress(): - curr = i.get_node("../") - - _update_state_machine(curr) - -func _find_targets() -> Array: - var targets : Array = get_node("Tower").get_overlapping_bodies() - var tmp : Array = [] - for i in targets: - if "Crawler" in i.name: - tmp.append(i) - return tmp - -func _update_state_machine(curr : PathFollow2D) -> void: - if (curr == null): - target = null - sprite_node.idle_state() - else: - target = curr.get_child(0) - sprite_node.attack_state() - -func _on_tower_body_entered(_body: Node2D) -> void: - var old_target : CharacterBody2D = target - select_target() - if old_target == null && old_target != target: - $FireTimer.start(fire_rate) - _on_fire_timer_timeout() diff --git a/scenes/defenders/base_defender.gd.uid b/scenes/defenders/base_defender.gd.uid deleted file mode 100644 index 8d46a61..0000000 --- a/scenes/defenders/base_defender.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://bpiajfyx3t7qx diff --git a/scenes/defenders/warlock.gd b/scenes/defenders/warlock.gd deleted file mode 100644 index afac86c..0000000 --- a/scenes/defenders/warlock.gd +++ /dev/null @@ -1,18 +0,0 @@ -extends "res://scenes/defenders/base_defender.gd" - -var projectile: PackedScene = preload("res://scenes/defenders/warlock_projectile.tscn") - -func _ready(): - damage = 5 - fire_rate = 1.0 - -func _on_fire_timer_timeout(): - select_target() - if (target != null): - var tmp_projectile = projectile.instantiate() - tmp_projectile.target = target - tmp_projectile.projectile_damage = damage - get_node("ProjectileContainer").call_deferred("add_child", tmp_projectile) - tmp_projectile.global_position = $Aim.global_position - else: - $FireTimer.stop() diff --git a/scenes/defenders/warlock.gd.uid b/scenes/defenders/warlock.gd.uid deleted file mode 100644 index 64a7007..0000000 --- a/scenes/defenders/warlock.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://dvhqpgw6vhayu diff --git a/scenes/defenders/warlock_animation_handler.gd b/scenes/defenders/warlock_animation_handler.gd deleted file mode 100644 index 49c2b8a..0000000 --- a/scenes/defenders/warlock_animation_handler.gd +++ /dev/null @@ -1,6 +0,0 @@ -extends "res://scenes/defenders/base_animation_handler.gd" - -func _ready(): - idle = Rect2(496, 16, 16, 16) - attack = Rect2(496, 32, 16, 16) - update_texture() diff --git a/scenes/defenders/warlock_animation_handler.gd.uid b/scenes/defenders/warlock_animation_handler.gd.uid deleted file mode 100644 index 4fa3cf7..0000000 --- a/scenes/defenders/warlock_animation_handler.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://6i27kmcpl7ix diff --git a/scenes/defenders/warlock_projectile.gd b/scenes/defenders/warlock_projectile.gd deleted file mode 100644 index 060a27d..0000000 --- a/scenes/defenders/warlock_projectile.gd +++ /dev/null @@ -1,23 +0,0 @@ -extends CharacterBody2D - -var target : CharacterBody2D -var speed : int = 100 -var projectile_damage : int - -func _physics_process(_delta: float): - if !is_instance_valid(target): - queue_free() - else: - _move_projectile() - -func _on_area_2d_body_entered(body: Node2D): - if "Crawler" in body.name: - body.deal_damage(projectile_damage) - queue_free() - -func _move_projectile(): - var pos : Vector2 - pos = target.global_position - velocity = global_position.direction_to(pos) * speed - look_at(pos) - move_and_slide() diff --git a/scenes/defenders/warlock_projectile.gd.uid b/scenes/defenders/warlock_projectile.gd.uid deleted file mode 100644 index 3225e3e..0000000 --- a/scenes/defenders/warlock_projectile.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://kolqesiin33p diff --git a/scenes/defenders/wyvern.gd b/scenes/defenders/wyvern.gd deleted file mode 100644 index 8341d41..0000000 --- a/scenes/defenders/wyvern.gd +++ /dev/null @@ -1,36 +0,0 @@ -extends "res://scenes/defenders/base_defender.gd" - -var projectile: PackedScene = preload("res://scenes/defenders/wyvern_projectile.tscn") -var damage_tick_rate: float = 0.25 -var firing : bool = false - -func _ready(): - damage = 2 - fire_rate = 1.0 - -func _process(_delta): - select_target() - if firing: - if target == null: - $WyvernProjectile.queue_free() - firing = false - else: - $WyvernProjectile.target = target - $WyvernProjectile.move_projectile() - -func _on_tower_body_entered(_body: Node2D) -> void: - var old_target : CharacterBody2D = target - select_target() - if old_target == null && old_target != target: - $FireTimer.start(fire_rate) - -func _on_fire_timer_timeout(): - if (target != null): - var tmp_projectile = projectile.instantiate() - tmp_projectile.target = target - tmp_projectile.projectile_damage = damage - tmp_projectile.damage_tick_rate = 0.25 - add_child(tmp_projectile) - tmp_projectile.global_position = $Aim.global_position - firing = true - $FireTimer.stop() diff --git a/scenes/defenders/wyvern.gd.uid b/scenes/defenders/wyvern.gd.uid deleted file mode 100644 index abe259e..0000000 --- a/scenes/defenders/wyvern.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://cfhnd8k1sy116 diff --git a/scenes/defenders/wyvern_animation_handler.gd b/scenes/defenders/wyvern_animation_handler.gd deleted file mode 100644 index 7e17256..0000000 --- a/scenes/defenders/wyvern_animation_handler.gd +++ /dev/null @@ -1,6 +0,0 @@ -extends "res://scenes/defenders/base_animation_handler.gd" - -func _ready(): - idle = Rect2(384, 160, 16, 16) - attack = Rect2(400, 160, 16, 16) - update_texture() diff --git a/scenes/defenders/wyvern_animation_handler.gd.uid b/scenes/defenders/wyvern_animation_handler.gd.uid deleted file mode 100644 index 5c8f57b..0000000 --- a/scenes/defenders/wyvern_animation_handler.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://dl7a53e1auku7 diff --git a/scenes/defenders/wyvern_projectile.gd b/scenes/defenders/wyvern_projectile.gd deleted file mode 100644 index 9b59bb0..0000000 --- a/scenes/defenders/wyvern_projectile.gd +++ /dev/null @@ -1,18 +0,0 @@ -extends CharacterBody2D - -var target -var curr = "" -var projectile_damage -# todo hook this up -var damage_tick_rate - -func _on_damage_tick_timeout() -> void: - var enemies = $Area2D.get_overlapping_bodies() - for i in enemies: - if "Crawler" in i.name: - i.deal_damage(projectile_damage) - -func move_projectile() -> void: - var pos : Vector2 - pos = target.global_position - look_at(pos) diff --git a/scenes/defenders/wyvern_projectile.gd.uid b/scenes/defenders/wyvern_projectile.gd.uid deleted file mode 100644 index 3882240..0000000 --- a/scenes/defenders/wyvern_projectile.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://brqwmj8ydtipd diff --git a/scenes/game_data/game_data.gd b/scenes/game_data/game_data.gd deleted file mode 100644 index fd6a80e..0000000 --- a/scenes/game_data/game_data.gd +++ /dev/null @@ -1,29 +0,0 @@ - -extends Node - -signal life_changed -signal morale_changed -var _life: int = 20 -var _morale: int = 10 - -func get_life() -> int: - return _life - -func add_life(amount: int): - _life += amount - emit_signal("life_changed", _life) - -func subtract_life(amount: int): - _life -= amount - emit_signal("life_changed", _life) - -func get_morale() -> int: - return _morale - -func add_morale(amount: int): - _morale += amount - emit_signal("morale_changed", _morale) - -func subtract_morale(amount: int): - _morale -= amount - emit_signal("life_changed", _morale) diff --git a/scenes/game_data/game_data.gd.uid b/scenes/game_data/game_data.gd.uid deleted file mode 100644 index 2c1f11b..0000000 --- a/scenes/game_data/game_data.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://c72ko8skbqiq5 diff --git a/scenes/grid_manager.gd b/scenes/grid_manager.gd deleted file mode 100644 index 8fa59e5..0000000 --- a/scenes/grid_manager.gd +++ /dev/null @@ -1,16 +0,0 @@ -extends Node - -var occupied_tiles = {} - -@export var tile_size = 16.0 -@export var grid_width = 20 -@export var grid_height = 15 - -func is_tile_occupied(tile_position): - return occupied_tiles.has(tile_position) - -func occupy_tile(tile_position): - occupied_tiles[tile_position] = true - -func free_tile(tile_position): - occupied_tiles.erase(tile_position) diff --git a/scenes/grid_manager.gd.uid b/scenes/grid_manager.gd.uid deleted file mode 100644 index 424fc40..0000000 --- a/scenes/grid_manager.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://c8p74tnba8rs8 diff --git a/scenes/levels/L1.tscn b/scenes/levels/L1.tscn deleted file mode 100644 index 1231f7a..0000000 --- a/scenes/levels/L1.tscn +++ /dev/null @@ -1,20 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://dpw25lq6fs4be"] - -[ext_resource type="PackedScene" uid="uid://rp5orgc6ae7j" path="res://scenes/crawlers/soldier.tscn" id="1_mao1c"] - -[sub_resource type="Curve2D" id="Curve2D_tjuek"] -_data = { -"points": PackedVector2Array(0, 0, 0, 0, -8, 168, 0, 0, 0, 0, 248, 168, 0, 0, 0, 0, 248, 104, 0, 0, 0, 0, 72, 104, 0, 0, 0, 0, 72, 56, 0, 0, 0, 0, 328, 56) -} -point_count = 6 - -[node name="Path2D" type="Path2D"] -curve = SubResource("Curve2D_tjuek") - -[node name="PathFollow2D" type="PathFollow2D" parent="."] -position = Vector2(-8, 168) -rotates = false -loop = false - -[node name="CrawlerSoldier" parent="PathFollow2D" instance=ExtResource("1_mao1c")] -position = Vector2(0.179688, 0) diff --git a/scenes/crawlers/soldier.tscn b/scenes/soldier.tscn index 0bc7fd0..dd665e1 100644 --- a/scenes/crawlers/soldier.tscn +++ b/scenes/soldier.tscn @@ -1,18 +1,18 @@ [gd_scene load_steps=4 format=3 uid="uid://rp5orgc6ae7j"] -[ext_resource type="Texture2D" uid="uid://di2vybjsniag4" path="res://assets/tilemap.png" id="1_2fsdr"] -[ext_resource type="Script" uid="uid://gn1504blq1pf" path="res://scenes/crawlers/soldier.gd" id="1_220eh"] +[ext_resource type="Script" uid="uid://gn1504blq1pf" path="res://scripts/soldier.gd" id="1_q2rr1"] +[ext_resource type="Texture2D" uid="uid://di2vybjsniag4" path="res://assets/tilemap.png" id="2_2oslh"] [sub_resource type="CircleShape2D" id="CircleShape2D_220eh"] radius = 8.06226 [node name="CrawlerSoldier" type="CharacterBody2D"] -script = ExtResource("1_220eh") +script = ExtResource("1_q2rr1") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("CircleShape2D_220eh") [node name="Sprite2D" type="Sprite2D" parent="."] -texture = ExtResource("1_2fsdr") +texture = ExtResource("2_2oslh") region_enabled = true region_rect = Rect2(432, 0, 16, 16) diff --git a/scenes/UI/ui.tscn b/scenes/ui.tscn index 8e6a36b..bd8f3ff 100644 --- a/scenes/UI/ui.tscn +++ b/scenes/ui.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=4 format=3 uid="uid://dycgp3yept14k"] -[ext_resource type="Script" uid="uid://dtj2opmwvh4y1" path="res://scenes/UI/life.gd" id="1_suays"] -[ext_resource type="Script" uid="uid://b8urrbmynk327" path="res://scenes/UI/morale.gd" id="1_yb1mt"] +[ext_resource type="Script" uid="uid://dtj2opmwvh4y1" path="res://scripts/life.gd" id="1_suays"] +[ext_resource type="Script" uid="uid://b8urrbmynk327" path="res://scripts/morale.gd" id="1_yb1mt"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nt14h"] bg_color = Color(0, 0.0117647, 0.552941, 1) diff --git a/scenes/defenders/warlock.tscn b/scenes/warlock.tscn index b92f543..b4dd6fb 100644 --- a/scenes/defenders/warlock.tscn +++ b/scenes/warlock.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=5 format=3 uid="uid://d27cf3jwfvbqu"] -[ext_resource type="Script" uid="uid://dvhqpgw6vhayu" path="res://scenes/defenders/warlock.gd" id="1_rpypk"] -[ext_resource type="Script" uid="uid://6i27kmcpl7ix" path="res://scenes/defenders/warlock_animation_handler.gd" id="2_rpypk"] +[ext_resource type="Script" uid="uid://dvhqpgw6vhayu" path="res://scripts/warlock.gd" id="1_6o2jo"] +[ext_resource type="Script" uid="uid://6i27kmcpl7ix" path="res://scripts/warlock_animation_handler.gd" id="2_smthy"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_wu3n4"] size = Vector2(16, 16) @@ -10,7 +10,7 @@ size = Vector2(16, 16) radius = 64.0 [node name="Warlock" type="StaticBody2D"] -script = ExtResource("1_rpypk") +script = ExtResource("1_6o2jo") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("RectangleShape2D_wu3n4") @@ -31,7 +31,7 @@ autostart = true [node name="Sprite2D" type="Sprite2D" parent="."] region_rect = Rect2(496, 16, 16, 16) -script = ExtResource("2_rpypk") +script = ExtResource("2_smthy") [connection signal="body_entered" from="Tower" to="." method="_on_tower_body_entered"] [connection signal="timeout" from="FireTimer" to="." method="_on_fire_timer_timeout"] diff --git a/scenes/defenders/warlock_projectile.tscn b/scenes/warlock_projectile.tscn index 34204bc..1f21e64 100644 --- a/scenes/defenders/warlock_projectile.tscn +++ b/scenes/warlock_projectile.tscn @@ -1,17 +1,17 @@ [gd_scene load_steps=4 format=3 uid="uid://bjt768hxqfu5h"] -[ext_resource type="Script" uid="uid://kolqesiin33p" path="res://scenes/defenders/warlock_projectile.gd" id="1_jonmr"] -[ext_resource type="Texture2D" uid="uid://di2vybjsniag4" path="res://assets/tilemap.png" id="2_c7g7q"] +[ext_resource type="Script" uid="uid://kolqesiin33p" path="res://scripts/warlock_projectile.gd" id="1_lc50e"] +[ext_resource type="Texture2D" uid="uid://di2vybjsniag4" path="res://assets/tilemap.png" id="2_gk4ny"] [sub_resource type="CircleShape2D" id="CircleShape2D_0ilu8"] radius = 8.0 [node name="WarlockProjectile" type="CharacterBody2D"] -script = ExtResource("1_jonmr") +script = ExtResource("1_lc50e") [node name="Sprite2D" type="Sprite2D" parent="."] scale = Vector2(0.5, 0.5) -texture = ExtResource("2_c7g7q") +texture = ExtResource("2_gk4ny") region_enabled = true region_rect = Rect2(432, 320, 16, 16) diff --git a/scenes/defenders/wyvern.tscn b/scenes/wyvern.tscn index cdd5c97..b2ae554 100644 --- a/scenes/defenders/wyvern.tscn +++ b/scenes/wyvern.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=5 format=3 uid="uid://d37i2dwyynqdw"] -[ext_resource type="Script" uid="uid://cfhnd8k1sy116" path="res://scenes/defenders/wyvern.gd" id="1_6c73s"] -[ext_resource type="Script" uid="uid://dl7a53e1auku7" path="res://scenes/defenders/wyvern_animation_handler.gd" id="2_6c73s"] +[ext_resource type="Script" uid="uid://cfhnd8k1sy116" path="res://scripts/wyvern.gd" id="1_xynyr"] +[ext_resource type="Script" uid="uid://dl7a53e1auku7" path="res://scripts/wyvern_animation_handler.gd" id="2_wbji5"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_wu3n4"] size = Vector2(16, 16) @@ -10,7 +10,7 @@ size = Vector2(16, 16) radius = 48.0 [node name="Wyvern" type="StaticBody2D"] -script = ExtResource("1_6c73s") +script = ExtResource("1_xynyr") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("RectangleShape2D_wu3n4") @@ -29,7 +29,7 @@ wait_time = 2.0 [node name="Sprite2D" type="Sprite2D" parent="."] region_rect = Rect2(496, 16, 16, 16) -script = ExtResource("2_6c73s") +script = ExtResource("2_wbji5") [connection signal="body_entered" from="Tower" to="." method="_on_tower_body_entered"] [connection signal="body_exited" from="Tower" to="." method="_on_tower_body_exited"] diff --git a/scenes/defenders/wyvern_projectile.tscn b/scenes/wyvern_projectile.tscn index 34baca4..24e6861 100644 --- a/scenes/defenders/wyvern_projectile.tscn +++ b/scenes/wyvern_projectile.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=7 format=3 uid="uid://b5klvt4gcjnah"] -[ext_resource type="Script" uid="uid://brqwmj8ydtipd" path="res://scenes/defenders/wyvern_projectile.gd" id="1_68je7"] +[ext_resource type="Script" uid="uid://brqwmj8ydtipd" path="res://scripts/wyvern_projectile.gd" id="1_4pt1w"] [sub_resource type="CircleShape2D" id="CircleShape2D_tajkb"] radius = 8.0 @@ -22,7 +22,7 @@ point_count = 2 radius = 5.0 [node name="WyvernProjectile" type="CharacterBody2D"] -script = ExtResource("1_68je7") +script = ExtResource("1_4pt1w") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("CircleShape2D_tajkb") |