From 8e51760ec34f636a4b11096f13336ade5b65d1a7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 26 Apr 2024 01:27:10 +0200 Subject: [PATCH] Add imp drag animation Co-authored-by: Maxim Lobovsky --- entities/imp.tscn | 76 +++++++++++++++++++++++++++++- entities/imp_drag_left.png | 3 ++ entities/imp_drag_left.png.import | 34 +++++++++++++ entities/imp_drag_right.png | 3 ++ entities/imp_drag_right.png.import | 34 +++++++++++++ entities/imp_left.png | 4 +- entities/imp_right.png | 4 +- 7 files changed, 153 insertions(+), 5 deletions(-) create mode 100644 entities/imp_drag_left.png create mode 100644 entities/imp_drag_left.png.import create mode 100644 entities/imp_drag_right.png create mode 100644 entities/imp_drag_right.png.import diff --git a/entities/imp.tscn b/entities/imp.tscn index 1082f8e..eba279a 100644 --- a/entities/imp.tscn +++ b/entities/imp.tscn @@ -1,11 +1,13 @@ -[gd_scene load_steps=28 format=3 uid="uid://4d3ksr3171x4"] +[gd_scene load_steps=30 format=3 uid="uid://4d3ksr3171x4"] [ext_resource type="Script" path="res://entities/imp.gd" id="1_dixpc"] [ext_resource type="PackedScene" uid="uid://bxbjfev0lhwws" path="res://behaviours/sprite_left_right.tscn" id="2_eqcdi"] [ext_resource type="Texture2D" uid="uid://crhwsob76ieya" path="res://entities/imp_left.png" id="3_qda0k"] [ext_resource type="Texture2D" uid="uid://bubehid53q8h1" path="res://entities/imp_right.png" id="4_0sckn"] [ext_resource type="PackedScene" uid="uid://tx1qi6ahlxjp" path="res://behaviours/spawner.tscn" id="4_d8lgm"] +[ext_resource type="Texture2D" uid="uid://rxtd1rakhj" path="res://entities/imp_drag_left.png" id="5_fpj27"] [ext_resource type="PackedScene" uid="uid://uoxwjpmgg27a" path="res://entities/gold.tscn" id="5_yrfoq"] +[ext_resource type="Texture2D" uid="uid://dudq4p8owrpsa" path="res://entities/imp_drag_right.png" id="6_1cw6p"] [ext_resource type="PackedScene" uid="uid://djcwis8ycrq85" path="res://behaviours/sampler_priority.tscn" id="7_ech8d"] [ext_resource type="PackedScene" uid="uid://dk1ipq7dhkhf3" path="res://behaviours/move_straight.tscn" id="8_ffcw0"] [ext_resource type="PackedScene" uid="uid://cm67ko1k6kn4u" path="res://behaviours/priority.tscn" id="9_2wb1b"] @@ -61,6 +63,30 @@ tracks/2/keys = { "update": 0, "values": [Vector2(0, 0)] } +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("Sprite:left_texture") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("3_qda0k")] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("Sprite:right_texture") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("4_0sckn")] +} [sub_resource type="Animation" id="Animation_5yt72"] resource_name = "drag_loop" @@ -101,6 +127,30 @@ tracks/2/keys = { "update": 0, "values": [Vector2(-2, -2), Vector2(1, -1), Vector2(-1, 1), Vector2(1, 1), Vector2(-2, 0), Vector2(1, 1), Vector2(1, -1), Vector2(-1, 1), Vector2(2, 0), Vector2(-1, -1), Vector2(0, 0)] } +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("Sprite:left_texture") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("5_fpj27")] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("Sprite:right_texture") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("6_1cw6p")] +} [sub_resource type="Animation" id="Animation_2igbw"] resource_name = "drag_start" @@ -129,6 +179,30 @@ tracks/1/keys = { "update": 0, "values": [0.0] } +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("Sprite:left_texture") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("5_fpj27")] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("Sprite:right_texture") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("6_1cw6p")] +} [sub_resource type="AnimationLibrary" id="AnimationLibrary_d6oim"] _data = { diff --git a/entities/imp_drag_left.png b/entities/imp_drag_left.png new file mode 100644 index 0000000..9d59793 --- /dev/null +++ b/entities/imp_drag_left.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d6a1ea0d96f8530740e7b91bbea55c1a7a44fedce3c9b98a79006bda57da8ce +size 1017 diff --git a/entities/imp_drag_left.png.import b/entities/imp_drag_left.png.import new file mode 100644 index 0000000..bd49d31 --- /dev/null +++ b/entities/imp_drag_left.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://rxtd1rakhj" +path="res://.godot/imported/imp_drag_left.png-bb26bcd004fb442c3e6c4f5da90a6774.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://entities/imp_drag_left.png" +dest_files=["res://.godot/imported/imp_drag_left.png-bb26bcd004fb442c3e6c4f5da90a6774.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/entities/imp_drag_right.png b/entities/imp_drag_right.png new file mode 100644 index 0000000..3166b42 --- /dev/null +++ b/entities/imp_drag_right.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74840aa8e9e27142a245780434b3b522a7b624a977f8c3633241b939ecd84ba1 +size 1031 diff --git a/entities/imp_drag_right.png.import b/entities/imp_drag_right.png.import new file mode 100644 index 0000000..6e6e2bf --- /dev/null +++ b/entities/imp_drag_right.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dudq4p8owrpsa" +path="res://.godot/imported/imp_drag_right.png-78914d42eb50194f01bb5260075ae84c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://entities/imp_drag_right.png" +dest_files=["res://.godot/imported/imp_drag_right.png-78914d42eb50194f01bb5260075ae84c.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/entities/imp_left.png b/entities/imp_left.png index 621d4fa..64902e3 100644 --- a/entities/imp_left.png +++ b/entities/imp_left.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7dfcf56434a18004abf18ec8ea78a04625e046454ea0ac1577b1a4b2c89b42e8 -size 549 +oid sha256:0f6f009f1ead8c2b21eccf6fc34ddb6da40c6fc55b347b5ff679f1b18a878586 +size 1020 diff --git a/entities/imp_right.png b/entities/imp_right.png index a0fea88..0d148dd 100644 --- a/entities/imp_right.png +++ b/entities/imp_right.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6dbe77e6dc816a416216dc8220fb3368855ee6ad0c6099ff91109f40a80cb585 -size 577 +oid sha256:9497b7cfffb0829115cb08901f187e2bc1664a36ede9ad5205aba3243f351dfe +size 1046