This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
Jessist/Scenes/Modules/EnemyElie.tscn

75 lines
2.3 KiB
Text
Raw Normal View History

2022-06-18 13:05:48 +02:00
[gd_scene load_steps=11 format=2]
[ext_resource path="res://Images/Gameplay/EnemyElie.png" type="Texture" id=1]
[ext_resource path="res://Images/Gameplay/EnemyElieF1.png" type="Texture" id=2]
[ext_resource path="res://Images/Gameplay/EnemyElieHit.png" type="Texture" id=3]
[ext_resource path="res://Scripts/EnemyElie.gd" type="Script" id=4]
[ext_resource path="res://Shaders/offsetshadow.shader" type="Shader" id=5]
[sub_resource type="ShaderMaterial" id=5]
shader = ExtResource( 5 )
shader_param/offset = Vector2( 2, 2 )
shader_param/modulate = Color( 0, 0, 0, 0.4 )
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 3 ) ],
"loop": true,
"name": "Hit",
"speed": 5.0
}, {
"frames": [ ExtResource( 3 ) ],
"loop": true,
"name": "Jumping",
"speed": 5.0
}, {
"frames": [ ExtResource( 1 ), ExtResource( 2 ) ],
"loop": true,
"name": "Walking",
"speed": 5.0
} ]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 10.8, 9.18889 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 1.11173, 4.16898 )
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 10, 1.11034 )
[node name="EnemyElie" type="KinematicBody2D"]
scale = Vector2( 1.25, 1.25 )
script = ExtResource( 4 )
[node name="EnemyElieSprite" type="AnimatedSprite" parent="."]
material = SubResource( 5 )
frames = SubResource( 1 )
animation = "Walking"
[node name="EnemyElieShape" type="CollisionShape2D" parent="."]
position = Vector2( 0.4, 6.78889 )
shape = SubResource( 2 )
[node name="PlayerHitZone0" type="Area2D" parent="."]
[node name="Shape" type="CollisionShape2D" parent="PlayerHitZone0"]
position = Vector2( -11.1, 3.6 )
shape = SubResource( 3 )
[node name="PlayerHitZone1" type="Area2D" parent="."]
[node name="Shape" type="CollisionShape2D" parent="PlayerHitZone1"]
position = Vector2( 0.5, -3.4 )
shape = SubResource( 4 )
[node name="PlayerHitZone2" type="Area2D" parent="."]
[node name="Shape" type="CollisionShape2D" parent="PlayerHitZone2"]
position = Vector2( 12.4, 2 )
shape = SubResource( 3 )
[connection signal="body_entered" from="PlayerHitZone0" to="." method="playerHitZoneEntered"]
[connection signal="body_entered" from="PlayerHitZone1" to="." method="playerHitZoneEntered"]
[connection signal="body_entered" from="PlayerHitZone2" to="." method="playerHitZoneEntered"]