Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / role / Role.tscn
[gd_scene load_steps=23 format=2]

[ext_resource path="res://resource/materlal/Blend.tres" type="Material" id=1]
[ext_resource path="res://addons/dungeonShooting_plugin/ActivityObjectTemplate.cs" type="Script" id=2]
[ext_resource path="res://resource/sprite/role/role1.png" type="Texture" id=3]
[ext_resource path="res://src/game/role/MountRotation.cs" type="Script" id=4]
[ext_resource path="res://resource/materlal/Blend.gdshader" type="Shader" id=5]
[ext_resource path="res://addons/dungeonShooting_plugin/ActivityObjectReset.tres" type="Animation" id=6]
[ext_resource path="res://addons/dungeonShooting_plugin/ActivityObjectHit.tres" type="Animation" id=7]

[sub_resource type="ShaderMaterial" id=33]
resource_local_to_scene = true
shader = ExtResource( 5 )
shader_param/blend = Color( 1, 1, 1, 1 )
shader_param/schedule = 0.0

[sub_resource type="AtlasTexture" id=17]
atlas = ExtResource( 3 )
region = Rect2( 0, 24, 16, 24 )

[sub_resource type="AtlasTexture" id=18]
atlas = ExtResource( 3 )
region = Rect2( 16, 24, 16, 24 )

[sub_resource type="AtlasTexture" id=19]
atlas = ExtResource( 3 )
region = Rect2( 32, 24, 16, 24 )

[sub_resource type="AtlasTexture" id=20]
atlas = ExtResource( 3 )
region = Rect2( 48, 24, 16, 24 )

[sub_resource type="AtlasTexture" id=25]
atlas = ExtResource( 3 )
region = Rect2( 48, 48, 16, 24 )

[sub_resource type="AtlasTexture" id=26]
atlas = ExtResource( 3 )
region = Rect2( 32, 48, 16, 24 )

[sub_resource type="AtlasTexture" id=27]
atlas = ExtResource( 3 )
region = Rect2( 16, 48, 16, 24 )

[sub_resource type="AtlasTexture" id=28]
atlas = ExtResource( 3 )
region = Rect2( 0, 48, 16, 24 )

[sub_resource type="AtlasTexture" id=21]
atlas = ExtResource( 3 )
region = Rect2( 0, 48, 16, 24 )

[sub_resource type="AtlasTexture" id=22]
atlas = ExtResource( 3 )
region = Rect2( 16, 48, 16, 24 )

[sub_resource type="AtlasTexture" id=23]
atlas = ExtResource( 3 )
region = Rect2( 32, 48, 16, 24 )

[sub_resource type="AtlasTexture" id=24]
atlas = ExtResource( 3 )
region = Rect2( 48, 48, 16, 24 )

[sub_resource type="SpriteFrames" id=6]
animations = [ {
"frames": [ SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ) ],
"loop": true,
"name": "idle",
"speed": 7.0
}, {
"frames": [ SubResource( 25 ), SubResource( 26 ), SubResource( 27 ), SubResource( 28 ) ],
"loop": true,
"name": "reverseRun",
"speed": 10.0
}, {
"frames": [ SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ) ],
"loop": true,
"name": "run",
"speed": 10.0
} ]

[sub_resource type="RectangleShape2D" id=16]
extents = Vector2( 5, 8.25 )

[node name="Role" type="Node"]
script = ExtResource( 2 )
UseYSort = true
CollisionMask = 1

[node name="ShadowSprite" type="Sprite" parent="."]
material = ExtResource( 1 )

[node name="BackMountPoint" type="Position2D" parent="."]
position = Vector2( 0, -10 )

[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
material = SubResource( 33 )
position = Vector2( 0, -12 )
frames = SubResource( 6 )
animation = "idle"
frame = 1
playing = true

[node name="Collision" type="CollisionShape2D" parent="."]
position = Vector2( 0, -7.75 )
shape = SubResource( 16 )

[node name="InteractiveArea" type="Area2D" parent="."]
visible = false
collision_layer = 0
collision_mask = 4
monitorable = false

[node name="Collision" type="CollisionShape2D" parent="InteractiveArea"]
position = Vector2( 0, -5 )
shape = SubResource( 16 )

[node name="MountPoint" type="Position2D" parent="."]
position = Vector2( 2, -4 )
script = ExtResource( 4 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/RESET = ExtResource( 6 )
anims/hit = ExtResource( 7 )