[gd_scene load_steps=12 format=2] [ext_resource path="res://imgs/fantome.png" type="Texture" id=1] [ext_resource path="res://Ennemi.gd" type="Script" id=2] [ext_resource path="res://imgs/oeil.png" type="Texture" id=3] [sub_resource type="AtlasTexture" id=1] atlas = ExtResource( 1 ) region = Rect2( 0, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=2] atlas = ExtResource( 1 ) region = Rect2( 64, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=3] atlas = ExtResource( 1 ) region = Rect2( 32, 32, 32, 32 ) [sub_resource type="AtlasTexture" id=4] atlas = ExtResource( 3 ) region = Rect2( 0, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=5] atlas = ExtResource( 3 ) region = Rect2( 32, 0, 32, 32 ) [sub_resource type="AtlasTexture" id=6] atlas = ExtResource( 3 ) region = Rect2( 0, 32, 32, 32 ) [sub_resource type="SpriteFrames" id=7] animations = [ { "frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ) ], "loop": true, "name": "fantome", "speed": 4.0 }, { "frames": [ SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ], "loop": true, "name": "oeil", "speed": 6.0 } ] [sub_resource type="CapsuleShape2D" id=8] radius = 23.5359 height = 5.09861 [node name="Ennemi" type="RigidBody2D" groups=[ "ennemis", ]] position = Vector2( 0, -0.198425 ) collision_mask = 0 gravity_scale = 0.0 script = ExtResource( 2 ) __meta__ = { "_edit_group_": true } [node name="AnimatedSprite" type="AnimatedSprite" parent="."] position = Vector2( 0.339, -7.739 ) scale = Vector2( 2, 2 ) frames = SubResource( 7 ) animation = "oeil" frame = 1 playing = true [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2( 0.087, -7.283 ) scale = Vector2( 1.011, 0.968 ) shape = SubResource( 8 ) [node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."] position = Vector2( -0.099213, -7.04408 ) scale = Vector2( 1.9822, 2.20048 )