diff --git a/CloudParticles.tscn b/CloudParticles.tscn new file mode 100644 index 0000000..88fb594 --- /dev/null +++ b/CloudParticles.tscn @@ -0,0 +1,18 @@ +[gd_scene load_steps=2 format=3 uid="uid://dfflehr042w4"] + +[ext_resource type="Texture2D" uid="uid://d4abji2r2gx7i" path="res://cloud.png" id="1_r8347"] + +[node name="CPUParticles2D" type="CPUParticles2D"] +modulate = Color(1, 1, 1, 0.0588235) +position = Vector2(-120.54, 140) +amount = 16 +lifetime = 15.0 +preprocess = 15.0 +texture = ExtResource("1_r8347") +emission_shape = 3 +emission_rect_extents = Vector2(1, 180) +spread = 5.0 +gravity = Vector2(0, 0) +initial_velocity_min = 50.0 +initial_velocity_max = 100.0 +scale_amount_min = 0.4 diff --git a/Level.gd b/Level.gd new file mode 100644 index 0000000..3d099e5 --- /dev/null +++ b/Level.gd @@ -0,0 +1,5 @@ +extends Node2D + + +func _process(delta: float) -> void: + position = (Vector2(320, 180) - get_global_mouse_position()) / 40 diff --git a/Main.tscn b/Main.tscn index b883d04..1d55697 100644 --- a/Main.tscn +++ b/Main.tscn @@ -1,14 +1,48 @@ -[gd_scene load_steps=10 format=4 uid="uid://5ske2hm55rce"] +[gd_scene load_steps=17 format=4 uid="uid://5ske2hm55rce"] [ext_resource type="PackedScene" uid="uid://n2lpy72tkyc8" path="res://storm/StormManager.tscn" id="1_gcxt1"] [ext_resource type="Script" path="res://main.gd" id="1_pg2kh"] [ext_resource type="PackedScene" uid="uid://bxctpr0tfqidf" path="res://ui/UI.tscn" id="1_ve2mn"] [ext_resource type="Theme" uid="uid://d035h7upxrw3h" path="res://theme.tres" id="1_xbn5h"] [ext_resource type="TileSet" uid="uid://dhy53lakrlutm" path="res://TIleSet.tres" id="2_68wnv"] +[ext_resource type="Script" path="res://Level.gd" id="4_8xbmx"] +[ext_resource type="PackedScene" uid="uid://dfflehr042w4" path="res://CloudParticles.tscn" id="4_rlswo"] [ext_resource type="Script" path="res://water_level.gd" id="4_vc41k"] [ext_resource type="Script" path="res://BuildingLevel.gd" id="5_3vufn"] +[ext_resource type="Texture2D" uid="uid://bccyjf2bn3mpj" path="res://background.png" id="7_bnuu0"] [ext_resource type="PackedScene" uid="uid://byyyhq3x8t2d8" path="res://InfoWindow.tscn" id="7_f4xfy"] [ext_resource type="PackedScene" uid="uid://b22pr3istdhcv" path="res://ui/BuildingMenu.tscn" id="7_hnxcf"] +[ext_resource type="AudioStream" uid="uid://dfxndvkdey800" path="res://light version final(1).wav" id="13_tvksj"] +[ext_resource type="AudioStream" uid="uid://dk2thkxy31doi" path="res://heavy version.wav" id="14_frsfx"] + +[sub_resource type="AudioStreamInteractive" id="AudioStreamInteractive_ajguf"] +clip_count = 2 +clip_0/name = &"Light Version Final(1)" +clip_0/stream = ExtResource("13_tvksj") +clip_0/auto_advance = 1 +clip_0/next_clip = 1 +clip_1/name = &"Heavy Version" +clip_1/stream = ExtResource("14_frsfx") +clip_1/auto_advance = 1 +clip_1/next_clip = 1 +_transitions = { +Vector2i(0, 1): { +"fade_beats": 1, +"fade_mode": 4, +"from_time": 3, +"to_time": 1 +}, +Vector2i(1, 1): { +"fade_beats": 1, +"fade_mode": 4, +"from_time": 3, +"to_time": 1 +} +} + +[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_f4v2y"] +streams_count = 1 +stream_0/stream = SubResource("AudioStreamInteractive_ajguf") [node name="Main" type="Node2D"] script = ExtResource("1_pg2kh") @@ -22,17 +56,27 @@ offset_right = 40.0 offset_bottom = 40.0 theme = ExtResource("1_xbn5h") -[node name="Level0" type="TileMapLayer" parent="."] +[node name="Node2D" type="Node2D" parent="."] +script = ExtResource("4_8xbmx") + +[node name="CPUParticles2D" parent="Node2D" instance=ExtResource("4_rlswo")] +amount = 32 +lifetime = 30.0 +preprocess = 30.0 +initial_velocity_min = 25.0 +initial_velocity_max = 50.0 + +[node name="Level0" type="TileMapLayer" parent="Node2D"] y_sort_enabled = true tile_map_data = PackedByteArray("AAAjAP3/AwABAAMAAAAjAP7/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AnAAcAAwABAAMAAAAnAAgAAwABAAMAAAAnAAkAAwABAAMAAAAnAAoAAwABAAMAAAAnAAsAAwABAAMAAAAoAP3/AwABAAMAAAAoAP7/AwABAAMAAAAoAP//AwABAAMAAAAoAAAAAwABAAMAAAAoAAEAAwABAAMAAAAoAAIAAwABAAMAAAAoAAMAAwABAAMAAAAoAAQAAwABAAMAAAAoAAUAAwABAAMAAAAoAAYAAwABAAMAAAAoAAcAAwABAAMAAAAoAAgAAwABAAMAAAAoAAkAAwABAAMAAAAoAAoAAwABAAMAAAAoAAsAAwABAAMAAAApAP3/AwABAAMAAAApAP7/AwABAAMAAAApAP//AwABAAMAAAApAAAAAwABAAMAAAApAAEAAwABAAMAAAApAAIAAwABAAMAAAApAAMAAwABAAMAAAApAAQAAwABAAMAAAApAAUAAwABAAMAAAApAAYAAwABAAMAAAApAAcAAwABAAMAAAApAAgAAwABAAMAAAApAAkAAwABAAMAAAApAAoAAwABAAMAAAApAAsAAwABAAMAAAAqAP3/AwABAAMAAAAqAP7/AwABAAMAAAAqAP//AwABAAMAAAAqAAAAAwABAAMAAAAqAAEAAwABAAMAAAAqAAIAAwABAAMAAAAqAAMAAwABAAMAAAAqAAQAAwABAAMAAAAqAAUAAwABAAMAAAAqAAYAAwABAAMAAAAqAAcAAwABAAMAAAAqAAgAAwABAAMAAAAqAAkAAwABAAMAAAAqAAoAAwABAAMAAAAqAAsAAwABAAMAAAArAP3/AwABAAMAAAArAP7/AwABAAMAAAArAP//AwABAAMAAAArAAAAAwABAAMAAAArAAEAAwABAAMAAAArAAIAAwABAAMAAAArAAMAAwABAAMAAAArAAQAAwABAAMAAAArAAUAAwABAAMAAAArAAYAAwABAAMAAAArAAcAAwABAAMAAAArAAgAAwABAAMAAAArAAkAAwABAAMAAAArAAoAAwABAAMAAAArAAsAAwABAAMAAAAsAP3/AwABAAMAAAAsAP7/AwABAAMAAAAsAP//AwABAAMAAAAsAAAAAwABAAMAAAAsAAEAAwABAAMAAAAsAAIAAwAB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AAsAAwABAAMAAAAxAP3/AwABAAMAAAAxAP7/AwABAAMAAAAxAP//AwABAAMAAAAxAAAAAwABAAMAAAAxAAEAAwABAAMAAAAxAAIAAwABAAMAAAAxAAMAAwABAAMAAAAxAAQAAwABAAMAAAAxAAUAAwABAAMAAAAxAAYAAwABAAMAAAAxAAcAAwABAAMAAAAxAAgAAwABAAMAAAAxAAkAAwABAAMAAAAxAAoAAwABAAMAAAAxAAsAAwABAAMAAAA=") tile_set = ExtResource("2_68wnv") -[node name="Level1" type="TileMapLayer" parent="."] +[node name="Level1" type="TileMapLayer" parent="Node2D"] y_sort_enabled = true tile_map_data = PackedByteArray("AAAqAP7/AwADAAEAAAAqAP3/AwADAAEAAAAqAPz/AwADAAEAAAApAPz/AwADAAEAAAAoAPz/AwADAAEAAAAnAPz/AwADAAEAAAAmAPz/AwADAAEAAAAlAPz/AwADAAEAAAAkAPz/AwADAAEAAAAjAPz/AwADAAEAAAAiAPz/AwADAAEAAAAiAP3/AwADAAEAAAAiAP7/AwADAAEAAAAiAP//AwADAAEAAAAiAAAAAwADAAEAAAAjAAAAAwADAAEAAAAjAP//AwADAAEAAAAjAP7/AwADAAEAAAAjAP3/AwADAAEAAAAkAP3/AwADAAEAAAAkAP7/AwADAAEAAAAkAP//AwADAAEAAAAkAAAAAwADAAEAAAAkAAEAAwADAAEAAAAkAAIAAwADAAEAAAAjAAIAAwADAAEAAAAiAAIAAwADAAEAAAAiAAMAAwADAAEAAAAiAAQAAwADAAEAAAAiAAUAAwADAAEAAAAiAAYAAwADAAEAAAAjAAUAAwADAAEAAAAjAAQAAwADAAEAAAAjAAMAAwADAAEAAAAkAAMAAwADAAEAAAAkAAQAAwADAAEAAAAlAAQAAwADAAEAAAAlAAMAAwADAAEAAAAlAAIAAwADAAEAAAAlAAEAAwADAAEAAAAmAAEAAwADAAEAAAAmAAAAAwADAAEAAAAmAP//AwADAAEAAAAmAP7/AwADAAEAAAAmAP3/AwADAAEAAAAnAP3/AwADAAEAAAAnAP7/AwADAAEAAAAnAP//AwADAAEAAAAnAAAAAwADAAEAAAAnAAEAAwADAAEAAAAnAAIAAwADAAMAAAAmAAIAAwADAAEAAAAmAAMAAwADAAEAAAAmAAQAAwADAAEAAAAnAAQAAwADAAEAAAAnAAMAAwADAAEAAAAoAAMAAwADAAEAAAAoAAIAAwADAAMAAAAoAAEAAwADAAMAAAAoAAAAAwADAAEAAAAoAP//AwADAAEAAAAoAP7/AwADAAEAAAAoAP3/AwADAAEAAAApAP3/AwADAAEAAAApAP7/AwADAAEAAAApAP//AwADAAMAAAApAAAAAwADAAMAAAApAAEAAwADAAMAAAApAAIAAwADAAEAAAApAAMAAwADAAEAAAApAAQAAwADAAEAAAAoAAQAAwADAAEAAAAoAAUAAwADAAEAAAAnAAUAAwADAAEAAAAoAAYAAwADAAEAAAApAAYAAwADAAEAAAApAAUAAwADAAEAAAAqAAUAAwADAAEAAAAqAAQAAwADAAEAAAAqAAMAAwADAAEAAAAqAAIAAwADAAEAAAAqAAEAAwADAAEAAAArAAIAAwADAAEAAAArAAMAAwADAAEAAAArAAQAAwADAAEAAAArAAUAAwADAAEAAAAsAAQAAwADAAEAAAAsAAMAAwADAAEAAAAtAAQAAwADAAEAAAArAPz/AwADAAEAAAArAP3/AwADAAEAAAArAP7/AwADAAEAAAAsAPz/AwADAAEAAAAqAP//AwADAAMAAAAiAAEAAwADAAEAAAAjAAEAAwADAAEAAAAlAAAAAwADAAEAAAAlAP//AwADAAEAAAAlAP7/AwADAAEAAAAlAP3/AwADAAEAAAA=") tile_set = ExtResource("2_68wnv") -[node name="WaterLevel1" type="TileMapLayer" parent="Level1"] +[node name="WaterLevel1" type="TileMapLayer" parent="Node2D/Level1"] visible = false y_sort_enabled = true tile_map_data = PackedByteArray("AAAjAAcAAwABAAMAAAAjAAgAAwABAAMAAAAjAAkAAwABAAMAAAAjAAoAAwABAAMAAAAkAAYAAwABAAMAAAAkAAcAAwABAAMAAAAkAAgAAwABAAMAAAAkAAkAAwABAAMAA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MAAAAiAAkAAwABAAMAAAAiAAoAAwABAAMAAAAuAPz/AwABAAMAAAAvAPz/AwABAAMAAAAwAPz/AwABAAMAAAAmAAoAAwABAAMAAAAnAAoAAwABAAMAAAAoAAoAAwABAAMAAAApAAoAAwABAAMAAAAwAAQAAwABAAMAAAAwAAUAAwABAAMAAAAjAAYAAwABAAMAAAAkAAUAAwABAAMAAAAmAAUAAwABAAMAAAAnAAYAAwABAAMAAAAmAAYAAwABAAMAAAAmAAcAAwABAAMAAAAnAAcAAwABAAMAAAAoAAcAAwABAAMAAAApAAcAAwABAAMAAAAqAAcAAwABAAMAAAAqAAYAAwABAAMAAAArAAYAAwABAAMAAAArAAcAAwABAAMAAAAsAAcAAwABAAMAAAAsAAYAAwABAAMAAAAsAAUAAwABAAMAAAAtAAYAAwABAAMAAAAtAAcAAwABAAMAAAAtAAUAAwABAAMAAAAtAAMAAwABAAMAAAAtAAIAAwABAAMAAAAsAAIAAwABAAMAAAAsAAEAAwABAAMAAAArAAEAAwABAAMAAAArAAAAAwABAAMAAAAqAAAAAwABAAMAAAArAP//AwABAAMAAAAtAPz/AwABAAMAAAAtAP3/AwABAAMAAAAsAP3/AwABAAMAAAAsAP7/AwABAAMAAAAsAP//AwABAAMAAAAsAAAAAwABAAMAAAAtAAEAAwABAAMAAAAtAAAAAwABAAMAAAAtAP//AwABAAMAAAAtAP7/AwABAAMAAAA=") @@ -40,18 +84,19 @@ tile_set = ExtResource("2_68wnv") script = ExtResource("4_vc41k") level = 1 -[node name="Level2" type="TileMapLayer" parent="."] +[node name="Level2" type="TileMapLayer" parent="Node2D"] y_sort_enabled = true tile_map_data = PackedByteArray("AAAhAP7/AwAFAAEAAAAiAP7/AwAFAAEAAAAiAP3/AwAFAAEAAAAiAPz/AwAFAAEAAAAhAP3/AwAFAAEAAAAhAPz/AwAFAAEAAAAhAP//AwAFAAEAAAAiAP//AwAFAAEAAAAjAP//AwAFAAEAAAAjAP7/AwAFAAEAAAAjAP3/AwAFAAEAAAAjAPz/AwAFAAEAAAAkAPz/AwAFAAMAAAAkAP3/AwAFAAMAAAAkAP7/AwAFAAMAAAAkAP//AwAFAAMAAAAjAAAAAwAFAAMAAAAiAAAAAwAFAAMAAAAhAAAAAwAFAAMAAAAkAAAAAwAFAAMAAAAkAPv/AwAFAAEAAAAjAPv/AwAFAAEAAAAiAPv/AwAFAAEAAAAhAPv/AwAFAAEAAAAhAAEAAwAFAAMAAAAhAAIAAwAFAAMAAAAkAAEAAwAFAAMAAAAjAAEAAwAFAAMAAAAlAAAAAwAFAAMAAAAlAAEAAwAFAAMAAAAmAAEAAwAFAAEAAAAmAAIAAwAFAAEAAAAnAAIAAwAFAAEAAAAnAAEAAwAFAAEAAAAmAAAAAwAFAAMAAAAlAP//AwAFAAMAAAAlAP3/AwAFAAEAAAAlAP7/AwAFAAEAAAAmAP7/AwAFAAEAAAAmAP//AwAFAAEAAAAnAP//AwAFAAEAAAAoAP//AwAFAAEAAAAoAAAAAwAFAAEAAAAnAAAAAwAFAAEAAAAnAP7/AwAFAAEAAAAmAP3/AwAFAAEAAAAoAP7/AwAFAAEAAAApAP7/AwAFAAEAAAApAP3/AwAFAAEAAAAoAPv/AwAFAAEAAAAoAPz/AwAFAAEAAAAnAPz/AwAFAAEAAAAnAPv/AwAFAAEAAAAmAPv/AwAFAAMAAAAmAPz/AwAFAAMAAAAlAPv/AwAFAAMAAAAlAPz/AwAFAAMAAAAnAP3/AwAFAAEAAAAoAP3/AwAFAAEAAAAlAAIAAwAFAAMAAAA=") tile_set = ExtResource("2_68wnv") -[node name="BuildingLevel2" type="TileMapLayer" parent="Level2"] +[node name="BuildingLevel2" type="TileMapLayer" parent="Node2D/Level2"] y_sort_enabled = true +tile_map_data = PackedByteArray("AAAlAP3/AQABAAEAAAAmAPz/AQABAAEAAAAmAP3/AQABAAEAAAA=") tile_set = ExtResource("2_68wnv") script = ExtResource("5_3vufn") building_spots = Array[Vector2i]([Vector2i(33, 5), Vector2i(33, 4), Vector2i(33, 3), Vector2i(34, 4), Vector2i(34, 3), Vector2i(34, 2), Vector2i(34, 1), Vector2i(35, 3), Vector2i(35, 2), Vector2i(36, 3), Vector2i(36, 2), Vector2i(37, 3), Vector2i(38, 4), Vector2i(38, 3), Vector2i(39, 4), Vector2i(39, 3), Vector2i(39, 5), Vector2i(40, 5), Vector2i(40, 4), Vector2i(40, 3), Vector2i(40, 2), Vector2i(40, 1), Vector2i(41, 4), Vector2i(41, 3), Vector2i(41, 2), Vector2i(41, 1), Vector2i(41, 0), Vector2i(42, 4), Vector2i(42, 3), Vector2i(42, 2), Vector2i(42, 1), Vector2i(43, 2), Vector2i(43, 3), Vector2i(44, 3), Vector2i(41, -4), Vector2i(41, -5), Vector2i(42, -3), Vector2i(42, -4), Vector2i(42, -5), Vector2i(43, -5)]) -[node name="WaterLevel2" type="TileMapLayer" parent="Level2"] +[node name="WaterLevel2" type="TileMapLayer" parent="Node2D/Level2"] visible = false y_sort_enabled = true tile_map_data = PackedByteArray("AAAjAAUAAwABAAMAAAAjAAYAAwABAAMAAAAjAAcAAwABAAMAAAAjAAgAAwABAAMAAAAjAAkAAwABAAMAAAAkAAUAAwABAAMAAAAkAAYAAwABAAMAAAAkAAcAAwABAAMAAAAkAAgAAwABAAMAAAAkAAkAAwABAAMAAAAlAAUAAwABAAMAAAAlAAYAAwABAAMAAAAlAAcAAwABAAMAAAAlAAgAAwABAAMAAAAlAAkAAwABAAMAAAAmAAUAAwABAAMAAAAmAAYAAwABAAMAAAAmAAcAAwABAAMAAAAmAAgAAwABAAMAAAAmAAkAAwABAAMAAAAnAAUAAwABAAMAAAAnAAYAAwABAAMAAAAnAAcAAwABAAMAAAAnAAgAAwABAAMAAAAoAAUAAwABAAMAAAAoAAYAAwABAAMAAAAoAAcAAwABAAMAAAAoAAgAAwABAAMAAAAoAAkAAwABAAMAAAApAAUAAwABAAMAAAApAAYAAwABAAMAAAApAAcAAwABAAMAAAApAAgAAwABAAMAAAApAAkAAwABAAMAAAAqAAUAAwABAAMA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MAAAAvAPz/AwABAAMAAAAhAAkAAwABAAMAAAAhAAgAAwABAAMAAAAhAAcAAwABAAMAAAAhAAYAAwABAAMAAAAhAAUAAwABAAMAAAAsAPv/AwABAAMAAAAtAPv/AwABAAMAAAAuAPv/AwABAAMAAAAvAPv/AwABAAMAAAAnAAkAAwABAAMAAAAhAAMAAwABAAMAAAAhAAQAAwABAAMAAAAiAAEAAwABAAMAAAAiAAIAAwABAAMAAAAiAAMAAwABAAMAAAAiAAQAAwABAAMAAAAjAAIAAwABAAMAAAAjAAMAAwABAAMAAAAjAAQAAwABAAMAAAAkAAIAAwABAAMAAAAkAAMAAwABAAMAAAAkAAQAAwABAAMAAAAlAAMAAwABAAMAAAAmAAMAAwABAAMAAAAnAAMAAwABAAMAAAAoAAMAAwABAAMAAAAnAAQAAwABAAMAAAAoAAQAAwABAAMAAAAmAAQAAwABAAMAAAAlAAQAAwABAAMAAAAoAAEAAwABAAMAAAAoAAIAAwABAAMAAAApAAIAAwABAAMAAAApAAMAAwABAAMAAAApAAQAAwABAAMAAAAqAAQAAwABAAMAAAAqAAMAAwABAAMAAAAqAAIAAwABAAMAAAArAAIAAwABAAMAAAArAAMAAwABAAMAAAArAAQAAwABAAMAAAApAAEAAwABAAMAAAApAAAAAwABAAMAAAApAP//AwABAAMAAAAqAP//AwABAAMAAAAqAP7/AwABAAMAAAArAP7/AwABAAMAAAArAP3/AwABAAMAAAAqAP3/AwABAAMAAAApAPv/AwABAAMAAAApAPz/AwABAAMAAAAqAPz/AwABAAMAAAArAPz/AwABAAMAAAArAPv/AwABAAMAAAAqAPv/AwABAAMAAAArAP//AwABAAMAAAArAAAAAwABAAMAAAArAAEAAwABAAMAAAAqAAEAAwABAAMAAAAqAAAAAwABAAMAAAA=") @@ -59,18 +104,18 @@ tile_set = ExtResource("2_68wnv") script = ExtResource("4_vc41k") level = 2 -[node name="Level3" type="TileMapLayer" parent="."] +[node name="Level3" type="TileMapLayer" parent="Node2D"] y_sort_enabled = true tile_map_data = PackedByteArray("AAAgAP3/AwAHAAEAAAAhAP3/AwAHAAEAAAAhAPz/AwAHAAEAAAAhAPv/AwAHAAEAAAAgAP7/AwAHAAEAAAAhAP7/AwAHAAEAAAAiAP7/AwAHAAEAAAAiAP3/AwAHAAEAAAAiAPz/AwAHAAEAAAAiAPv/AwAHAAEAAAAgAPv/AwAHAAEAAAAgAPz/AwAHAAEAAAAgAPr/AwAHAAEAAAAhAPr/AwAHAAEAAAAjAPv/AwAHAAEAAAAiAPr/AwAHAAEAAAAjAP//AwAHAAEAAAAkAP//AwAHAAEAAAAjAP7/AwAHAAEAAAAjAP3/AwAHAAEAAAAjAPz/AwAHAAEAAAAkAP7/AwAHAAEAAAAlAPv/AwAHAAEAAAAkAPv/AwAHAAEAAAAlAPr/AwAHAAEAAAAkAPr/AwAHAAEAAAAjAPr/AwAHAAEAAAAlAP//AwAHAAEAAAAmAPr/AwAHAAEAAAAiAP//AwAHAAEAAAAhAP//AwAHAAEAAAAgAP//AwAHAAEAAAAgAAAAAwAHAAEAAAAkAAAAAwAHAAEAAAAjAAAAAwAHAAEAAAAkAAEAAwAHAAEAAAAiAAAAAwAHAAEAAAAgAAEAAwAHAAEAAAA=") tile_set = ExtResource("2_68wnv") -[node name="BuildingLevel3" type="TileMapLayer" parent="Level3"] +[node name="BuildingLevel3" type="TileMapLayer" parent="Node2D/Level3"] y_sort_enabled = true tile_set = ExtResource("2_68wnv") script = ExtResource("5_3vufn") building_spots = Array[Vector2i]([Vector2i(37, 1), Vector2i(37, 0), Vector2i(38, 1), Vector2i(38, 0), Vector2i(36, -3), Vector2i(36, -4), Vector2i(37, -2), Vector2i(37, -3), Vector2i(37, -4), Vector2i(38, -1), Vector2i(38, -2), Vector2i(38, -3), Vector2i(38, -4), Vector2i(38, -5), Vector2i(39, -2), Vector2i(39, -1), Vector2i(39, -3), Vector2i(39, -4), Vector2i(39, -5), Vector2i(39, -6), Vector2i(40, -3), Vector2i(40, -4)]) -[node name="WaterLevel3" type="TileMapLayer" parent="Level3"] +[node name="WaterLevel3" type="TileMapLayer" parent="Node2D/Level3"] visible = false y_sort_enabled = true tile_map_data = PackedByteArray("AAAjAAUAAwABAAMAAAAjAAYAAwABAAMAAAAjAAcAAwABAAMAAAAjAAgAAwABAAMAAAAkAAUAAwABAAMAAAAkAAYAAwABAAMAAAAkAAcAAwABAAMAAAAkAAgAAwABAAMAAAAlAAUAAwABAAMAAAAlAAYAAwABAAMAAAAlAAcAAwABAAMAAAAlAAgAAwABAAMAAAAmAAUAAwABAAMAAAAmAAYAAwABAAMAAAAmAAcAAwABAAMAAAAmAAgAAwABAAMAAAAnAAUAAwABAAMAAAAnAAYAAwABAAMAAAAnAAcAAwABAAMAAAAnAAgAAwABAAMAAAAoAAUAAwABAAMAAAAoAAYAAwABAAMAAAAoAAcAAwABAAMAAAAoAAgAAwABAAMAAAApAAUAAwABAAMAAAApAAYAAwABAAMAAAApAAcAAwABAAMAAAApAAgAAwABAAMAAAAqAAUAAwABAAMAAAAqAAYAAwABAAMAAAAqAAcAAwABAAMAAAAqAAgAAwABAAMAAAArAP3/AwABAAMAAAArAP7/AwABAAMAAAArAP//AwABAAMAAAArAAAAAwABAAMAAAArAAEAAwABAAMAAAArAAIAAwABAAMAAAArAAMAAwABAAMAAAArAAQAAwABAAMAAAArAAUAAwABAAMAAAArAAYAAwABAAMAAAArAAcAAwABAAMAAAArAAgAAwABAAMAAAAsAP3/AwABAAMAAAAsAP7/AwABAAMAAAAsAP//AwABAAMAAAAsAAAAAwABAAMAAAAsAAEAAwABAAMAAAAsAAIAAwABAAMAAAAsAAMAAwABAAMAAAAsAAQAAwABAAMAAAAsAAUAAwABAAMAAAAsAAYAAwABAAMAAAAsAAcAAwABAAMAAAAsAAgAAwABAAMAAAAtAP3/AwABAAMAAAAtAP7/AwABAAMAAAAtAP//AwABAAMAAAAtAAAAAwABAAMAAAAtAAEAAwABAAMAAAAtAAIAAwABAAMAAAAtAAMAAwABAAMAAAAtAAQAAwABAAMAAAAtAAU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AAkAP3/AwABAAMAAAAkAPz/AwABAAMAAAAlAPz/AwABAAMAAAAmAPz/AwABAAMAAAAmAPv/AwABAAMAAAAnAPv/AwABAAMAAAAnAPr/AwABAAMAAAAoAPr/AwABAAMAAAApAPr/AwABAAMAAAAqAPr/AwABAAMAAAAqAPv/AwABAAMAAAAqAPz/AwABAAMAAAApAPz/AwABAAMAAAApAPv/AwABAAMAAAAoAPv/AwABAAMAAAAoAPz/AwABAAMAAAAnAPz/AwABAAMAAAAmAP3/AwABAAMAAAAnAP3/AwABAAMAAAAoAP3/AwABAAMAAAApAP3/AwABAAMAAAAqAP3/AwABAAMAAAAqAP7/AwABAAMAAAApAP7/AwABAAMAAAApAP//AwABAAMAAAApAAAAAwABAAMAAAAqAAAAAwABAAMAAAAqAAEAAwABAAMAAAAqAAIAAwABAAMAAAApAAIAAwABAAMAAAApAAMAAwABAAMAAAAoAAMAAwABAAMAAAAnAAMAAwABAAMAAAAnAAQAAwABAAMAAAAmAAQAAwABAAMAAAAmAAMAAwABAAMAAAAlAAMAAwABAAMAAAAnAAIAAwABAAMAAAAlAAQAAwABAAMAAAAoAAQAAwABAAMAAAAqAAMAAwABAAMAAAApAAQAAwABAAMAAAAoAAIAAwABAAMAAAAoAAEAAwABAAMAAAAnAAEAAwABAAMAAAAnAAAAAwABAAMAAAAnAP//AwABAAMAAAAoAP//AwABAAMAAAAnAP7/AwABAAMAAAAoAP7/AwABAAMAAAAoAAAAAwABAAMAAAApAAEAAwABAAMAAAAqAP//AwABAAMAAAAqAAQAAwABAAMAAAA=") @@ -78,18 +123,18 @@ tile_set = ExtResource("2_68wnv") script = ExtResource("4_vc41k") level = 3 -[node name="Level4" type="TileMapLayer" parent="."] +[node name="Level4" type="TileMapLayer" parent="Node2D"] y_sort_enabled = true tile_map_data = PackedByteArray("AAAgAPv/AwAJAAEAAAAfAPr/AwAJAAEAAAAfAPv/AwAJAAEAAAAfAPn/AwAJAAEAAAAgAPn/AwAJAAEAAAAgAPr/AwAJAAEAAAAhAPr/AwAJAAEAAAAhAPn/AwAJAAEAAAAfAPz/AwAJAAEAAAAiAPn/AwAJAAEAAAAiAPr/AwAJAAEAAAAjAPn/AwAJAAEAAAA=") tile_set = ExtResource("2_68wnv") -[node name="BuildingLevel4" type="TileMapLayer" parent="Level4"] +[node name="BuildingLevel4" type="TileMapLayer" parent="Node2D/Level4"] y_sort_enabled = true tile_set = ExtResource("2_68wnv") script = ExtResource("5_3vufn") building_spots = Array[Vector2i]([Vector2i(31, -3), Vector2i(31, -2), Vector2i(31, -1), Vector2i(31, 0), Vector2i(32, -2), Vector2i(32, -3), Vector2i(32, -4), Vector2i(33, -3), Vector2i(33, -4), Vector2i(33, -5), Vector2i(33, -2), Vector2i(33, -1), Vector2i(34, -2), Vector2i(34, -3), Vector2i(34, -1), Vector2i(34, -4), Vector2i(34, -5), Vector2i(35, -6), Vector2i(35, -3), Vector2i(35, -2), Vector2i(35, -1), Vector2i(35, 0), Vector2i(36, -2), Vector2i(36, -6), Vector2i(36, -7), Vector2i(37, -7)]) -[node name="WaterLevel4" type="TileMapLayer" parent="Level4"] +[node name="WaterLevel4" type="TileMapLayer" parent="Node2D/Level4"] visible = false y_sort_enabled = true tile_map_data = PackedByteArray("AAAjAAIAAwABAAMAAAAjAAMAAwABAAMAAAAjAAQAAwABAAMAAAAjAAUAAwABAAMAAAAjAAYAAwABAAMAAAAjAAcAAwABAAMAAAAkAAIAAwABAAMAAAAkAAMAAwABAAMAAAAkAAQAAwABAAMAAAAkAAUAAwABAAMAAAAkAAYAAwABAAMAAAAkAAcAAwABAAMAAAAlAAIAAwABAAMAAAAlAAMAAwABAAMAAAAlAAQAAwABAAMAAAAlAAUAAwABAAMAAAAlAAYAAwABAAMAAAAlAAcAAwABAAMAAAAmAAIAAwABAAMAAAAmAAMAAwABAAMAAAAmAAQAAwABAAMAAAAmAAUAAwABAAMAAAAmAAYAAwABAAMAAAAmAAcAAwABAAMAAAAnAAIAAwABAAMAAAAnAAMAAwABAAMAAA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nAPr/AwABAAMAAAAnAPv/AwABAAMAAAAnAPz/AwABAAMAAAAnAP3/AwABAAMAAAAmAP3/AwABAAMAAAAmAP7/AwABAAMAAAAmAP//AwABAAMAAAAmAAAAAwABAAMAAAAlAAAAAwABAAMAAAAlAAEAAwABAAMAAAAkAAEAAwABAAMAAAAkAAAAAwABAAMAAAAjAAAAAwABAAMAAAAiAAAAAwABAAMAAAAiAP//AwABAAMAAAAiAP7/AwABAAMAAAAiAP3/AwABAAMAAAAiAPz/AwABAAMAAAAjAPz/AwABAAMAAAAjAP3/AwABAAMAAAAkAP3/AwABAAMAAAAkAP7/AwABAAMAAAAjAP//AwABAAMAAAAiAAEAAwABAAMAAAAhAAEAAwABAAMAAAAhAAAAAwABAAMAAAAhAP//AwABAAMAAAAhAP7/AwABAAMAAAAhAP3/AwABAAMAAAAjAP7/AwABAAMAAAAkAP//AwABAAMAAAAjAAEAAwABAAMAAAAlAP3/AwABAAMAAAAnAP7/AwABAAMAAAAnAP//AwABAAMAAAAnAAAAAwABAAMAAAAmAAEAAwABAAMAAAAlAP7/AwABAAMAAAAlAP//AwABAAMAAAAnAAEAAwABAAMAAAAlAPz/AwABAAMAAAAkAPz/AwABAAMAAAAkAPv/AwABAAMAAAAlAPr/AwABAAMAAAAmAPr/AwABAAMAAAAmAPv/AwABAAMAAAAmAPz/AwABAAMAAAAlAPv/AwABAAMAAAA=") @@ -97,18 +142,18 @@ tile_set = ExtResource("2_68wnv") script = ExtResource("4_vc41k") level = 4 -[node name="Level5" type="TileMapLayer" parent="."] +[node name="Level5" type="TileMapLayer" parent="Node2D"] y_sort_enabled = true tile_map_data = PackedByteArray("AAAeAPj/AwALAAEAAAAeAPn/AwALAAEAAAAfAPj/AwALAAEAAAA=") tile_set = ExtResource("2_68wnv") -[node name="BuildingLevel5" type="TileMapLayer" parent="Level5"] +[node name="BuildingLevel5" type="TileMapLayer" parent="Node2D/Level5"] y_sort_enabled = true tile_set = ExtResource("2_68wnv") script = ExtResource("5_3vufn") building_spots = Array[Vector2i]([Vector2i(30, -6), Vector2i(30, -5), Vector2i(31, -6), Vector2i(31, -7), Vector2i(32, -7), Vector2i(32, -8), Vector2i(33, -7), Vector2i(33, -8), Vector2i(34, -8)]) -[node name="WaterLevel5" type="TileMapLayer" parent="Level5"] +[node name="WaterLevel5" type="TileMapLayer" parent="Node2D/Level5"] visible = false y_sort_enabled = true tile_map_data = PackedByteArray("AAAjAAIAAwABAAMAAAAjAAMAAwABAAMAAAAjAAQAAwABAAMAAAAjAAUAAwABAAMAAAAjAAYAAwABAAMAAAAkAAIAAwABAAMAAAAkAAMAAwABAAMAAAAkAAQAAwABAAMAAAAkAAUAAwABAAMAAAAkAAYAAwABAAMAAAAlAAIAAwABAAMAAAAlAAMAAwABAAMAAAAlAAQAAwABAAMAAAAlAAUAAwABAAMAAAAlAAYAAwABAAMAAAAmAAIAAwABAAMAAAAmAAMAAwABAAMAAAAmAAQAAwABAAMAAAAmAAUAAwABAAMAAAAmAAYAAwABAAMAAAAnAAIAAwABAAMAAAAnAAMAAwABAAMAAAAnAAQAAwABAAMAAAAnAAUAAwABAAMAAAAnAAYAAwABAAMAAAAoAP3/AwABAAMAAAAoAP7/AwABAAMAAAAoAP//AwABAAMAAAAoAAAAAwABAAMAAAAoAAEAAwABAAMAAAAoAAIAAwABAAMAAAAoAAMAAwABAAMAAAAoAAQAAwABAAMAAAAoAAUAAwABAAMAAAAoAAYAAwABAAMAAAApAP3/AwABAAMAAAApAP7/AwABAAMAAAApAP//AwABAAMAAAApAAAAAwABAAMAAAApAAEAAwABAAMAAAApAAIAAwABAAMAAAApAAMAAwABAAMAAAApAAQAAwABAAMAAAApAAUAAwABAAMAAAApAAYAAwABAAMAAAAqAP3/AwABAAMAAAAqAP7/AwABAAMAAAAqAP//AwABAAMAAAAqAAAAAwABAAMAAAAqAAEAAwABAAMAAAAqAAIAAwABAAMAAAAqAAMAAwABAAMAAAAqAAQAAwABAAMAAAAqAAUAAwABAAMAAAAqAAYAAwABAA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z/AwABAAMAAAAeAPv/AwABAAMAAAAhAPj/AwABAAMAAAAiAPj/AwABAAMAAAAjAPj/AwABAAMAAAAkAPj/AwABAAMAAAAlAPj/AwABAAMAAAAoAPj/AwABAAMAAAAnAPj/AwABAAMAAAAmAPj/AwABAAMAAAAsAPj/AwABAAMAAAArAPj/AwABAAMAAAAqAPj/AwABAAMAAAApAPj/AwABAAMAAAAgAPv/AwABAAMAAAAhAPr/AwABAAMAAAAiAPr/AwABAAMAAAAiAPn/AwABAAMAAAAhAPn/AwABAAMAAAAjAPn/AwABAAMAAAAfAAYAAwABAAMAAAAeAAYAAwABAAMAAAAfAPn/AwABAAMAAAAfAPr/AwABAAMAAAAfAPv/AwABAAMAAAAeAPr/AwABAAMAAAAgAPj/AwABAAMAAAAgAPn/AwABAAMAAAAgAPr/AwABAAMAAAA=") @@ -116,7 +161,7 @@ tile_set = ExtResource("2_68wnv") script = ExtResource("4_vc41k") level = 5 -[node name="BuildingLevel6" type="TileMapLayer" parent="."] +[node name="BuildingLevel6" type="TileMapLayer" parent="Node2D"] y_sort_enabled = true tile_set = ExtResource("2_68wnv") script = ExtResource("5_3vufn") @@ -134,3 +179,15 @@ grow_vertical = 2 pivot_offset = Vector2(114, 128) [node name="BuildingMenu" parent="CanvasLayer" instance=ExtResource("7_hnxcf")] + +[node name="CanvasLayer2" type="CanvasLayer" parent="."] +layer = -1 + +[node name="ColorRect" type="TextureRect" parent="CanvasLayer2"] +offset_right = 640.0 +offset_bottom = 360.0 +texture = ExtResource("7_bnuu0") + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = SubResource("AudioStreamRandomizer_f4v2y") +autoplay = true diff --git a/TIleSet.tres b/TIleSet.tres index b5d9a2d..56a2b55 100644 --- a/TIleSet.tres +++ b/TIleSet.tres @@ -13,11 +13,7 @@ margins = Vector2i(16, 16) [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_j7eew"] texture = ExtResource("2_bubm3") -margins = Vector2i(15, 14) -texture_region_size = Vector2i(18, 20) 1:1/0 = 0 -0:0/0 = 0 -0:0/0/texture_origin = Vector2i(0, 6) [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_w6tof"] texture = ExtResource("3_rchy6") diff --git a/background.aseprite b/background.aseprite new file mode 100644 index 0000000..69872c7 Binary files /dev/null and b/background.aseprite differ diff --git a/background.png b/background.png new file mode 100644 index 0000000..5877783 Binary files /dev/null and b/background.png differ diff --git a/background.png.import b/background.png.import new file mode 100644 index 0000000..21d65f4 --- /dev/null +++ b/background.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bccyjf2bn3mpj" +path="res://.godot/imported/background.png-98289422cd7d93003950872a7b97021f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://background.png" +dest_files=["res://.godot/imported/background.png-98289422cd7d93003950872a7b97021f.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/cloud.aseprite b/cloud.aseprite new file mode 100644 index 0000000..690c174 Binary files /dev/null and b/cloud.aseprite differ diff --git a/cloud.png b/cloud.png new file mode 100644 index 0000000..7c87685 Binary files /dev/null and b/cloud.png differ diff --git a/cloud.png.import b/cloud.png.import new file mode 100644 index 0000000..70aaf39 --- /dev/null +++ b/cloud.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d4abji2r2gx7i" +path="res://.godot/imported/cloud.png-dee661b88ca2a546a70f524ffe8e0d75.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://cloud.png" +dest_files=["res://.godot/imported/cloud.png-dee661b88ca2a546a70f524ffe8e0d75.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/components/Cursor/Cursor.tscn b/components/Cursor/Cursor.tscn index 81291f8..4104816 100644 --- a/components/Cursor/Cursor.tscn +++ b/components/Cursor/Cursor.tscn @@ -15,8 +15,9 @@ script = ExtResource("1_nmkwm") shape = SubResource("RectangleShape2D_4cq27") [node name="Sprite2D" type="Sprite2D" parent="MouseControl"] -position = Vector2(10, 10) +position = Vector2(7, 7) texture = ExtResource("2_bjcic") +offset = Vector2(3, 3) [connection signal="area_entered" from="MouseControl" to="." method="_on_mouse_control_area_entered"] [connection signal="area_exited" from="MouseControl" to="." method="_on_mouse_control_area_exited"] diff --git a/components/Cursor/cursor.gd b/components/Cursor/cursor.gd index 2e21e06..aaf99d0 100644 --- a/components/Cursor/cursor.gd +++ b/components/Cursor/cursor.gd @@ -9,16 +9,17 @@ const CURSOR = preload("res://components/Cursor/cursor.png") var cursor_state = "normal" var rotation_tween +var cursor_tween + func _ready() -> void: Persister.data_persisted.connect(_on_data_persisted) - Triggerer.listen("fire", _on_fire) + func _on_fire(_data): if cursor_state == "ui": return - sprite_2d.scale = Vector2.ONE * 1.25 * 0.156 func _on_release(): @@ -109,7 +110,13 @@ func _process(delta): _on_rclick() Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN) mouse_control.position = mouse_control.get_global_mouse_position() - + + if not Input.is_action_pressed("lclick"): + sprite_2d.rotation = move_toward(sprite_2d.rotation, 0, delta) + sprite_2d.scale = sprite_2d.scale.move_toward(Vector2.ONE, delta) + else: + sprite_2d.scale = sprite_2d.scale.move_toward(Vector2.ONE * 0.9, delta * 2) + sprite_2d.rotation = move_toward(sprite_2d.rotation, -0.1, delta * 2) func _on_mouse_control_area_entered(area): if area.has_method("_on_hovered"): diff --git a/components/Cursor/cursor_pixel_2-sheet.png b/components/Cursor/cursor_pixel_2-sheet.png new file mode 100644 index 0000000..83553b9 Binary files /dev/null and b/components/Cursor/cursor_pixel_2-sheet.png differ diff --git a/components/Cursor/cursor_pixel_2-sheet.png.import b/components/Cursor/cursor_pixel_2-sheet.png.import new file mode 100644 index 0000000..82cc895 --- /dev/null +++ b/components/Cursor/cursor_pixel_2-sheet.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://da65ydeo701gm" +path="res://.godot/imported/cursor_pixel_2-sheet.png-34d1a4b260030c4f8614c4b528509bf1.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://components/Cursor/cursor_pixel_2-sheet.png" +dest_files=["res://.godot/imported/cursor_pixel_2-sheet.png-34d1a4b260030c4f8614c4b528509bf1.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/components/Cursor/cursor_pixel_2.png b/components/Cursor/cursor_pixel_2.png index b5d877a..83553b9 100644 Binary files a/components/Cursor/cursor_pixel_2.png and b/components/Cursor/cursor_pixel_2.png differ diff --git a/heavy version.wav b/heavy version.wav new file mode 100644 index 0000000..4b06fb2 Binary files /dev/null and b/heavy version.wav differ diff --git a/heavy version.wav.import b/heavy version.wav.import new file mode 100644 index 0000000..a19b641 --- /dev/null +++ b/heavy version.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dk2thkxy31doi" +path="res://.godot/imported/heavy version.wav-fdc1a92f7e5068e1acde6ae77b88579c.sample" + +[deps] + +source_file="res://heavy version.wav" +dest_files=["res://.godot/imported/heavy version.wav-fdc1a92f7e5068e1acde6ae77b88579c.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/light version final(1).wav b/light version final(1).wav new file mode 100644 index 0000000..3b69ce5 Binary files /dev/null and b/light version final(1).wav differ diff --git a/light version final(1).wav.import b/light version final(1).wav.import new file mode 100644 index 0000000..292ec7b --- /dev/null +++ b/light version final(1).wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://dfxndvkdey800" +path="res://.godot/imported/light version final(1).wav-a07d786482da1a06a8f63e7795c38e32.sample" + +[deps] + +source_file="res://light version final(1).wav" +dest_files=["res://.godot/imported/light version final(1).wav-a07d786482da1a06a8f63e7795c38e32.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/main.gd b/main.gd index 09d4282..688af67 100644 --- a/main.gd +++ b/main.gd @@ -1,11 +1,11 @@ extends Node2D @onready var building_levels = [ - $Level2/BuildingLevel2, - $Level3/BuildingLevel3, - $Level4/BuildingLevel4, - $Level5/BuildingLevel5, - $BuildingLevel6 + $Node2D/Level2/BuildingLevel2, + $Node2D/Level3/BuildingLevel3, + $Node2D/Level4/BuildingLevel4, + $Node2D/Level5/BuildingLevel5, + $Node2D/BuildingLevel6 ] func _process(delta: float) -> void: diff --git a/ui/BuildingIcon.tscn b/ui/BuildingIcon.tscn index 4824de0..1a8f1fa 100644 --- a/ui/BuildingIcon.tscn +++ b/ui/BuildingIcon.tscn @@ -8,6 +8,9 @@ [node name="BuildingIcon" type="ColorRect"] custom_minimum_size = Vector2(32, 32) +offset_right = 32.0 +offset_bottom = 32.0 +pivot_offset = Vector2(16, 16) script = ExtResource("1_6qgij") [node name="TextureRect" type="TextureRect" parent="."] diff --git a/ui/BuildingMenu.tscn b/ui/BuildingMenu.tscn index f689d16..236443a 100644 --- a/ui/BuildingMenu.tscn +++ b/ui/BuildingMenu.tscn @@ -25,26 +25,26 @@ offset_bottom = 17.0 theme_override_constants/separation = 0 [node name="BuildingTab" parent="HBoxContainer" instance=ExtResource("3_cpcpk")] -self_modulate = Color(1, 1, 1, 0.4) +self_modulate = Color(1, 1, 1, 0.784314) layout_mode = 2 text = "Resources" [node name="BuildingTab2" parent="HBoxContainer" instance=ExtResource("3_cpcpk")] -self_modulate = Color(1, 1, 1, 0.101961) +self_modulate = Color(1, 1, 1, 0.784314) layout_mode = 2 key = "housing" text = "Housing" width = 44.0 [node name="BuildingTab3" parent="HBoxContainer" instance=ExtResource("3_cpcpk")] -self_modulate = Color(1, 1, 1, 0.101961) +self_modulate = Color(1, 1, 1, 0.784314) layout_mode = 2 key = "utility" text = "Utility" width = 38.0 [node name="Buildings" type="TextureRect" parent="."] -self_modulate = Color(1, 1, 1, 0.392157) +self_modulate = Color(1, 1, 1, 0.784314) layout_mode = 1 anchors_preset = 2 anchor_top = 1.0 @@ -68,29 +68,33 @@ grow_vertical = 2 alignment = 1 [node name="BuildingIcon" parent="Buildings/VBoxContainer" instance=ExtResource("3_ol3gk")] +self_modulate = Color(1, 1, 1, 0.176471) layout_mode = 2 -color = Color(0.674815, 0.674815, 0.674815, 1) +color = Color(0.314316, 0.314316, 0.314316, 1) [node name="Spacer" parent="Buildings/VBoxContainer" instance=ExtResource("3_ji0ar")] layout_mode = 2 [node name="BuildingIcon2" parent="Buildings/VBoxContainer" instance=ExtResource("3_ol3gk")] +self_modulate = Color(1, 1, 1, 0.176471) layout_mode = 2 -color = Color(0.674815, 0.674815, 0.674815, 1) +color = Color(0.314316, 0.314316, 0.314316, 1) [node name="Spacer2" parent="Buildings/VBoxContainer" instance=ExtResource("3_ji0ar")] layout_mode = 2 [node name="BuildingIcon3" parent="Buildings/VBoxContainer" instance=ExtResource("3_ol3gk")] +self_modulate = Color(1, 1, 1, 0.176471) layout_mode = 2 -color = Color(0.674815, 0.674815, 0.674815, 1) +color = Color(0.314316, 0.314316, 0.314316, 1) [node name="Spacer3" parent="Buildings/VBoxContainer" instance=ExtResource("3_ji0ar")] layout_mode = 2 [node name="BuildingIcon4" parent="Buildings/VBoxContainer" instance=ExtResource("3_ol3gk")] +self_modulate = Color(1, 1, 1, 0.176471) layout_mode = 2 -color = Color(0.674815, 0.674815, 0.674815, 1) +color = Color(0.314316, 0.314316, 0.314316, 1) [connection signal="clicked" from="HBoxContainer/BuildingTab" to="." method="_on_building_tab_clicked"] [connection signal="clicked" from="HBoxContainer/BuildingTab2" to="." method="_on_building_tab_2_clicked"] diff --git a/ui/BuildingTab.tscn b/ui/BuildingTab.tscn index c8ae8b5..83e8bbb 100644 --- a/ui/BuildingTab.tscn +++ b/ui/BuildingTab.tscn @@ -28,6 +28,7 @@ offset_top = -3.0 offset_bottom = 46.0 grow_horizontal = 2 grow_vertical = 2 +pivot_offset = Vector2(33, 3) bbcode_enabled = true text = "[center]Resource" @@ -38,3 +39,5 @@ position = Vector2(33, 7) shape = SubResource("RectangleShape2D_f3h14") [connection signal="clicked" from="MouseHandler" to="." method="_on_mouse_handler_clicked"] +[connection signal="hovered" from="MouseHandler" to="." method="_on_mouse_handler_hovered"] +[connection signal="unhovered" from="MouseHandler" to="." method="_on_mouse_handler_unhovered"] diff --git a/ui/building_icon.gd b/ui/building_icon.gd index db120d8..257b14d 100644 --- a/ui/building_icon.gd +++ b/ui/building_icon.gd @@ -5,14 +5,28 @@ var clicked = false @onready var texture_rect: TextureRect = $TextureRect +var hover_tween func _on_mouse_handler_clicked() -> void: clicked = true + if hover_tween: + hover_tween.kill() + + hover_tween = create_tween() + hover_tween.set_ease(Tween.EASE_OUT) + hover_tween.set_trans(Tween.TRANS_BACK) + hover_tween.tween_property(self, "scale", Vector2.ONE * 0.95, 0.25) func _on_mouse_handler_hovered() -> void: - pass # Replace with function body. + if hover_tween: + hover_tween.kill() + + hover_tween = create_tween() + hover_tween.set_ease(Tween.EASE_OUT) + hover_tween.set_trans(Tween.TRANS_BACK) + hover_tween.tween_property(self, "scale", Vector2.ONE * 1.05, 0.25) func _on_mouse_handler_unhovered() -> void: @@ -22,6 +36,14 @@ func _on_mouse_handler_unhovered() -> void: Persister.persist_data("building_mode", true) Persister.persist_data("building_key", key) clicked = false + + if hover_tween: + hover_tween.kill() + + hover_tween = create_tween() + hover_tween.set_ease(Tween.EASE_OUT) + hover_tween.set_trans(Tween.TRANS_QUAD) + hover_tween.tween_property(self, "scale", Vector2.ONE, 0.25) func _on_mouse_handler_released() -> void: @@ -31,3 +53,11 @@ func _on_mouse_handler_released() -> void: Persister.persist_data("building_mode", true) Persister.persist_data("building_key", key) clicked = false + + if hover_tween: + hover_tween.kill() + + hover_tween = create_tween() + hover_tween.set_ease(Tween.EASE_OUT) + hover_tween.set_trans(Tween.TRANS_BACK) + hover_tween.tween_property(self, "scale", Vector2.ONE, 0.25) diff --git a/ui/building_tab.gd b/ui/building_tab.gd index 5f8ef0c..d71df47 100644 --- a/ui/building_tab.gd +++ b/ui/building_tab.gd @@ -9,6 +9,8 @@ signal clicked @onready var rich_text_label: RichTextLabel = $RichTextLabel @onready var collision_shape_2d: CollisionShape2D = $MouseHandler/CollisionShape2D +var text_tween + func _ready() -> void: rich_text_label.text = "[center]%s" % [text] custom_minimum_size.x = width @@ -20,13 +22,43 @@ func _ready() -> void: func _on_mouse_handler_clicked() -> void: clicked.emit() - + + if text_tween: + text_tween.kill() + + text_tween = create_tween() + text_tween.set_ease(Tween.EASE_OUT) + text_tween.set_trans(Tween.TRANS_BACK) + text_tween.tween_property(rich_text_label, "scale", Vector2.ONE * 0.95, 0.25) + text_tween.set_trans(Tween.TRANS_QUAD) + text_tween.tween_property(rich_text_label, "scale", Vector2.ONE, 0.05) + func select(): rich_text_label.self_modulate = Color(1, 1, 1, 1) - self_modulate = Color(1, 1, 1, 0.4) + self_modulate = Color(1, 1, 1, 0.784) func unselect(): rich_text_label.self_modulate = Color(1, 1, 1, 0.4) - self_modulate = Color(1, 1, 1, 0.1) + self_modulate = Color(1, 1, 1, 0.4) + + +func _on_mouse_handler_hovered() -> void: + if text_tween: + text_tween.kill() + + text_tween = create_tween() + text_tween.set_ease(Tween.EASE_OUT) + text_tween.set_trans(Tween.TRANS_BACK) + text_tween.tween_property(rich_text_label, "scale", Vector2.ONE * 1.02, 0.25) + + +func _on_mouse_handler_unhovered() -> void: + if text_tween: + text_tween.kill() + + text_tween = create_tween() + text_tween.set_ease(Tween.EASE_OUT) + text_tween.set_trans(Tween.TRANS_QUAD) + text_tween.tween_property(rich_text_label, "scale", Vector2.ONE, 0.05) diff --git a/ui/buildingmeny.aseprite b/ui/buildingmeny.aseprite index 8ed501b..7aac3eb 100644 Binary files a/ui/buildingmeny.aseprite and b/ui/buildingmeny.aseprite differ diff --git a/ui/buildingmeny.png b/ui/buildingmeny.png index a67b42f..4f59376 100644 Binary files a/ui/buildingmeny.png and b/ui/buildingmeny.png differ