Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / shell / Shell0001.tscn
@lijincheng lijincheng on 7 Jun 2023 1 KB 初始化武器数据
[gd_scene load_steps=7 format=3 uid="uid://bj4yr6ru8nhwr"]

[ext_resource type="Script" path="res://src/game/activity/shell/Shell.cs" id="1_ph0ad"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="2_k705i"]
[ext_resource type="Texture2D" uid="uid://dto03bc2qbhnj" path="res://resource/sprite/shell/shellCase.png" id="3_0fth1"]


[sub_resource type="ShaderMaterial" id="ShaderMaterial_px12l"]
resource_local_to_scene = true
shader = ExtResource("2_k705i")
shader_parameter/blend = Color(0, 0, 0, 0.470588)
shader_parameter/schedule = 1

[sub_resource type="ShaderMaterial" id="ShaderMaterial_7e6fo"]
resource_local_to_scene = true
shader = ExtResource("2_k705i")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0

[sub_resource type="SpriteFrames" id="SpriteFrames_4huvy"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_0fth1")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[node name="Shell0001" type="CharacterBody2D" node_paths=PackedStringArray("ShadowSprite", "AnimatedSprite", "Collision")]
script = ExtResource("1_ph0ad")
ShadowSprite = NodePath("ShadowSprite")
AnimatedSprite = NodePath("AnimatedSprite")
Collision = NodePath("Collision")

[node name="ShadowSprite" type="Sprite2D" parent="."]
z_index = -1
material = SubResource("ShaderMaterial_px12l")

[node name="AnimatedSprite" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_7e6fo")
sprite_frames = SubResource("SpriteFrames_4huvy")

[node name="Collision" type="CollisionShape2D" parent="."]