animated the scrump (fixes #143)
This commit is contained in:
parent
c7a310c0a4
commit
4c888d5413
3 changed files with 58 additions and 6 deletions
BIN
graphics/enemy/boss/the_scrump.png
Normal file
BIN
graphics/enemy/boss/the_scrump.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 989 B |
35
graphics/enemy/boss/the_scrump.png.import
Normal file
35
graphics/enemy/boss/the_scrump.png.import
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/the_scrump.png-5d6d9e8e958472079e561df8449adc91.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://graphics/enemy/boss/the_scrump.png"
|
||||||
|
dest_files=[ "res://.import/the_scrump.png-5d6d9e8e958472079e561df8449adc91.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=false
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
|
@ -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://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/gover.wav" type="AudioStream" id=2]
|
||||||
[ext_resource path="res://audio/sounds/die.wav" type="AudioStream" id=3]
|
[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]
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
extents = Vector2( 5.5, 9.5 )
|
extents = Vector2( 5.5, 9.5 )
|
||||||
|
@ -11,10 +11,25 @@ extents = Vector2( 5.5, 9.5 )
|
||||||
[sub_resource type="RectangleShape2D" id=2]
|
[sub_resource type="RectangleShape2D" id=2]
|
||||||
extents = Vector2( 20, 27 )
|
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 )
|
script = ExtResource( 1 )
|
||||||
move_direction = 1
|
move_direction = 1
|
||||||
flip_sprite = false
|
|
||||||
phase2_speed = 75
|
phase2_speed = 75
|
||||||
phase3_speed = 100
|
phase3_speed = 100
|
||||||
|
|
||||||
|
@ -77,9 +92,11 @@ wait_time = 5.0
|
||||||
one_shot = true
|
one_shot = true
|
||||||
autostart = true
|
autostart = true
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="Sprite" type="AnimatedSprite" parent="."]
|
||||||
position = Vector2( 26, 27 )
|
position = Vector2( 26, 27 )
|
||||||
texture = ExtResource( 4 )
|
frames = SubResource( 5 )
|
||||||
|
frame = 1
|
||||||
|
playing = true
|
||||||
|
|
||||||
[node name="BloodPosition" type="Position2D" parent="."]
|
[node name="BloodPosition" type="Position2D" parent="."]
|
||||||
position = Vector2( 0, 14 )
|
position = Vector2( 0, 14 )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue