added robo animation

This commit is contained in:
pennyrigate 2023-03-01 18:49:05 -05:00
parent 5f838027ec
commit 55ecaefb72

View file

@ -1,8 +1,9 @@
[gd_scene load_steps=9 format=2]
[gd_scene load_steps=12 format=2]
[ext_resource path="res://graphics/enemy/snake.png" type="Texture" id=1]
[ext_resource path="res://scripts/1px_border.gdshader" type="Shader" id=2]
[ext_resource path="res://objects/enemy/enemy_move_sidesideupdown.gd" type="Script" id=3]
[ext_resource path="res://graphics/enemy/robosnake.png" type="Texture" id=4]
[sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 2 )
@ -17,12 +18,25 @@ region = Rect2( 0, 0, 16, 16 )
atlas = ExtResource( 1 )
region = Rect2( 16, 0, 16, 16 )
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 4 )
region = Rect2( 0, 0, 16, 16 )
[sub_resource type="AtlasTexture" id=7]
atlas = ExtResource( 4 )
region = Rect2( 16, 0, 16, 16 )
[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ SubResource( 2 ), SubResource( 3 ) ],
"loop": true,
"name": "default",
"speed": 7.0
}, {
"frames": [ SubResource( 6 ), SubResource( 7 ) ],
"loop": true,
"name": "robo",
"speed": 7.0
} ]
[sub_resource type="RectangleShape2D" id=5]
@ -35,6 +49,7 @@ score_for_killing = 15
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
material = SubResource( 1 )
frames = SubResource( 4 )
frame = 1
playing = true
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox"]]