animated the scrump (fixes #143)
This commit is contained in:
parent
c7a310c0a4
commit
4c888d5413
3 changed files with 58 additions and 6 deletions
|
@ -1,9 +1,9 @@
|
|||
[gd_scene load_steps=7 format=2]
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://objects/enemy/boss/scrump.gd" type="Script" id=1]
|
||||
[ext_resource path="res://audio/sounds/gover.wav" type="AudioStream" id=2]
|
||||
[ext_resource path="res://audio/sounds/die.wav" type="AudioStream" id=3]
|
||||
[ext_resource path="res://graphics/enemy/boss/scrump.png" type="Texture" id=4]
|
||||
[ext_resource path="res://graphics/enemy/boss/the_scrump.png" type="Texture" id=4]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 5.5, 9.5 )
|
||||
|
@ -11,10 +11,25 @@ extents = Vector2( 5.5, 9.5 )
|
|||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2( 20, 27 )
|
||||
|
||||
[node name="Boss1" type="Node2D"]
|
||||
[sub_resource type="AtlasTexture" id=3]
|
||||
atlas = ExtResource( 4 )
|
||||
region = Rect2( 0, 0, 55, 64 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=4]
|
||||
atlas = ExtResource( 4 )
|
||||
region = Rect2( 55, 0, 55, 64 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=5]
|
||||
animations = [ {
|
||||
"frames": [ SubResource( 3 ), SubResource( 4 ) ],
|
||||
"loop": true,
|
||||
"name": "default",
|
||||
"speed": 10.0
|
||||
} ]
|
||||
|
||||
[node name="TheScrump" type="Node2D"]
|
||||
script = ExtResource( 1 )
|
||||
move_direction = 1
|
||||
flip_sprite = false
|
||||
phase2_speed = 75
|
||||
phase3_speed = 100
|
||||
|
||||
|
@ -77,9 +92,11 @@ wait_time = 5.0
|
|||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
[node name="Sprite" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( 26, 27 )
|
||||
texture = ExtResource( 4 )
|
||||
frames = SubResource( 5 )
|
||||
frame = 1
|
||||
playing = true
|
||||
|
||||
[node name="BloodPosition" type="Position2D" parent="."]
|
||||
position = Vector2( 0, 14 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue