diff options
| author | Radio <radiohotline@disroot.org> | 2026-06-04 15:15:11 +0300 |
|---|---|---|
| committer | Radio <radiohotline@disroot.org> | 2026-06-04 15:15:11 +0300 |
| commit | 9d74b49ab62908d4acf53dde444413886b8b28e5 (patch) | |
| tree | 0cb785267ea7e239b19d88684c0d64b9bd5d52f0 /game/items | |
| parent | 2c85d452ad02a5f89cd43bad7f9de31d0e4fa0c1 (diff) | |
escoria setup and old branch archives
Diffstat (limited to 'game/items')
| -rw-r--r-- | game/items/escitems/button.tscn | 96 | ||||
| -rw-r--r-- | game/items/inventory/pen.esc | 3 | ||||
| -rw-r--r-- | game/items/inventory/pen.png | bin | 0 -> 310 bytes | |||
| -rw-r--r-- | game/items/inventory/pen.png.import | 40 | ||||
| -rw-r--r-- | game/items/inventory/pen.tscn | 23 | ||||
| -rw-r--r-- | game/items/textures/bottle.png | bin | 0 -> 373 bytes | |||
| -rw-r--r-- | game/items/textures/bottle.png.import | 40 |
7 files changed, 202 insertions, 0 deletions
diff --git a/game/items/escitems/button.tscn b/game/items/escitems/button.tscn new file mode 100644 index 0000000..ae0e27f --- /dev/null +++ b/game/items/escitems/button.tscn @@ -0,0 +1,96 @@ +[gd_scene load_steps=11 format=3 uid="uid://1kxo8k6wdlaq"] + +[ext_resource type="Script" uid="uid://dshelmw7y44qg" path="res://addons/escoria-core/game/core-scripts/esc_item.gd" id="1"] +[ext_resource type="Texture2D" uid="uid://cag2tv2frq5vj" path="res://game/rooms/room03/smoke.png" id="2"] + +[sub_resource type="Gradient" id="1"] +offsets = PackedFloat32Array(0, 0.830189) +colors = PackedColorArray(1, 1, 1, 1, 0.353516, 0.353516, 0.353516, 1) + +[sub_resource type="GradientTexture2D" id="8"] +gradient = SubResource("1") + +[sub_resource type="Curve" id="3"] +_data = [Vector2(0, 0.0886364), 0.0, 0.0, 0, 0, Vector2(0.612766, 1), 0.0, 0.0, 0, 0, Vector2(0.770213, 0.95), -1.55372, -1.55372, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0] +point_count = 4 + +[sub_resource type="CurveTexture" id="9"] +curve = SubResource("3") + +[sub_resource type="ParticleProcessMaterial" id="5"] +lifetime_randomness = 0.2 +emission_shape = 1 +emission_sphere_radius = 1.0 +gravity = Vector3(0, -9.81, 0) +scale_min = 0.0 +scale_max = 0.0 +scale_curve = SubResource("9") +color_ramp = SubResource("8") + +[sub_resource type="Animation" id="6"] +resource_name = "button_broken" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("GPUParticles2D:emitting") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} + +[sub_resource type="Animation" id="7"] +resource_name = "button_repaired" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("GPUParticles2D:emitting") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_frgsd"] +_data = { +&"button_broken": SubResource("6"), +&"button_repaired": SubResource("7") +} + +[node name="button" type="Area2D"] +process_mode = 1 +script = ExtResource("1") +tooltip_name = "Button" +default_action = "use" +combine_when_selected_action_is_in = PackedStringArray() + +[node name="lines" type="Line2D" parent="."] +position = Vector2(0, -266.591) +points = PackedVector2Array(322.305, 390.985, 322.305, 439.068, 368.698, 440.037, 368.974, 392.399, 319.028, 391.549) + +[node name="Polygon2D" type="Polygon2D" parent="lines"] +visible = false +polygon = PackedVector2Array(343.993, 396.767, 323.298, 415.689, 344.585, 438.158, 365.872, 417.463) + +[node name="GPUParticles2D" type="GPUParticles2D" parent="."] +position = Vector2(344.768, 142.144) +amount = 16 +process_material = SubResource("5") +texture = ExtResource("2") +lifetime = 4.0 +preprocess = 1.99 +speed_scale = 1.39 + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_frgsd") +} + +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."] +polygon = PackedVector2Array(319.633, 122.126, 320.427, 177.685, 371.224, 176.098, 372.811, 121.332) diff --git a/game/items/inventory/pen.esc b/game/items/inventory/pen.esc new file mode 100644 index 0000000..0600e03 --- /dev/null +++ b/game/items/inventory/pen.esc @@ -0,0 +1,3 @@ +:pickup + inventory_add("pen") + set_active("pen", false) diff --git a/game/items/inventory/pen.png b/game/items/inventory/pen.png Binary files differnew file mode 100644 index 0000000..0eb86b9 --- /dev/null +++ b/game/items/inventory/pen.png diff --git a/game/items/inventory/pen.png.import b/game/items/inventory/pen.png.import new file mode 100644 index 0000000..8f7190d --- /dev/null +++ b/game/items/inventory/pen.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b2vhviqn3xpsj" +path="res://.godot/imported/pen.png-1935812df4996307422b31a279d1fb31.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://game/items/inventory/pen.png" +dest_files=["res://.godot/imported/pen.png-1935812df4996307422b31a279d1fb31.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/game/items/inventory/pen.tscn b/game/items/inventory/pen.tscn new file mode 100644 index 0000000..cc786f8 --- /dev/null +++ b/game/items/inventory/pen.tscn @@ -0,0 +1,23 @@ +[gd_scene format=3 uid="uid://cgs614ewjs78u"] + +[ext_resource type="Script" uid="uid://dshelmw7y44qg" path="res://addons/escoria-core/game/core-scripts/esc_item.gd" id="1_eo2a0"] +[ext_resource type="Texture2D" uid="uid://b2vhviqn3xpsj" path="res://game/items/inventory/pen.png" id="2_5v6x0"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_xpfx3"] + +[node name="Pen" type="Area2D" unique_id=1638794728] +process_mode = 1 +script = ExtResource("1_eo2a0") +global_id = "pen" +esc_script = "res://game/items/inventory/pen.esc" +combine_when_selected_action_is_in = PackedStringArray() +inventory_texture = ExtResource("2_5v6x0") +inventory_texture_hovered = ExtResource("2_5v6x0") +metadata/_custom_type_script = "uid://dshelmw7y44qg" + +[node name="Sprite2D" type="Sprite2D" parent="." unique_id=26149042] +texture = ExtResource("2_5v6x0") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1729405739] +scale = Vector2(2.962122, 2.962122) +shape = SubResource("RectangleShape2D_xpfx3") diff --git a/game/items/textures/bottle.png b/game/items/textures/bottle.png Binary files differnew file mode 100644 index 0000000..87babdd --- /dev/null +++ b/game/items/textures/bottle.png diff --git a/game/items/textures/bottle.png.import b/game/items/textures/bottle.png.import new file mode 100644 index 0000000..fcb5fbc --- /dev/null +++ b/game/items/textures/bottle.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ddomp71uwr167" +path="res://.godot/imported/bottle.png-83a76946d26b818becdd62da99e8ebe6.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://game/items/textures/bottle.png" +dest_files=["res://.godot/imported/bottle.png-83a76946d26b818becdd62da99e8ebe6.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 |
