77 lines
2.6 KiB
Text
77 lines
2.6 KiB
Text
|
[gd_scene load_steps=18 format=2]
|
||
|
|
||
|
[ext_resource path="res://Images/Gameplay/TimeletonFDeath.png" type="Texture" id=1]
|
||
|
[ext_resource path="res://Images/Gameplay/TimeletonF4.png" type="Texture" id=2]
|
||
|
[ext_resource path="res://Images/Gameplay/TimeletonF8.png" type="Texture" id=3]
|
||
|
[ext_resource path="res://Images/Gameplay/TimeletonF7.png" type="Texture" id=4]
|
||
|
[ext_resource path="res://Images/Gameplay/TimeletonF2.png" type="Texture" id=5]
|
||
|
[ext_resource path="res://Images/Gameplay/TimeletonF3.png" type="Texture" id=6]
|
||
|
[ext_resource path="res://Images/Gameplay/TimeletonFHit.png" type="Texture" id=7]
|
||
|
[ext_resource path="res://Images/Gameplay/TimeletonF5.png" type="Texture" id=8]
|
||
|
[ext_resource path="res://Images/Gameplay/TimeletonF6.png" type="Texture" id=9]
|
||
|
[ext_resource path="res://Images/Gameplay/TimeletonF1.png" type="Texture" id=10]
|
||
|
[ext_resource path="res://Scripts/Timeleton.gd" type="Script" id=11]
|
||
|
[ext_resource path="res://Shaders/offsetshadow.shader" type="Shader" id=12]
|
||
|
|
||
|
[sub_resource type="ShaderMaterial" id=5]
|
||
|
shader = ExtResource( 12 )
|
||
|
shader_param/offset = Vector2( 3, 3 )
|
||
|
shader_param/modulate = Color( 0, 0, 0, 0.4 )
|
||
|
|
||
|
[sub_resource type="SpriteFrames" id=1]
|
||
|
animations = [ {
|
||
|
"frames": [ ExtResource( 10 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 2 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 4 ), ExtResource( 3 ) ],
|
||
|
"loop": true,
|
||
|
"name": "Moving",
|
||
|
"speed": 20.0
|
||
|
}, {
|
||
|
"frames": [ ExtResource( 7 ) ],
|
||
|
"loop": true,
|
||
|
"name": "Hit",
|
||
|
"speed": 5.0
|
||
|
}, {
|
||
|
"frames": [ ExtResource( 1 ) ],
|
||
|
"loop": true,
|
||
|
"name": "Death",
|
||
|
"speed": 5.0
|
||
|
} ]
|
||
|
|
||
|
[sub_resource type="CapsuleShape2D" id=2]
|
||
|
radius = 12.4
|
||
|
height = 14.0
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id=3]
|
||
|
extents = Vector2( 10, 2.8 )
|
||
|
|
||
|
[sub_resource type="CapsuleShape2D" id=4]
|
||
|
radius = 14.8
|
||
|
height = 16.0
|
||
|
|
||
|
[node name="Timeleton" type="KinematicBody2D"]
|
||
|
scale = Vector2( 5, 5 )
|
||
|
script = ExtResource( 11 )
|
||
|
|
||
|
[node name="Sprite" type="AnimatedSprite" parent="."]
|
||
|
material = SubResource( 5 )
|
||
|
frames = SubResource( 1 )
|
||
|
animation = "Moving"
|
||
|
|
||
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
||
|
shape = SubResource( 2 )
|
||
|
disabled = true
|
||
|
|
||
|
[node name="BossHitZone" type="Area2D" parent="."]
|
||
|
|
||
|
[node name="Shape" type="CollisionShape2D" parent="BossHitZone"]
|
||
|
position = Vector2( -2.38419e-08, -24.2 )
|
||
|
shape = SubResource( 3 )
|
||
|
|
||
|
[node name="PlayerHitZone" type="Area2D" parent="."]
|
||
|
|
||
|
[node name="Shape" type="CollisionShape2D" parent="PlayerHitZone"]
|
||
|
position = Vector2( 0, 2.8 )
|
||
|
shape = SubResource( 4 )
|
||
|
|
||
|
[connection signal="body_entered" from="BossHitZone" to="." method="bossHitZoneEntered"]
|
||
|
[connection signal="body_entered" from="PlayerHitZone" to="." method="playerHitZoneEntered"]
|