Skip to content

Commit 0739571

Browse files
authored
Add new Inn building (#2115)
With an asset provided by PixelFrog. Use 2 rectangle shapes for collision. Add 2 artificial lights to this building. Also add the aseprite source file to the revision.
1 parent 43a9adc commit 0739571

4 files changed

Lines changed: 107 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:e08886360c6f0c2641eb369c11d34c7e8a86dc428cf4653cb7e4d7934cb293b1
3+
size 14017
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://djpqmeu1t8pxk"
6+
path="res://.godot/imported/inn.png-4c039c6bdfe40e5e37a30dad40e2d9bc.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://scenes/game_elements/props/buildings/inn/components/inn.png"
14+
dest_files=["res://.godot/imported/inn.png-4c039c6bdfe40e5e37a30dad40e2d9bc.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/uastc_level=0
22+
compress/rdo_quality_loss=0.0
23+
compress/hdr_compression=1
24+
compress/normal_map=0
25+
compress/channel_pack=0
26+
mipmaps/generate=false
27+
mipmaps/limit=-1
28+
roughness/mode=0
29+
roughness/src_normal=""
30+
process/channel_remap/red=0
31+
process/channel_remap/green=1
32+
process/channel_remap/blue=2
33+
process/channel_remap/alpha=3
34+
process/fix_alpha_border=true
35+
process/premult_alpha=false
36+
process/normal_map_invert_y=false
37+
process/hdr_as_srgb=false
38+
process/hdr_clamp_exposure=false
39+
process/size_limit=0
40+
detect_3d/compress_to=1
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
[gd_scene format=3 uid="uid://cqtrjqk6xxx84"]
2+
3+
[ext_resource type="Texture2D" uid="uid://djpqmeu1t8pxk" path="res://scenes/game_elements/props/buildings/inn/components/inn.png" id="1_f08qg"]
4+
[ext_resource type="Texture2D" uid="uid://b5ooaiyxdrp6a" path="res://scenes/game_elements/components/light_texture_256x256.tres" id="2_thw4m"]
5+
[ext_resource type="Script" uid="uid://bk52qjv58locq" path="res://scenes/game_logic/light2d_behaviors/artificial_light_behavior.gd" id="3_6v01s"]
6+
7+
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f08qg"]
8+
size = Vector2(102, 54)
9+
10+
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mkj5x"]
11+
size = Vector2(54, 42)
12+
13+
[node name="Inn" type="Node2D" unique_id=1528729065]
14+
15+
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=880549347]
16+
position = Vector2(0, -71)
17+
texture = ExtResource("1_f08qg")
18+
19+
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=1966422159]
20+
collision_layer = 16
21+
collision_mask = 0
22+
23+
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1898797309]
24+
position = Vector2(0, -25)
25+
shape = SubResource("RectangleShape2D_f08qg")
26+
27+
[node name="CollisionShape2D2" type="CollisionShape2D" parent="StaticBody2D" unique_id=1951487947]
28+
position = Vector2(78, -31)
29+
shape = SubResource("RectangleShape2D_mkj5x")
30+
31+
[node name="PointLight2D" type="PointLight2D" parent="." unique_id=2118406319 groups=["night-lights"]]
32+
visibility_layer = 2
33+
position = Vector2(82, -32)
34+
scale = Vector2(0.384, 0.384)
35+
enabled = false
36+
color = Color(1, 1, 0, 1)
37+
energy = 0.5
38+
texture = ExtResource("2_thw4m")
39+
40+
[node name="ArtificialLightBehavior" type="Node" parent="PointLight2D" unique_id=710365563 node_paths=PackedStringArray("light")]
41+
editor_description = "A random delay here adds variation to a stack of houses."
42+
script = ExtResource("3_6v01s")
43+
light = NodePath("..")
44+
random_delay = 3.0
45+
metadata/_custom_type_script = "uid://bk52qjv58locq"
46+
47+
[node name="PointLight2D2" type="PointLight2D" parent="." unique_id=1269358253 groups=["night-lights"]]
48+
visibility_layer = 2
49+
position = Vector2(-71, -26)
50+
scale = Vector2(0.377, 0.377)
51+
enabled = false
52+
color = Color(1, 1, 0, 1)
53+
energy = 0.5
54+
texture = ExtResource("2_thw4m")
55+
56+
[node name="ArtificialLightBehavior" type="Node" parent="PointLight2D2" unique_id=2047170713 node_paths=PackedStringArray("light")]
57+
editor_description = "A random delay here adds variation to a stack of houses."
58+
script = ExtResource("3_6v01s")
59+
light = NodePath("..")
60+
random_delay = 3.0
61+
metadata/_custom_type_script = "uid://bk52qjv58locq"

0 commit comments

Comments
 (0)