katana scene
This commit is contained in:
1
growth/CardInjects/Katana/katana.gd
Normal file
1
growth/CardInjects/Katana/katana.gd
Normal file
@@ -0,0 +1 @@
|
||||
extends Node2D
|
||||
1
growth/CardInjects/Katana/katana.gd.uid
Normal file
1
growth/CardInjects/Katana/katana.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://ba40wm75ry2oh
|
||||
91
growth/CardInjects/Katana/katana.tscn
Normal file
91
growth/CardInjects/Katana/katana.tscn
Normal file
@@ -0,0 +1,91 @@
|
||||
[gd_scene load_steps=15 format=3 uid="uid://415yw4i180tb"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ba40wm75ry2oh" path="res://CardInjects/Katana/katana.gd" id="1_1dbc3"]
|
||||
[ext_resource type="Texture2D" uid="uid://n676fc0oqssw" path="res://assets/animations/Katana_slash_1/Slash 1.png" id="2_b0k4l"]
|
||||
[ext_resource type="Texture2D" uid="uid://brrakxqc40cx3" path="res://assets/animations/Katana_slash_1/Slash 2.png" id="3_rqa0t"]
|
||||
[ext_resource type="Texture2D" uid="uid://0tivfj0mlwu4" path="res://assets/animations/Katana_slash_1/Slash 3.png" id="4_vyhi5"]
|
||||
[ext_resource type="Texture2D" uid="uid://scrlfav4vsq0" path="res://assets/animations/Katana_slash_1/Slash 4.png" id="5_4klwf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsrrmga720ml" path="res://assets/animations/Katana_slash_1/Slash 5.png" id="6_he2lf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bw1pmpji38len" path="res://assets/animations/Katana_slash_1/Slash 6.png" id="7_0vlic"]
|
||||
[ext_resource type="Texture2D" uid="uid://b71m60416ssrh" path="res://assets/animations/Katana_slash_1/Slash 7.png" id="8_sj3so"]
|
||||
[ext_resource type="Texture2D" uid="uid://b3wk8akdefirx" path="res://assets/animations/Katana_slash_1/Slash 8.png" id="9_kuojl"]
|
||||
[ext_resource type="Texture2D" uid="uid://b0ah2jqrw5g8m" path="res://assets/animations/Katana_slash_1/Slash 10.png" id="10_fakx8"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_b0k4l"]
|
||||
resource_name = "katana_slash"
|
||||
tracks/0/type = "method"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0.33333334),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
"method": &"queue_free"
|
||||
}]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rqa0t"]
|
||||
_data = {
|
||||
&"katana_slash": SubResource("Animation_b0k4l")
|
||||
}
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_wdw6g"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_b0k4l")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_rqa0t")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_vyhi5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_4klwf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_he2lf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_0vlic")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_sj3so")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_kuojl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_fakx8")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"default",
|
||||
"speed": 30.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b0k4l"]
|
||||
size = Vector2(158.5, 355.5)
|
||||
|
||||
[node name="Katana" type="Node2D"]
|
||||
script = ExtResource("1_1dbc3")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_rqa0t")
|
||||
}
|
||||
autoplay = "katana_slash"
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_wdw6g")
|
||||
autoplay = "default"
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(1, 1)
|
||||
shape = SubResource("RectangleShape2D_b0k4l")
|
||||
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://co8jnr2dew5ts"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://co8jnr2dew5ts"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bykc0ufv25ij5" path="res://hand.gd" id="1_u4p2i"]
|
||||
[ext_resource type="PackedScene" uid="uid://cmuig2rqt65f3" path="res://Cards/CursorGunCard.tscn" id="2_bfasp"]
|
||||
[ext_resource type="PackedScene" uid="uid://dck7bp1b7553t" path="res://Cards/MineCard.tscn" id="2_e75s6"]
|
||||
|
||||
[node name="Hand" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -37,7 +38,7 @@ grow_vertical = 0
|
||||
[node name="Slot1" type="PanelContainer" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Card" parent="HBoxContainer/Slot1" instance=ExtResource("2_bfasp")]
|
||||
[node name="Card" parent="HBoxContainer/Slot1" instance=ExtResource("2_e75s6")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Slot2" type="PanelContainer" parent="HBoxContainer"]
|
||||
|
||||
Reference in New Issue
Block a user