forked from team-sg/hero-mark-2
55 lines
1.6 KiB
Text
55 lines
1.6 KiB
Text
[gd_scene load_steps=10 format=2]
|
|
|
|
[ext_resource path="res://graphics/enemy/rolling_fiend.png" type="Texture" id=2]
|
|
[ext_resource path="res://objects/enemy/rolling_fiend.gd" type="Script" id=3]
|
|
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=4]
|
|
|
|
[sub_resource type="ShaderMaterial" id=5]
|
|
shader = ExtResource( 4 )
|
|
shader_param/border_color = Color( 0, 0, 0, 1 )
|
|
shader_param/border_corners = false
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 0, 0, 16, 16 )
|
|
|
|
[sub_resource type="AtlasTexture" id=7]
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 16, 0, 16, 16 )
|
|
|
|
[sub_resource type="SpriteFrames" id=3]
|
|
animations = [ {
|
|
"frames": [ SubResource( 6 ), SubResource( 7 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 10.0
|
|
} ]
|
|
|
|
[sub_resource type="RectangleShape2D" id=8]
|
|
extents = Vector2( 3.5, 3.5 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=4]
|
|
extents = Vector2( 4, 3.75 )
|
|
|
|
[node name="RollingFiend" type="Node2D" groups=["enemy"]]
|
|
script = ExtResource( 3 )
|
|
score_for_killing = 40
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
material = SubResource( 5 )
|
|
position = Vector2( 4, 4 )
|
|
frames = SubResource( 3 )
|
|
playing = true
|
|
|
|
[node name="FloorTestShape" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 4, 4 )
|
|
shape = SubResource( 8 )
|
|
|
|
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox"]]
|
|
position = Vector2( 4, 4 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
|
position = Vector2( 0, 0.25 )
|
|
shape = SubResource( 4 )
|
|
|
|
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
|