diff --git a/scenes/game_elements/props/buildings/inn/components/inn.aseprite b/scenes/game_elements/props/buildings/inn/components/inn.aseprite new file mode 100644 index 0000000000..c4f8924b3b --- /dev/null +++ b/scenes/game_elements/props/buildings/inn/components/inn.aseprite @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e08886360c6f0c2641eb369c11d34c7e8a86dc428cf4653cb7e4d7934cb293b1 +size 14017 diff --git a/scenes/game_elements/props/buildings/inn/components/inn.png b/scenes/game_elements/props/buildings/inn/components/inn.png new file mode 100644 index 0000000000..14bd39351d --- /dev/null +++ b/scenes/game_elements/props/buildings/inn/components/inn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:222e876c65224d2293719d16e46b0167582e6957853e9da29e6c101431ea11db +size 10706 diff --git a/scenes/game_elements/props/buildings/inn/components/inn.png.import b/scenes/game_elements/props/buildings/inn/components/inn.png.import new file mode 100644 index 0000000000..3f4021a05a --- /dev/null +++ b/scenes/game_elements/props/buildings/inn/components/inn.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://djpqmeu1t8pxk" +path="res://.godot/imported/inn.png-4c039c6bdfe40e5e37a30dad40e2d9bc.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://scenes/game_elements/props/buildings/inn/components/inn.png" +dest_files=["res://.godot/imported/inn.png-4c039c6bdfe40e5e37a30dad40e2d9bc.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +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/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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/scenes/game_elements/props/buildings/inn/inn.tscn b/scenes/game_elements/props/buildings/inn/inn.tscn new file mode 100644 index 0000000000..11e7564844 --- /dev/null +++ b/scenes/game_elements/props/buildings/inn/inn.tscn @@ -0,0 +1,61 @@ +[gd_scene format=3 uid="uid://cqtrjqk6xxx84"] + +[ext_resource type="Texture2D" uid="uid://djpqmeu1t8pxk" path="res://scenes/game_elements/props/buildings/inn/components/inn.png" id="1_f08qg"] +[ext_resource type="Texture2D" uid="uid://b5ooaiyxdrp6a" path="res://scenes/game_elements/components/light_texture_256x256.tres" id="2_thw4m"] +[ext_resource type="Script" uid="uid://bk52qjv58locq" path="res://scenes/game_logic/light2d_behaviors/artificial_light_behavior.gd" id="3_6v01s"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_f08qg"] +size = Vector2(102, 54) + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_mkj5x"] +size = Vector2(54, 42) + +[node name="Inn" type="Node2D" unique_id=1528729065] + +[node name="Sprite2D" type="Sprite2D" parent="." unique_id=880549347] +position = Vector2(0, -71) +texture = ExtResource("1_f08qg") + +[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=1966422159] +collision_layer = 16 +collision_mask = 0 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1898797309] +position = Vector2(0, -25) +shape = SubResource("RectangleShape2D_f08qg") + +[node name="CollisionShape2D2" type="CollisionShape2D" parent="StaticBody2D" unique_id=1951487947] +position = Vector2(78, -31) +shape = SubResource("RectangleShape2D_mkj5x") + +[node name="PointLight2D" type="PointLight2D" parent="." unique_id=2118406319 groups=["night-lights"]] +visibility_layer = 2 +position = Vector2(82, -32) +scale = Vector2(0.384, 0.384) +enabled = false +color = Color(1, 1, 0, 1) +energy = 0.5 +texture = ExtResource("2_thw4m") + +[node name="ArtificialLightBehavior" type="Node" parent="PointLight2D" unique_id=710365563 node_paths=PackedStringArray("light")] +editor_description = "A random delay here adds variation to a stack of houses." +script = ExtResource("3_6v01s") +light = NodePath("..") +random_delay = 3.0 +metadata/_custom_type_script = "uid://bk52qjv58locq" + +[node name="PointLight2D2" type="PointLight2D" parent="." unique_id=1269358253 groups=["night-lights"]] +visibility_layer = 2 +position = Vector2(-71, -26) +scale = Vector2(0.377, 0.377) +enabled = false +color = Color(1, 1, 0, 1) +energy = 0.5 +texture = ExtResource("2_thw4m") + +[node name="ArtificialLightBehavior" type="Node" parent="PointLight2D2" unique_id=2047170713 node_paths=PackedStringArray("light")] +editor_description = "A random delay here adds variation to a stack of houses." +script = ExtResource("3_6v01s") +light = NodePath("..") +random_delay = 3.0 +metadata/_custom_type_script = "uid://bk52qjv58locq"