forked from team-sg/hero-mark-2
added robo animation
This commit is contained in:
parent
5f838027ec
commit
55ecaefb72
1 changed files with 16 additions and 1 deletions
|
@ -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://graphics/enemy/snake.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://scripts/1px_border.gdshader" type="Shader" id=2]
|
[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://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]
|
[sub_resource type="ShaderMaterial" id=1]
|
||||||
shader = ExtResource( 2 )
|
shader = ExtResource( 2 )
|
||||||
|
@ -17,12 +18,25 @@ region = Rect2( 0, 0, 16, 16 )
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource( 1 )
|
||||||
region = Rect2( 16, 0, 16, 16 )
|
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]
|
[sub_resource type="SpriteFrames" id=4]
|
||||||
animations = [ {
|
animations = [ {
|
||||||
"frames": [ SubResource( 2 ), SubResource( 3 ) ],
|
"frames": [ SubResource( 2 ), SubResource( 3 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "default",
|
"name": "default",
|
||||||
"speed": 7.0
|
"speed": 7.0
|
||||||
|
}, {
|
||||||
|
"frames": [ SubResource( 6 ), SubResource( 7 ) ],
|
||||||
|
"loop": true,
|
||||||
|
"name": "robo",
|
||||||
|
"speed": 7.0
|
||||||
} ]
|
} ]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=5]
|
[sub_resource type="RectangleShape2D" id=5]
|
||||||
|
@ -35,6 +49,7 @@ score_for_killing = 15
|
||||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||||
material = SubResource( 1 )
|
material = SubResource( 1 )
|
||||||
frames = SubResource( 4 )
|
frames = SubResource( 4 )
|
||||||
|
frame = 1
|
||||||
playing = true
|
playing = true
|
||||||
|
|
||||||
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox"]]
|
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox"]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue