Compare commits

..

No commits in common. "01e58dc8f68bb0dbae9cd163758204d0eba9cf6b" and "c7140911a7c1c63b340647da93add33abc14b003" have entirely different histories.

62 changed files with 130 additions and 1398 deletions

View file

@ -1,105 +1,36 @@
extends TileMapLayer
@export var building_spots: Array[Vector2i]
@export var tree_spots: Array[Vector2i]
@export var rock_spots: Array[Vector2i]
var building_data = {}
var last_tile
var last_text
var rand = 0
const NAME_ICON = preload("res://NameIcon.tscn")
var building_to_tile_map = {
"tents": {
"source": 8,
"atlas": 0
},
"quarter": {
"source": 8,
"atlas": 1
},
"house": {
"source": 8,
"atlas": 2
},
"essencecompressor": {
"source": 8,
"atlas": 2
},
"woodcutter": {
"source": 8,
"atlas": 2
},
"stoneminer": {
"source": 8,
"atlas": 2
},
"foodgathering": {
"source": 7,
"atlas": 2
},
"foodprocessing": {
"source": 7,
"atlas": 3
},
"waterprocessor": {
"source": 7,
"atlas": 1
},
"waterpump": {
"source": 7,
"atlas": 0
}
}
func _process(delta: float) -> void:
var tile = local_to_map(get_global_mouse_position())
var building_mode = Persister.get_value("building_mode")
if Input.is_action_just_pressed("lclick"):
if building_mode:
place_building()
else:
show_info_building()
for spot in building_spots:
if not building_data.has(spot) and not tree_spots.has(spot) and not rock_spots.has(spot):
if not building_data.has(spot):
erase_cell(spot)
if last_tile != tile:
if last_text and is_instance_valid(last_text) and last_text.selected:
last_text._deselect()
rand = randi_range(0, 1)
if not Persister.get_value("building_mode"):
if rock_spots.has(tile):
last_text = NAME_ICON.instantiate()
last_text.text = "[center]Rock"
last_text.position = map_to_local(tile) + Vector2(-25, -10)
add_sibling(last_text)
elif tree_spots.has(tile):
last_text = NAME_ICON.instantiate()
last_text.text = "[center]Tree"
last_text.position = map_to_local(tile) + Vector2(-25, -10)
add_sibling(last_text)
elif building_data.has(tile):
last_text = NAME_ICON.instantiate()
last_text.text = "[center]%s" % [Data.data.buildings[building_data[tile].key].name]
last_text.position = map_to_local(tile) + Vector2(-25, -10)
add_sibling(last_text)
last_tile = tile
if not building_mode:
return
if building_spots.has(tile) and not rock_spots.has(tile) and not tree_spots.has(tile):
var build_data = building_to_tile_map[Persister.get_value("building_key")]
set_cell(tile, build_data["source"], Vector2i(build_data["atlas"],rand), 0)
if building_spots.has(tile):
set_cell(tile, 1, Vector2i(0,0), 0)
func place_building():
var tile = local_to_map(get_global_mouse_position())
if building_spots.has(tile) and not building_data.has(tile) and not tree_spots.has(tile) and not rock_spots.has(tile):
if building_spots.has(tile):
Persister.persist_data("building_mode", false)
building_data[tile] = {
"key": Persister.get_value("building_key"),

View file

@ -1,18 +0,0 @@
[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

View file

@ -1,5 +0,0 @@
extends Node2D
func _process(delta: float) -> void:
position = (Vector2(320, 180) - get_global_mouse_position()) / 40

535
Main.tscn
View file

@ -1,229 +1,14 @@
[gd_scene load_steps=30 format=4 uid="uid://5ske2hm55rce"]
[gd_scene load_steps=10 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="Script" path="res://ui_level.gd" id="9_8qp2o"]
[ext_resource type="Script" path="res://ui.gd" id="10_vm6py"]
[ext_resource type="Texture2D" uid="uid://cd205j7rs5ph7" path="res://ui/buildingmeny.png" id="11_psgyr"]
[ext_resource type="Texture2D" uid="uid://rtrb5p3o61i4" path="res://ui/essence_icon.png" id="12_2i27n"]
[ext_resource type="PackedScene" path="res://Night.tscn" id="13_8fvl0"]
[ext_resource type="Script" path="res://ui/counters.gd" id="13_fqswr"]
[ext_resource type="AudioStream" uid="uid://dfxndvkdey800" path="res://light version final(1).wav" id="13_tvksj"]
[ext_resource type="Script" path="res://start.gd" id="14_3fkxs"]
[ext_resource type="Script" path="res://small_wave.gd" id="14_d8e1g"]
[ext_resource type="Texture2D" uid="uid://dwm8p1koiqee8" path="res://wood.png" id="14_dmibc"]
[ext_resource type="AudioStream" uid="uid://dk2thkxy31doi" path="res://heavy version.wav" id="14_frsfx"]
[ext_resource type="Texture2D" uid="uid://ckbq5ipvom580" path="res://stone.png" id="15_scpqp"]
[sub_resource type="Animation" id="Animation_ycb31"]
resource_name = "start"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("CanvasLayer/Start/RichTextLabel:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.366667),
"transitions": PackedFloat32Array(1, 0.5),
"update": 0,
"values": [Vector2(1, 1), Vector2(0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("CanvasLayer/Start/RichTextLabel2:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.266667, 0.633333),
"transitions": PackedFloat32Array(1, 0.5),
"update": 0,
"values": [Vector2(1, 1), Vector2(0, 0)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("CanvasLayer/Start:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0.133333, 0.9),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("CanvasLayer/StartOverlay:modulate")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0.133333, 0.833333),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = false
tracks/4/path = NodePath("CanvasLayer/UI:position")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0, 0.933333, 1.7),
"transitions": PackedFloat32Array(-2, -2, -2),
"update": 0,
"values": [Vector2(0, -28.23), Vector2(0, -28.23), Vector2(0, 0)]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("CanvasLayer/UI/Background/Control:position")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0, 1.5, 1.53333, 1.56667, 1.6, 1.63333, 1.66667, 1.7, 1.73333, 1.76667, 1.8, 1.83333, 1.86667, 1.9, 1.93333, 1.96667, 2),
"transitions": PackedFloat32Array(-2, -2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, -28), Vector2(0, -28), Vector2(0, -28.5265), Vector2(0, -29.629), Vector2(0, -30.5916), Vector2(0, -30.6985), Vector2(0, -29.2339), Vector2(0, -25.4821), Vector2(0, -18.7272), Vector2(0, -9.27276), Vector2(0, -2.51792), Vector2(0, 1.23389), Vector2(0, 2.69845), Vector2(0, 2.59156), Vector2(0, 1.629), Vector2(0, 0.526546), Vector2(0, 0)]
}
tracks/6/type = "value"
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/path = NodePath("CanvasLayer/UI/Background/Control2:position")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/keys = {
"times": PackedFloat32Array(1.16667, 1.2, 1.23333, 1.26667, 1.3, 1.33333, 1.36667, 1.4, 1.43333, 1.46667, 1.5, 1.53333, 1.56667, 1.6, 1.63333, 1.66667),
"transitions": PackedFloat32Array(-2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, -28), Vector2(0, -28.5265), Vector2(0, -29.629), Vector2(0, -30.5916), Vector2(0, -30.6985), Vector2(0, -29.2339), Vector2(0, -25.4821), Vector2(0, -18.7272), Vector2(0, -9.27276), Vector2(0, -2.51792), Vector2(0, 1.23389), Vector2(0, 2.69845), Vector2(0, 2.59156), Vector2(0, 1.629), Vector2(0, 0.526546), Vector2(0, 0)]
}
[sub_resource type="Animation" id="Animation_gcod0"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("CanvasLayer/Start/RichTextLabel:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("CanvasLayer/Start/RichTextLabel2:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("CanvasLayer/Start:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("CanvasLayer/StartOverlay:modulate")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("CanvasLayer/UI/Background/Control:position")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, -28)]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("CanvasLayer/UI/Background/Control2:position")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, -28)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_8mn2x"]
_data = {
"RESET": SubResource("Animation_gcod0"),
"start": SubResource("Animation_ycb31")
}
[sub_resource type="RichTextEffect" id="RichTextEffect_1jsuj"]
script = ExtResource("14_d8e1g")
[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")
@ -237,27 +22,17 @@ offset_right = 40.0
offset_bottom = 40.0
theme = ExtResource("1_xbn5h")
[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"]
[node name="Level0" type="TileMapLayer" parent="."]
y_sort_enabled = true
tile_map_data = PackedByteArray("AAAjAP3/AwABAAMAAAAjAP7/AwABAAMAAAAjAP//AwABAAMAAAAjAAAAAwABAAMAAAAjAAEAAwABAAMAAAAjAAIAAwABAAMAAAAjAAMAAwABAAMAAAAjAAQAAwABAAMAAAAjAAUAAwABAAMAAAAjAAYAAwABAAMAAAAjAAcAAwABAAMAAAAjAAgAAwABAAMAAAAjAAkAAwABAAMAAAAjAAoAAwABAAMAAAAjAAsAAwABAAMAAAAkAP3/AwABAAMAAAAkAP7/AwABAAMAAAAkAP//AwABAAMAAAAkAAAAAwABAAMAAAAkAAEAAwABAAMAAAAkAAIAAwABAAMAAAAkAAMAAwABAAMAAAAkAAQAAwABAAMAAAAkAAUAAwABAAMAAAAkAAYAAwABAAMAAAAkAAcAAwABAAMAAAAkAAgAAwABAAMAAAAkAAkAAwABAAMAAAAk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//AwABAAMAAAAuAAAAAwABAAMAAAAuAAEAAwABAAMAAAAuAAIAAwABAAMAAAAuAAMAAwABAAMAAAAuAAQAAwABAAMAAAAuAAUAAwABAAMAAAAuAAYAAwABAAMAAAAuAAcAAwABAAMAAAAuAAgAAwABAAMAAAAuAAkAAwABAAMAAAAuAAoAAwABAAMAAAAuAAsAAwABAAMAAAAvAP3/AwABAAMAAAAvAP7/AwABAAMAAAAvAP//AwABAAMAAAAvAAAAAwABAAMAAAAvAAEAAwABAAMAAAAvAAIAAwABAAMAAAAvAAMAAwABAAMAAAAvAAQAAwABAAMAAAAvAAUAAwABAAMAAAAvAAYAAwABAAMAAAAvAAcAAwABAAMAAAAvAAgAAwABAAMAAAAvAAkAAwABAAMAAAAvAAoAAwABAAMAAAAvAAsAAwABAAMAAAAwAP3/AwABAAMAAAAwAP7/AwABAAMAAAAwAP//AwABAAMAAAAwAAAAAwABAAMAAAAwAAEAAwABAAMAAAAwAAIAAwABAAMAAAAwAAMAAwABAAMAAAAwAAQAAwABAAMAAAAwAAUAAwABAAMAAAAwAAYAAwABAAMAAAAwAAcAAwABAAMAAAAwAAgAAwABAAMAAAAwAAkAAwABAAMAAAAwAAoAAwABAAMAAAAwAAsAAwABAAMAAAAxAP3/AwABAAMAAAAxAP7/AwABAAMAAAAxAP//AwABAAMAAAAxAAAAAwABAAMAAAAxAAEAAwABAAMAAAAxAAIAAwABAAMAAAAxAAMAAwABAAMAAAAxAAQAAwABAAMAAAAxAAUAAwABAAMAAAAxAAYAAwABAAMAAAAxAAcAAwABAAMAAAAxAAgAAwABAAMAAAAxAAkAAwABAAMAAAAxAAoAAwABAAMAAAAxAAsAAwABAAMAAAA=")
tile_set = ExtResource("2_68wnv")
[node name="Level1" type="TileMapLayer" parent="Node2D"]
[node name="Level1" type="TileMapLayer" parent="."]
y_sort_enabled = true
tile_map_data = PackedByteArray("AAAqAP7/AwADAAEAAAAqAP3/AwADAAEAAAAqAPz/AwADAAEAAAApAPz/AwADAAEAAA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UAAwADAAEAAAAoAAYAAwADAAEAAAApAAYAAwADAAEAAAApAAUAAwADAAEAAAAqAAUAAwADAAEAAAAqAAQAAwADAAEAAAAqAAMAAwADAAEAAAAqAAIAAwADAAEAAAAqAAEAAwADAAEAAAArAAIAAwADAAEAAAArAAMAAwADAAEAAAArAAQAAwADAAEAAAArAAUAAwADAAEAAAAsAAQAAwADAAEAAAAsAAMAAwADAAEAAAAtAAQAAwADAAEAAAArAPz/AwADAAEAAAArAP3/AwADAAEAAAArAP7/AwADAAEAAAAsAPz/AwADAAEAAAAqAP//AwADAAMAAAAiAAEAAwADAAEAAAAjAAEAAwADAAEAAAAlAAAAAwADAAEAAAAlAP//AwADAAEAAAAlAP7/AwADAAEAAAAlAP3/AwADAAEAAAA=")
tile_set = ExtResource("2_68wnv")
[node name="WaterLevel1" type="TileMapLayer" parent="Node2D/Level1"]
[node name="WaterLevel1" type="TileMapLayer" parent="Level1"]
visible = false
y_sort_enabled = true
tile_map_data = PackedByteArray("AAAjAAcAAwABAAMAAAAjAAgAAwABAAMAAAAjAAkAAwABAAMAAAAjAAoAAwABAAMAAAAkAAYAAwABAAMAAAAkAAcAAwABAAMAAAAkAAgAAwABAAMAAAAkAAkAAwABAAMAAAAkAAoAAwABAAMAAAAlAAUAAwABAAMAAAAlAAYAAwABAAMAAAAlAAcAAwABAAMAAAAlAAgAAwABAAMAAAAlAAkAAwABAAMAAAAlAAoAAwABAAMAAAAmAAgAAwABAAMAAAAmAAkAAwABAAMAAAAnAAgAAwABAAMAAAAnAAkAAwABAAMAAAAoAAgAAwABAAMAAAAoAAkAAwABAAMAAAApAAgAAwABAAMAAAApAAkAAwABAAMAAAAqAAgAAwABAAMAAAAqAAkAAwABAAMAAAAqAAoAAwABAAMAAAArAAgAAwABAAMAAAArAAkAAwABAAMAAAArAAoAAwABAAMAAAAsAAgAAwABAAMAAAAsAAkAAwABAAMAAAAsAAoAAwABAAMAAAAtAAgAAwABAAMAAAAtAAkAAwABAAMAAAAtAAoA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AAUAAwABAAMAAAAtAAYAAwABAAMAAAAtAAcAAwABAAMAAAAtAAUAAwABAAMAAAAtAAMAAwABAAMAAAAtAAIAAwABAAMAAAAsAAIAAwABAAMAAAAsAAEAAwABAAMAAAArAAEAAwABAAMAAAArAAAAAwABAAMAAAAqAAAAAwABAAMAAAArAP//AwABAAMAAAAtAPz/AwABAAMAAAAtAP3/AwABAAMAAAAsAP3/AwABAAMAAAAsAP7/AwABAAMAAAAsAP//AwABAAMAAAAsAAAAAwABAAMAAAAtAAEAAwABAAMAAAAtAAAAAwABAAMAAAAtAP//AwABAAMAAAAtAP7/AwABAAMAAAA=")
@ -265,26 +40,18 @@ tile_set = ExtResource("2_68wnv")
script = ExtResource("4_vc41k")
level = 1
[node name="Level2" type="TileMapLayer" parent="Node2D"]
[node name="Level2" type="TileMapLayer" parent="."]
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="Node2D/Level2"]
[node name="BuildingLevel2" type="TileMapLayer" parent="Level2"]
y_sort_enabled = true
tile_map_data = PackedByteArray("AAAmAAQABQAAAAEAAAAqAAQABQAAAAAAAAApAAAABgABAAAAAAApAPz/BgAAAAEAAAAhAAMABQAAAAAAAAAiAAEABgAAAAAAAAA=")
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)])
tree_spots = Array[Vector2i]([Vector2i(34, 1), Vector2i(41, 0), Vector2i(41, -4)])
rock_spots = Array[Vector2i]([Vector2i(33, 3), Vector2i(38, 4), Vector2i(42, 4)])
[node name="UILevel2" type="TileMapLayer" parent="Node2D/Level2"]
y_sort_enabled = true
tile_set = ExtResource("2_68wnv")
script = ExtResource("9_8qp2o")
[node name="WaterLevel2" type="TileMapLayer" parent="Node2D/Level2"]
[node name="WaterLevel2" type="TileMapLayer" parent="Level2"]
visible = false
y_sort_enabled = true
tile_map_data = PackedByteArray("AAAjAAUAAwABAAMAAAAjAAYAAwABAAMAAAAjAAcAAwABAAMAAAAjAAgAAwABAAMAAAAjAAkAAwABAAMAAAAkAAUAAwABAAMAAAAkAAYAAwABAAMAAAAkAAcAAwABAAMAAAAkAAgAAwABAAMAAAAkAAkAAwABAAMAAAAlAAUAAwABAAMAAAAlAAYAAwABAAMAAAAlAAcAAwABAAMAAAAlAAgAAwABAAMAAAAlAAkAAwABAAMAAAAmAAUAAwABAAMAAAAmAAYAAwABAAMAAAAmAAcAAwABAAMAAAAmAAgAAwABAAMAAAAmAAkAAwABAAMAAAAnAAUAAwABAAMAAAAnAAYAAwABAAMAAAAnAAcAAwABAAMAAAAnAAgAAwABAAMAAAAoAAUAAwABAAMAAAAoAAYAAwABAAMAAAAoAAcAAwABAAMAAAAoAAgAAwABAAMAAAAoAAkAAwABAAMAAAApAAUAAwABAAMAAAApAAYAAwABAAMAAAApAAcAAwABAAMAAAApAAgAAwABAAMAAAApAAkAAwABAAMAAAAqAAUAAwABAAMAAAAqAAYAAwABAAMAAAAqAAcAAwABAAMAAAAqAAgAAwABAAMAAAAqAAkAAwABAAMAAAArAAUAAwABAAMAAAArAAYAAwABAAMAAAArAAcAAwABAAMAAAArAAgAAwABAAMAAAArAAkAAwABAAMAAAAsAP3/AwABAAMAAAAsAP7/AwAB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AAkAAwABAAMAAAAhAAMAAwABAAMAAAAhAAQAAwABAAMAAAAiAAEAAwABAAMAAAAiAAIAAwABAAMAAAAiAAMAAwABAAMAAAAiAAQAAwABAAMAAAAjAAIAAwABAAMAAAAjAAMAAwABAAMAAAAjAAQAAwABAAMAAAAkAAIAAwABAAMAAAAkAAMAAwABAAMAAAAkAAQAAwABAAMAAAAlAAMAAwABAAMAAAAmAAMAAwABAAMAAAAnAAMAAwABAAMAAAAoAAMAAwABAAMAAAAnAAQAAwABAAMAAAAoAAQAAwABAAMAAAAmAAQAAwABAAMAAAAlAAQAAwABAAMAAAAoAAEAAwABAAMAAAAoAAIAAwABAAMAAAApAAIAAwABAAMAAAApAAMAAwABAAMAAAApAAQAAwABAAMAAAAqAAQAAwABAAMAAAAqAAMAAwABAAMAAAAqAAIAAwABAAMAAAArAAIAAwABAAMAAAArAAMAAwABAAMAAAArAAQAAwABAAMAAAApAAEAAwABAAMAAAApAAAAAwABAAMAAAApAP//AwABAAMAAAAqAP//AwABAAMAAAAqAP7/AwABAAMAAAArAP7/AwABAAMAAAArAP3/AwABAAMAAAAqAP3/AwABAAMAAAApAPv/AwABAAMAAAApAPz/AwABAAMAAAAqAPz/AwABAAMAAAArAPz/AwABAAMAAAArAPv/AwABAAMAAAAqAPv/AwABAAMAAAArAP//AwABAAMAAAArAAAAAwABAAMAAAArAAEAAwABAAMAAAAqAAEAAwABAAMAAAAqAAAAAwABAAMAAAA=")
@ -292,26 +59,18 @@ tile_set = ExtResource("2_68wnv")
script = ExtResource("4_vc41k")
level = 2
[node name="Level3" type="TileMapLayer" parent="Node2D"]
[node name="Level3" type="TileMapLayer" parent="."]
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="Node2D/Level3"]
[node name="BuildingLevel3" type="TileMapLayer" parent="Level3"]
y_sort_enabled = true
tile_map_data = PackedByteArray("AAAnAPr/BgABAAEAAAAmAPv/BgACAAAAAAAnAPv/BgAAAAAAAAAkAPz/BgAAAAEAAAAlAAAABgACAAEAAAAnAP//BQABAAAAAAAlAAEABQABAAEAAAA=")
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)])
tree_spots = Array[Vector2i]([Vector2i(37, 0), Vector2i(36, -4), Vector2i(38, -5), Vector2i(39, -5), Vector2i(39, -6)])
rock_spots = Array[Vector2i]([Vector2i(37, 1), Vector2i(39, -1)])
[node name="UILevel3" type="TileMapLayer" parent="Node2D/Level3"]
y_sort_enabled = true
tile_set = ExtResource("2_68wnv")
script = ExtResource("9_8qp2o")
[node name="WaterLevel3" type="TileMapLayer" parent="Node2D/Level3"]
[node name="WaterLevel3" type="TileMapLayer" parent="Level3"]
visible = false
y_sort_enabled = true
tile_map_data = PackedByteArray("AAAjAAUAAwABAAMAAAAjAAYAAwABAAMAAAAjAAcAAwABAAMAAAAjAAgAAwABAAMAAAAkAAUAAwABAAMAAAAkAAYAAwABAAMAAAAkAAcAAwABAAMAAAAkAAgAAwABAAMAAAAlAAUAAwABAAMAAAAlAAYAAwABAAMAAAAlAAcAAwABAAMAAAAlAAgAAwABAAMAAAAmAAUAAwABAAMAAAAmAAYAAwABAAMAAAAmAAcAAwABAAMAAAAmAAgAAwABAAMAAAAnAAUAAwABAAMAAAAnAAYAAwABAAMAAAAnAAcAAwABAAMAAAAnAAgAAwABAAMAAAAoAAUAAwABAAMAAAAoAAYAAwABAAMAAAAoAAcAAwABAAMAAAAoAAgAAwABAAMAAAApAAUAAwABAAMAAAApAAYAAwABAAMAAAApAAcAAwABAAMAAAApAAgAAwABAAMAAAAqAAUAAwABAAMAAAAqAAYAAwABAAMAAAAqAAcAAwABAAMAAAAqAAgAAwABAAMAAAArAP3/AwABAAMAAAArAP7/AwABAAMAAAArAP//AwABAAMAAAArAAAAAwABAAMAAAArAAEAAwABAAMAAAArAAIAAwABAAMAAAArAAMAAwABAAMAAAArAAQAAwABAAMAAAArAAUAAwABAAMAAAArAAYAAwABAAMAAAArAAcAAwABAAMAAAArAAgAAwABAAMAAAAsAP3/AwABAAMAAAAsAP7/AwABAAMAAAAsAP//AwABAAMAAAAsAAAAAwABAAMAAAAsAAEAAwABAAMAAAAsAAIAAwABAAMAAAAsAAMAAwABAAMAAAAsAAQAAwABAAMAAAAsAAUAAwABAA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AAwABAAMAAAAkAAIAAwABAAMAAAAlAAIAAwABAAMAAAAmAAIAAwABAAMAAAAmAAEAAwABAAMAAAAlAAEAAwABAAMAAAAmAAAAAwABAAMAAAAlAAAAAwABAAMAAAAmAP//AwABAAMAAAAmAP7/AwABAAMAAAAlAP7/AwABAAMAAAAlAP3/AwABAAMAAAAkAP3/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=")
@ -319,25 +78,18 @@ tile_set = ExtResource("2_68wnv")
script = ExtResource("4_vc41k")
level = 3
[node name="Level4" type="TileMapLayer" parent="Node2D"]
[node name="Level4" type="TileMapLayer" parent="."]
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="Node2D/Level4"]
[node name="BuildingLevel4" type="TileMapLayer" parent="Level4"]
y_sort_enabled = true
tile_map_data = PackedByteArray("AAAfAP3/BQACAAAAAAAlAPn/BQACAAEAAAAjAP7/BQACAAEAAAAfAAAABQACAAEAAAAhAPz/BQACAAAAAAA=")
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)])
rock_spots = Array[Vector2i]([Vector2i(31, 0), Vector2i(31, -3), Vector2i(33, -4), Vector2i(35, -2), Vector2i(37, -7)])
[node name="UILevel4" type="TileMapLayer" parent="Node2D/Level4"]
y_sort_enabled = true
tile_set = ExtResource("2_68wnv")
script = ExtResource("9_8qp2o")
[node name="WaterLevel4" type="TileMapLayer" parent="Node2D/Level4"]
[node name="WaterLevel4" type="TileMapLayer" parent="Level4"]
visible = false
y_sort_enabled = true
tile_map_data = PackedByteArray("AAAjAAIAAwABAAMAAAAjAAMAAwABAAMAAAAjAAQAAwABAAMAAAAjAAUAAwABAAMAAAAjAAYAAwABAAMAAAAjAAcAAwABAAMAAAAkAAIAAwABAAMAAAAkAAMAAwABAAMAAAAkAAQAAwABAAMAAAAkAAUAAwABAAMAAAAkAAYAAwABAAMAAAAkAAcAAwABAAMAAAAlAAIAAwABAAMAAAAlAAMAAwABAAMAAAAlAAQAAwABAAMAAAAlAAUAAwABAAMAAAAlAAYAAwABAAMAAAAlAAcAAwABAAMAAAAmAAIAAwABAAMAAAAmAAMAAwABAAMAAAAmAAQAAwABAAMAAAAmAAUAAwABAAMAAAAmAAYAAwABAAMAAAAmAAcAAwABAAMAAAAnAAIAAwABAAMAAAAnAAMAAwABAAMAAAAnAAQAAwABAAMAAAAnAAUAAwABAAMAAAAnAAYAAwABAAMAAAAnAAcAAwABAAMAAAAoAP3/AwABAAMAAAAoAP7/AwABAAMAAAAoAP//AwABAAMAAAAoAAAAAwABAAMAAAAoAAEAAwABAAMAAAAoAAIAAwABAAMAAAAoAAMAAwABAAMAAAAoAAQAAwABAAMAAAAoAAUAAwABAAMAAAAoAAYAAwABAAMAAAAoAAcAAwABAAMAAAApAP3/AwABAAMAAAApAP7/AwABAAMAAAApAP//AwABAAMAAAApAAAAAwABAAMAAAApAAEAAwABAAMAAAApAAIAAwABAAMAAAApAAMAAwABAAMAAAApAAQAAwABAAMAAAApAAUAAwABAAMAAAApAAYAAwABAAMAAAApAAcAAwABAAMAAAAqAP3/AwABAAMAAAAqAP7/AwABAAMAAAAqAP//AwABAAMAAAAqAAAAAwABAAMAAAAqAAEAAwABAAMAAAAqAAIAAwABAAMAAAAqAAMAAwABAAMAAAAqAAQAAwABAAMAAAAqAAUAAwABAAMAAAAqAAYAAwABAAMAAAAqAAcAAwABAAMAAAArAP3/AwABAAMAAAArAP7/AwABAAMAAAArAP//AwABAAMAAAArAAAAAwABAA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AlAPz/AwABAAMAAAAkAPz/AwABAAMAAAAkAPv/AwABAAMAAAAlAPr/AwABAAMAAAAmAPr/AwABAAMAAAAmAPv/AwABAAMAAAAmAPz/AwABAAMAAAAlAPv/AwABAAMAAAA=")
@ -345,25 +97,18 @@ tile_set = ExtResource("2_68wnv")
script = ExtResource("4_vc41k")
level = 4
[node name="Level5" type="TileMapLayer" parent="Node2D"]
[node name="Level5" type="TileMapLayer" parent="."]
y_sort_enabled = true
tile_map_data = PackedByteArray("AAAeAPj/AwALAAEAAAAeAPn/AwALAAEAAAAfAPj/AwALAAEAAAA=")
tile_set = ExtResource("2_68wnv")
[node name="BuildingLevel5" type="TileMapLayer" parent="Node2D/Level5"]
[node name="BuildingLevel5" type="TileMapLayer" parent="Level5"]
y_sort_enabled = true
tile_map_data = PackedByteArray("AAAgAPj/BQAEAAAAAAAfAPn/BQAEAAEAAAA=")
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)])
rock_spots = Array[Vector2i]([Vector2i(31, -7), Vector2i(32, -8)])
[node name="UILevel5" type="TileMapLayer" parent="Node2D/Level5"]
y_sort_enabled = true
tile_set = ExtResource("2_68wnv")
script = ExtResource("9_8qp2o")
[node name="WaterLevel5" type="TileMapLayer" parent="Node2D/Level5"]
[node name="WaterLevel5" type="TileMapLayer" parent="Level5"]
visible = false
y_sort_enabled = true
tile_map_data = PackedByteArray("AAAjAAIAAwABAAMAAAAjAAMAAwABAAMAAAAjAAQAAwABAAMAAAAjAAUAAwABAAMAAAAjAAYAAwABAAMAAAAkAAIAAwABAAMAAAAkAAMAAwABAAMAAAAkAAQAAwABAAMAAAAkAAUAAwABAAMAAAAkAAYAAwABAAMAAAAlAAIAAwABAAMAAAAlAAMAAwABAAMAAAAlAAQAAwABAAM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AAMAAAAgAPr/AwABAAMAAAA=")
@ -371,261 +116,21 @@ tile_set = ExtResource("2_68wnv")
script = ExtResource("4_vc41k")
level = 5
[node name="Node2D" type="Node2D" parent="Node2D"]
[node name="BuildingLevel6" type="TileMapLayer" parent="Node2D/Node2D"]
[node name="BuildingLevel6" type="TileMapLayer" parent="."]
y_sort_enabled = true
tile_set = ExtResource("2_68wnv")
script = ExtResource("5_3vufn")
building_spots = Array[Vector2i]([Vector2i(29, -8), Vector2i(29, -9), Vector2i(30, -9)])
[node name="UILevel6" type="TileMapLayer" parent="Node2D/Node2D"]
y_sort_enabled = true
tile_set = ExtResource("2_68wnv")
script = ExtResource("9_8qp2o")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
script = ExtResource("10_vm6py")
[node name="AnimationPlayer" type="AnimationPlayer" parent="CanvasLayer"]
root_node = NodePath("../..")
libraries = {
"": SubResource("AnimationLibrary_8mn2x")
}
[node name="UI" type="Control" parent="CanvasLayer"]
custom_minimum_size = Vector2(640, 360)
layout_mode = 3
[node name="UI" parent="CanvasLayer" instance=ExtResource("1_ve2mn")]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
offset_bottom = 0.0
grow_vertical = 2
theme = ExtResource("1_xbn5h")
[node name="Background" type="NinePatchRect" parent="CanvasLayer/UI"]
self_modulate = Color(0.67451, 0.67451, 0.67451, 0)
custom_minimum_size = Vector2(86.39, 22.095)
layout_mode = 2
offset_left = 7.0
offset_top = 3.0
offset_right = 639.0
offset_bottom = 25.095
size_flags_vertical = 0
texture = ExtResource("11_psgyr")
region_rect = Rect2(-0.458088, -0.349636, 186.046, 47.2991)
[node name="EssenceIcon" type="TextureRect" parent="CanvasLayer/UI/Background"]
visible = false
layout_mode = 0
offset_left = 120.0
offset_right = 144.0
offset_bottom = 24.0
texture = ExtResource("12_2i27n")
expand_mode = 2
[node name="EssenceCountLabel" type="Label" parent="CanvasLayer/UI/Background"]
visible = false
layout_mode = 2
offset_left = 110.0
offset_right = 165.0
offset_bottom = 24.0
theme_override_colors/font_color = Color(1, 1, 1, 1)
text = "000"
horizontal_alignment = 2
vertical_alignment = 1
script = ExtResource("13_fqswr")
key = "essence"
[node name="Control" type="Control" parent="CanvasLayer/UI/Background"]
anchors_preset = 0
offset_top = -28.0
offset_right = 40.0
offset_bottom = 12.0
[node name="WoodIcon" type="TextureRect" parent="CanvasLayer/UI/Background/Control"]
layout_mode = 0
offset_left = 44.0
offset_top = 1.0
offset_right = 60.0
offset_bottom = 17.0
texture = ExtResource("14_dmibc")
expand_mode = 2
[node name="WoodCountLabel" type="Label" parent="CanvasLayer/UI/Background/Control"]
layout_mode = 2
offset_left = 65.0
offset_right = 124.0
offset_bottom = 24.0
theme_override_colors/font_color = Color(0.534989, 0.260301, 0.265325, 1)
theme_override_constants/outline_size = 3
theme_override_font_sizes/font_size = 8
text = "0
"
vertical_alignment = 1
script = ExtResource("13_fqswr")
key = "wood"
[node name="Control2" type="Control" parent="CanvasLayer/UI/Background"]
anchors_preset = 0
offset_top = -28.0
offset_right = 40.0
offset_bottom = 12.0
[node name="StoneIcon" type="TextureRect" parent="CanvasLayer/UI/Background/Control2"]
layout_mode = 0
offset_left = 2.0
offset_top = 2.0
offset_right = 18.0
offset_bottom = 18.0
texture = ExtResource("15_scpqp")
[node name="StoneCountLabel" type="Label" parent="CanvasLayer/UI/Background/Control2"]
layout_mode = 2
offset_left = 23.0
offset_right = 61.0
offset_bottom = 24.0
theme_override_colors/font_color = Color(0.258486, 0.352181, 0.402271, 1)
theme_override_constants/outline_size = 3
theme_override_font_sizes/font_size = 8
text = "0"
vertical_alignment = 1
script = ExtResource("13_fqswr")
key = "stone"
[node name="RightCounters" type="VBoxContainer" parent="CanvasLayer/UI"]
visible = false
layout_direction = 2
layout_mode = 2
offset_left = 527.0
offset_right = 640.0
offset_bottom = 360.0
[node name="RightCounters" type="MarginContainer" parent="CanvasLayer/UI/RightCounters"]
layout_mode = 2
[node name="Background" type="NinePatchRect" parent="CanvasLayer/UI/RightCounters/RightCounters"]
custom_minimum_size = Vector2(113, 24)
layout_mode = 2
texture = ExtResource("11_psgyr")
region_rect = Rect2(1.19859, 0.999939, 182.287, 45.1203)
[node name="PopulationIcon" type="TextureRect" parent="CanvasLayer/UI/RightCounters/RightCounters/Background"]
layout_mode = 0
offset_left = 10.0
offset_right = 34.0
offset_bottom = 24.0
expand_mode = 2
[node name="FloodLevelIcon" type="TextureRect" parent="CanvasLayer/UI/RightCounters/RightCounters/Background"]
layout_mode = 0
offset_left = 65.0
offset_right = 89.0
offset_bottom = 24.0
expand_mode = 2
[node name="PopulationCountLabel" type="Label" parent="CanvasLayer/UI/RightCounters/RightCounters/Background"]
layout_mode = 2
offset_right = 55.0
offset_bottom = 24.0
theme_override_colors/font_color = Color(1, 1, 1, 1)
text = "000"
horizontal_alignment = 2
vertical_alignment = 1
script = ExtResource("13_fqswr")
key = "population"
[node name="FloodLevelCountLabel" type="Label" parent="CanvasLayer/UI/RightCounters/RightCounters/Background"]
layout_mode = 2
offset_left = 55.0
offset_right = 110.0
offset_bottom = 24.0
theme_override_colors/font_color = Color(1, 1, 1, 1)
text = "000"
horizontal_alignment = 2
vertical_alignment = 1
script = ExtResource("13_fqswr")
key = "flood_level"
[node name="InfoWindow" parent="CanvasLayer" instance=ExtResource("7_f4xfy")]
visible = false
pivot_offset = Vector2(114, 128)
[node name="BuildingMenu" parent="CanvasLayer" instance=ExtResource("7_hnxcf")]
[node name="Night" parent="CanvasLayer" instance=ExtResource("13_8fvl0")]
modulate = Color(1, 1, 1, 0)
color = Color(0.121569, 0, 0.25098, 0.392157)
[node name="StartOverlay" type="ColorRect" parent="CanvasLayer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.556863)
[node name="Start" type="Control" parent="CanvasLayer"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_xbn5h")
script = ExtResource("14_3fkxs")
[node name="RichTextLabel" type="RichTextLabel" parent="CanvasLayer/Start"]
self_modulate = Color(0.207843, 0.572549, 0.341176, 1)
clip_contents = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -146.0
offset_top = -31.0
offset_right = 146.0
offset_bottom = 51.0
grow_horizontal = 2
grow_vertical = 2
pivot_offset = Vector2(145, 9)
theme_override_constants/outline_size = 6
theme_override_font_sizes/normal_font_size = 16
bbcode_enabled = true
text = "[center]Floodworks"
[node name="RichTextLabel2" type="RichTextLabel" parent="CanvasLayer/Start"]
self_modulate = Color(0.724643, 0.724643, 0.724642, 1)
clip_contents = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -146.0
offset_top = -1.0
offset_right = 146.0
offset_bottom = 81.0
grow_horizontal = 2
grow_vertical = 2
pivot_offset = Vector2(143, 4)
theme_override_constants/outline_size = 3
theme_override_font_sizes/normal_font_size = 8
bbcode_enabled = true
text = "[center][smallwave]Press Left Click"
custom_effects = [SubResource("RichTextEffect_1jsuj")]
[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

View file

@ -1,18 +0,0 @@
[gd_scene load_steps=3 format=3 uid="uid://vlp1qstcv4no"]
[ext_resource type="Theme" uid="uid://d035h7upxrw3h" path="res://theme.tres" id="1_yw1uq"]
[ext_resource type="Script" path="res://name_icon.gd" id="2_tyt57"]
[node name="NameIcon" type="RichTextLabel"]
z_index = 10
clip_contents = false
offset_left = 280.0
offset_top = 104.0
offset_right = 332.0
offset_bottom = 121.0
pivot_offset = Vector2(25, 4)
theme = ExtResource("1_yw1uq")
theme_override_constants/outline_size = 3
bbcode_enabled = true
text = "[center]Rock"
script = ExtResource("2_tyt57")

View file

@ -1,6 +0,0 @@
[gd_scene format=3 uid="uid://v4qfjewow3cb"]
[node name="Night" type="ColorRect"]
offset_right = 640.0
offset_bottom = 360.0
color = Color(0.121569, 0, 0.25098, 0.690196)

View file

@ -1,24 +1,23 @@
[gd_resource type="TileSet" load_steps=19 format=3 uid="uid://dhy53lakrlutm"]
[gd_resource type="TileSet" load_steps=9 format=3 uid="uid://dhy53lakrlutm"]
[ext_resource type="Texture2D" uid="uid://bvn5lewpp7pmd" path="res://iso_tile.png" id="1_sa4j6"]
[ext_resource type="Texture2D" uid="uid://bsrh0u02bckhy" path="res://iso_building.png" id="2_bubm3"]
[ext_resource type="Texture2D" uid="uid://bdmao1k7ngu2m" path="res://basic_tiles.png" id="3_rchy6"]
[ext_resource type="Texture2D" uid="uid://w1abxk1m0fae" path="res://tiles-v3.png" id="4_p6xw0"]
[ext_resource type="Texture2D" uid="uid://cjfpd778ggjer" path="res://select.png" id="5_s3lj1"]
[ext_resource type="Texture2D" uid="uid://cvn1fg4v6kur3" path="res://tilerocks.png" id="6_f8tld"]
[ext_resource type="Texture2D" uid="uid://c43udkovhiiv8" path="res://tiletrees.png" id="7_grd50"]
[ext_resource type="Texture2D" uid="uid://bmxo8xwxghc1k" path="res://tiles_foodwater.png" id="8_tscyy"]
[ext_resource type="Texture2D" uid="uid://cgpbrsl2nlhlr" path="res://tiles_houses.png" id="9_dx80t"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_dxrqb"]
texture = ExtResource("1_sa4j6")
margins = Vector2i(16, 16)
1:1/0 = 0
0:0/0 = 0
0:0/0/texture_origin = Vector2i(0, 4)
[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")
@ -70,83 +69,6 @@ texture = ExtResource("4_p6xw0")
9:3/0/texture_origin = Vector2i(0, 4)
9:3/0/y_sort_origin = 3
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_sneuq"]
texture = ExtResource("5_s3lj1")
0:0/0 = 0
0:0/0/texture_origin = Vector2i(0, 4)
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_l16yl"]
texture = ExtResource("6_f8tld")
0:0/0 = 0
0:0/0/texture_origin = Vector2i(0, 3)
1:0/0 = 0
1:0/0/texture_origin = Vector2i(0, 3)
2:0/0 = 0
2:0/0/texture_origin = Vector2i(0, 3)
2:1/0 = 0
2:1/0/texture_origin = Vector2i(0, 3)
3:1/0 = 0
3:1/0/texture_origin = Vector2i(0, 3)
4:1/0 = 0
4:1/0/texture_origin = Vector2i(0, 3)
1:1/0 = 0
1:1/0/texture_origin = Vector2i(0, 3)
0:1/0 = 0
0:1/0/texture_origin = Vector2i(0, 3)
3:0/0 = 0
3:0/0/texture_origin = Vector2i(0, 3)
4:0/0 = 0
4:0/0/texture_origin = Vector2i(0, 3)
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_ffqbc"]
texture = ExtResource("7_grd50")
2:1/0 = 0
2:1/0/texture_origin = Vector2i(0, 3)
1:1/0 = 0
1:1/0/texture_origin = Vector2i(0, 3)
0:1/0 = 0
0:1/0/texture_origin = Vector2i(0, 3)
0:0/0 = 0
0:0/0/texture_origin = Vector2i(0, 3)
1:0/0 = 0
1:0/0/texture_origin = Vector2i(0, 3)
2:0/0 = 0
2:0/0/texture_origin = Vector2i(0, 3)
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_w46yf"]
texture = ExtResource("8_tscyy")
0:0/0 = 0
0:0/0/texture_origin = Vector2i(0, 4)
0:1/0 = 0
0:1/0/texture_origin = Vector2i(0, 4)
1:1/0 = 0
1:1/0/texture_origin = Vector2i(0, 4)
2:1/0 = 0
2:1/0/texture_origin = Vector2i(0, 4)
3:1/0 = 0
3:1/0/texture_origin = Vector2i(0, 4)
3:0/0 = 0
3:0/0/texture_origin = Vector2i(0, 4)
2:0/0 = 0
2:0/0/texture_origin = Vector2i(0, 4)
1:0/0 = 0
1:0/0/texture_origin = Vector2i(0, 4)
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_7cbry"]
texture = ExtResource("9_dx80t")
0:0/0 = 0
0:0/0/texture_origin = Vector2i(0, 4)
0:1/0 = 0
0:1/0/texture_origin = Vector2i(0, 4)
1:1/0 = 0
1:1/0/texture_origin = Vector2i(0, 4)
2:1/0 = 0
2:1/0/texture_origin = Vector2i(0, 4)
2:0/0 = 0
2:0/0/texture_origin = Vector2i(0, 4)
1:0/0 = 0
1:0/0/texture_origin = Vector2i(0, 4)
[resource]
tile_shape = 1
tile_layout = 5
@ -155,8 +77,3 @@ sources/0 = SubResource("TileSetAtlasSource_dxrqb")
sources/1 = SubResource("TileSetAtlasSource_j7eew")
sources/2 = SubResource("TileSetAtlasSource_w6tof")
sources/3 = SubResource("TileSetAtlasSource_5o051")
sources/4 = SubResource("TileSetAtlasSource_sneuq")
sources/5 = SubResource("TileSetAtlasSource_l16yl")
sources/6 = SubResource("TileSetAtlasSource_ffqbc")
sources/7 = SubResource("TileSetAtlasSource_w46yf")
sources/8 = SubResource("TileSetAtlasSource_7cbry")

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

View file

@ -1,34 +0,0 @@
[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

Binary file not shown.

BIN
cloud.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 B

View file

@ -1,34 +0,0 @@
[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

View file

@ -15,9 +15,8 @@ script = ExtResource("1_nmkwm")
shape = SubResource("RectangleShape2D_4cq27")
[node name="Sprite2D" type="Sprite2D" parent="MouseControl"]
position = Vector2(7, 7)
position = Vector2(10, 10)
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"]

View file

@ -9,17 +9,16 @@ 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():
@ -111,12 +110,6 @@ func _process(delta):
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"):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

View file

@ -1,34 +0,0 @@
[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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

View file

@ -1,24 +0,0 @@
[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

Binary file not shown.

View file

@ -1,24 +0,0 @@
[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

37
main.gd
View file

@ -1,25 +1,12 @@
extends Node2D
@onready var building_levels = [
$Node2D/Level2/BuildingLevel2,
$Node2D/Level3/BuildingLevel3,
$Node2D/Level4/BuildingLevel4,
$Node2D/Level5/BuildingLevel5,
$Node2D/Node2D/BuildingLevel6
$Level2/BuildingLevel2,
$Level3/BuildingLevel3,
$Level4/BuildingLevel4,
$Level5/BuildingLevel5,
$BuildingLevel6
]
@onready var night: ColorRect = $CanvasLayer/Night
var night_tween
func _ready() -> void:
if night_tween:
night_tween.kill()
night_tween = create_tween()
night_tween.set_loops()
night_tween.tween_property(night, "modulate", Color.TRANSPARENT, 5)
night_tween.tween_interval(15)
night_tween.tween_property(night, "modulate", Color.WHITE, 5)
func _process(delta: float) -> void:
if Input.is_action_just_released("lclick"):
@ -27,17 +14,3 @@ func _process(delta: float) -> void:
for build_level in building_levels:
build_level.place_building()
Persister.persist_data("building_mode", false)
var building_mode = Persister.get_value("building_mode")
if Input.is_action_just_pressed("lclick") and not Persister.get_value("drag_mode"):
if building_mode:
for build_level in building_levels:
build_level.place_building()
else:
for build_level in building_levels:
build_level.show_info_building()
Persister.persist_data("building_mode", false)
if Input.is_action_just_pressed("rclick"):
Persister.persist_data("building_mode", false)

View file

@ -1,25 +0,0 @@
extends RichTextLabel
var tween
var selected = true
func _ready() -> void:
scale = Vector2.ZERO
tween = create_tween()
tween.set_ease(Tween.EASE_OUT)
tween.set_trans(Tween.TRANS_BACK)
tween.tween_property(self, "scale", Vector2.ONE, 0.25)
func _deselect() -> void:
selected = false
if tween:
tween.kill()
tween = create_tween()
tween.set_ease(Tween.EASE_OUT)
tween.set_trans(Tween.TRANS_QUAD)
tween.tween_property(self, "scale", Vector2.ZERO, 0.25)
tween.tween_callback(func():
queue_free()
)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 B

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 299 B

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 367 B

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 B

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 B

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 B

After

Width:  |  Height:  |  Size: 401 B

View file

@ -1,8 +1,20 @@
time_to_flood_change: 25
time_to_flood_change: 250
flood_levels[]
0
2
4
5
3
1
0
1
2
4
5
3
1
0
2
4
5
3
1

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 B

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cjfpd778ggjer"
path="res://.godot/imported/select.png-3801f3cc86fbf2d4a07926d2b7ddb766.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://select.png"
dest_files=["res://.godot/imported/select.png-3801f3cc86fbf2d4a07926d2b7ddb766.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

View file

@ -1,29 +0,0 @@
@tool
extends RichTextEffect
class_name SmallWaveEffect
var bbcode = "smallwave"
func _process_custom_fx(char_fx: CharFXTransform) -> bool:
var time = fmod(char_fx.elapsed_time * 8 - char_fx.relative_index + 100, 10)
var local_time = fmod(time, 1)
if time < 1:
char_fx.offset = Vector2(0, -5 * (sin(local_time * PI)))
if time < 3 or time >= 8:
var color_time = local_time
if time >= 1 and time < 3:
color_time += 1
if time >= 2 and time < 3:
color_time += 1
if time >= 0 and time < 3:
color_time += 1
if time >= 9 or time < 3:
color_time += 1
char_fx.color.a = (sin(color_time / 5 * PI)) * 0.3 + 0.7
else:
char_fx.color.a = 0.7
return true

View file

@ -1,5 +0,0 @@
extends Control
func _process(delta: float) -> void:
position = (Vector2(320, 180) - get_global_mouse_position()) / 80

BIN
stone.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 B

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ckbq5ipvom580"
path="res://.godot/imported/stone.png-083619ed9cb60da6213c6ca04d200509.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://stone.png"
dest_files=["res://.godot/imported/stone.png-083619ed9cb60da6213c6ca04d200509.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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cvn1fg4v6kur3"
path="res://.godot/imported/tilerocks.png-063e8153e6858a592ae59551c57b5a24.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://tilerocks.png"
dest_files=["res://.godot/imported/tilerocks.png-063e8153e6858a592ae59551c57b5a24.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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bmxo8xwxghc1k"
path="res://.godot/imported/tiles_foodwater.png-ed3756163c1eca2252bbac5318eafb39.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://tiles_foodwater.png"
dest_files=["res://.godot/imported/tiles_foodwater.png-ed3756163c1eca2252bbac5318eafb39.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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,008 B

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cgpbrsl2nlhlr"
path="res://.godot/imported/tiles_houses.png-a969f38ffe9f5344e3a5b4dd72eb4415.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://tiles_houses.png"
dest_files=["res://.godot/imported/tiles_houses.png-a969f38ffe9f5344e3a5b4dd72eb4415.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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c43udkovhiiv8"
path="res://.godot/imported/tiletrees.png-e78363c62fac99f41ef751447bb5409b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://tiletrees.png"
dest_files=["res://.godot/imported/tiletrees.png-e78363c62fac99f41ef751447bb5409b.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

12
ui.gd
View file

@ -1,12 +0,0 @@
extends CanvasLayer
@onready var animation_player: AnimationPlayer = $AnimationPlayer
func _ready() -> void:
Persister.persist_data("wood", 5)
Persister.persist_data("stone", 5)
func _process(delta: float) -> void:
if Input.is_action_just_pressed("lclick") and not Persister.get_value("game_started"):
Persister.persist_data("game_started", true)
animation_player.play("start")

View file

@ -1,16 +1,13 @@
[gd_scene load_steps=5 format=3 uid="uid://b7o2i7tgirg64"]
[ext_resource type="Script" path="res://ui/building_icon.gd" id="1_6qgij"]
[ext_resource type="Texture2D" uid="uid://clqov5mu3bpaw" path="res://parts/buildings/images/foodprocessing.png" id="2_3vnc8"]
[ext_resource type="Texture2D" uid="uid://c3t66sxwk078m" path="res://parts/buildings/images/essencecompressor.png" id="1_62uie"]
[ext_resource type="PackedScene" uid="uid://dykc1mgg5uopw" path="res://components/Cursor/MouseHandler.tscn" id="3_tf3sl"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0bdxp"]
[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="."]
@ -20,13 +17,13 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -8.0
offset_top = -8.0
offset_right = 8.0
offset_bottom = 8.0
offset_left = -24.0
offset_top = -24.0
offset_right = 24.0
offset_bottom = 24.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_3vnc8")
texture = ExtResource("1_62uie")
[node name="MouseHandler" parent="." instance=ExtResource("3_tf3sl")]
position = Vector2(16, 17)

View file

@ -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.784314)
self_modulate = Color(1, 1, 1, 0.4)
layout_mode = 2
text = "Resources"
[node name="BuildingTab2" parent="HBoxContainer" instance=ExtResource("3_cpcpk")]
self_modulate = Color(1, 1, 1, 0.784314)
self_modulate = Color(1, 1, 1, 0.101961)
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.784314)
self_modulate = Color(1, 1, 1, 0.101961)
layout_mode = 2
key = "utility"
text = "Utility"
width = 38.0
[node name="Buildings" type="TextureRect" parent="."]
self_modulate = Color(1, 1, 1, 0.784314)
self_modulate = Color(1, 1, 1, 0.392157)
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
@ -68,33 +68,29 @@ 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.314316, 0.314316, 0.314316, 1)
color = Color(0.674815, 0.674815, 0.674815, 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.314316, 0.314316, 0.314316, 1)
color = Color(0.674815, 0.674815, 0.674815, 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.314316, 0.314316, 0.314316, 1)
color = Color(0.674815, 0.674815, 0.674815, 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.314316, 0.314316, 0.314316, 1)
color = Color(0.674815, 0.674815, 0.674815, 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"]

View file

@ -28,7 +28,6 @@ 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"
@ -39,5 +38,3 @@ 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"]

View file

@ -3,50 +3,52 @@
[ext_resource type="Theme" uid="uid://d035h7upxrw3h" path="res://theme.tres" id="1_fcqle"]
[ext_resource type="Texture2D" uid="uid://cd205j7rs5ph7" path="res://ui/buildingmeny.png" id="1_xpu1e"]
[ext_resource type="Script" path="res://ui/counters.gd" id="2_ei01o"]
[ext_resource type="Texture2D" uid="uid://ckbq5ipvom580" path="res://stone.png" id="3_dnx35"]
[ext_resource type="Texture2D" uid="uid://6bpdb3npejtx" path="res://ui/stone_icon.png" id="2_vo570"]
[ext_resource type="Texture2D" uid="uid://byx0ivnwice1e" path="res://ui/wood_icon.png" id="3_ohuq3"]
[ext_resource type="Texture2D" uid="uid://rtrb5p3o61i4" path="res://ui/essence_icon.png" id="4_7fjj4"]
[ext_resource type="Texture2D" uid="uid://dwm8p1koiqee8" path="res://wood.png" id="4_yvmom"]
[node name="UI" type="Control"]
[node name="UI" type="MarginContainer"]
custom_minimum_size = Vector2(640, 360)
layout_mode = 3
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 360.0
offset_bottom = 44.0
grow_horizontal = 2
theme = ExtResource("1_fcqle")
[node name="Background" type="NinePatchRect" parent="."]
self_modulate = Color(0.67451, 0.67451, 0.67451, 0)
custom_minimum_size = Vector2(86.39, 22.095)
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 2
[node name="LeftCounters" type="HBoxContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Resources" type="MarginContainer" parent="HBoxContainer/LeftCounters"]
layout_mode = 2
[node name="Background" type="NinePatchRect" parent="HBoxContainer/LeftCounters/Resources"]
custom_minimum_size = Vector2(168, 24)
layout_mode = 2
offset_left = 7.0
offset_top = 3.0
offset_right = 639.0
offset_bottom = 25.095
size_flags_vertical = 0
texture = ExtResource("1_xpu1e")
region_rect = Rect2(-0.458088, -0.349636, 186.046, 47.2991)
[node name="StoneIcon" type="TextureRect" parent="Background"]
[node name="StoneIcon" type="TextureRect" parent="HBoxContainer/LeftCounters/Resources/Background"]
layout_mode = 0
offset_left = 2.0
offset_top = 2.0
offset_right = 18.0
offset_bottom = 18.0
texture = ExtResource("3_dnx35")
[node name="WoodIcon" type="TextureRect" parent="Background"]
layout_mode = 0
offset_left = 44.0
offset_top = 1.0
offset_right = 60.0
offset_bottom = 17.0
texture = ExtResource("4_yvmom")
offset_left = 10.0
offset_right = 34.0
offset_bottom = 24.0
texture = ExtResource("2_vo570")
expand_mode = 2
[node name="EssenceIcon" type="TextureRect" parent="Background"]
visible = false
[node name="WoodIcon" type="TextureRect" parent="HBoxContainer/LeftCounters/Resources/Background"]
layout_mode = 0
offset_left = 65.0
offset_right = 89.0
offset_bottom = 24.0
texture = ExtResource("3_ohuq3")
expand_mode = 2
[node name="EssenceIcon" type="TextureRect" parent="HBoxContainer/LeftCounters/Resources/Background"]
layout_mode = 0
offset_left = 120.0
offset_right = 144.0
@ -54,35 +56,30 @@ offset_bottom = 24.0
texture = ExtResource("4_7fjj4")
expand_mode = 2
[node name="StoneCountLabel" type="Label" parent="Background"]
[node name="StoneCountLabel" type="Label" parent="HBoxContainer/LeftCounters/Resources/Background"]
layout_mode = 2
offset_left = 23.0
offset_right = 61.0
offset_right = 55.0
offset_bottom = 24.0
theme_override_colors/font_color = Color(0.258486, 0.352181, 0.402271, 1)
theme_override_constants/outline_size = 3
theme_override_font_sizes/font_size = 8
text = "0"
theme_override_colors/font_color = Color(1, 1, 1, 1)
text = "000"
horizontal_alignment = 2
vertical_alignment = 1
script = ExtResource("2_ei01o")
key = "stone"
[node name="WoodCountLabel" type="Label" parent="Background"]
[node name="WoodCountLabel" type="Label" parent="HBoxContainer/LeftCounters/Resources/Background"]
layout_mode = 2
offset_left = 65.0
offset_right = 124.0
offset_left = 55.0
offset_right = 110.0
offset_bottom = 24.0
theme_override_colors/font_color = Color(0.534989, 0.260301, 0.265325, 1)
theme_override_constants/outline_size = 3
theme_override_font_sizes/font_size = 8
text = "0
"
theme_override_colors/font_color = Color(1, 1, 1, 1)
text = "000"
horizontal_alignment = 2
vertical_alignment = 1
script = ExtResource("2_ei01o")
key = "wood"
[node name="EssenceCountLabel" type="Label" parent="Background"]
visible = false
[node name="EssenceCountLabel" type="Label" parent="HBoxContainer/LeftCounters/Resources/Background"]
layout_mode = 2
offset_left = 110.0
offset_right = 165.0
@ -94,38 +91,34 @@ vertical_alignment = 1
script = ExtResource("2_ei01o")
key = "essence"
[node name="RightCounters" type="VBoxContainer" parent="."]
visible = false
[node name="RightCounters" type="VBoxContainer" parent="HBoxContainer"]
layout_direction = 2
layout_mode = 2
offset_left = 527.0
offset_right = 640.0
offset_bottom = 360.0
[node name="RightCounters" type="MarginContainer" parent="RightCounters"]
[node name="RightCounters" type="MarginContainer" parent="HBoxContainer/RightCounters"]
layout_mode = 2
[node name="Background" type="NinePatchRect" parent="RightCounters/RightCounters"]
[node name="Background" type="NinePatchRect" parent="HBoxContainer/RightCounters/RightCounters"]
custom_minimum_size = Vector2(113, 24)
layout_mode = 2
texture = ExtResource("1_xpu1e")
region_rect = Rect2(1.19859, 0.999939, 182.287, 45.1203)
[node name="PopulationIcon" type="TextureRect" parent="RightCounters/RightCounters/Background"]
[node name="PopulationIcon" type="TextureRect" parent="HBoxContainer/RightCounters/RightCounters/Background"]
layout_mode = 0
offset_left = 10.0
offset_right = 34.0
offset_bottom = 24.0
expand_mode = 2
[node name="FloodLevelIcon" type="TextureRect" parent="RightCounters/RightCounters/Background"]
[node name="FloodLevelIcon" type="TextureRect" parent="HBoxContainer/RightCounters/RightCounters/Background"]
layout_mode = 0
offset_left = 65.0
offset_right = 89.0
offset_bottom = 24.0
expand_mode = 2
[node name="PopulationCountLabel" type="Label" parent="RightCounters/RightCounters/Background"]
[node name="PopulationCountLabel" type="Label" parent="HBoxContainer/RightCounters/RightCounters/Background"]
layout_mode = 2
offset_right = 55.0
offset_bottom = 24.0
@ -136,7 +129,7 @@ vertical_alignment = 1
script = ExtResource("2_ei01o")
key = "population"
[node name="FloodLevelCountLabel" type="Label" parent="RightCounters/RightCounters/Background"]
[node name="FloodLevelCountLabel" type="Label" parent="HBoxContainer/RightCounters/RightCounters/Background"]
layout_mode = 2
offset_left = 55.0
offset_right = 110.0

View file

@ -5,28 +5,14 @@ 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:
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)
pass # Replace with function body.
func _on_mouse_handler_unhovered() -> void:
@ -37,14 +23,6 @@ func _on_mouse_handler_unhovered() -> void:
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:
if clicked:
@ -53,11 +31,3 @@ 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)

View file

@ -35,7 +35,7 @@ func swap_to_tab(index):
else:
tabs[i].unselect()
var filtered_buildings = buildings.filter(func(building): return building_data[building].type == tabs[index].key and (not building_data[building].has("disabled") or not building_data[building].disabled))
var filtered_buildings = buildings.filter(func(building): return building_data[building].type == tabs[index].key)
for i in range(0, icons.size()):
if i < filtered_buildings.size():

View file

@ -9,8 +9,6 @@ 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
@ -23,42 +21,12 @@ 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.784)
self_modulate = Color(1, 1, 1, 0.4)
func unselect():
rich_text_label.self_modulate = Color(1, 1, 1, 0.4)
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)
self_modulate = Color(1, 1, 1, 0.1)

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 469 B

View file

@ -8,4 +8,4 @@ func _ready() -> void:
func _on_value_change(data):
text = str(data.value)
text = data.value

View file

@ -1,13 +0,0 @@
extends TileMapLayer
@onready var building_level = get_parent().get_child(0)
func _process(delta: float) -> void:
var tile = local_to_map(get_global_mouse_position())
var building_mode = Persister.get_value("building_mode")
for spot in building_level.building_spots:
erase_cell(spot)
if not building_mode and building_level.building_spots.has(tile):
set_cell(tile, 4, Vector2i(0, 0), 0)

BIN
wood.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 336 B

View file

@ -1,34 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dwm8p1koiqee8"
path="res://.godot/imported/wood.png-320746db63b5a5eb1bb7f02275994b36.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://wood.png"
dest_files=["res://.godot/imported/wood.png-320746db63b5a5eb1bb7f02275994b36.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