make rolling saw unkillable (closes #71)
This commit is contained in:
parent
9a03a8e52e
commit
35777da5fb
1 changed files with 36 additions and 4 deletions
|
@ -1,7 +1,13 @@
|
|||
[gd_scene load_steps=6 format=2]
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://graphics/enemy/sawblade.png" type="Texture" id=1]
|
||||
[ext_resource path="res://objects/enemy/rolling_fiend.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=2]
|
||||
[ext_resource path="res://objects/enemy/rolling_fiend.gd" type="Script" id=3]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=5]
|
||||
shader = ExtResource( 2 )
|
||||
shader_param/border_color = Color( 0, 0, 0, 1 )
|
||||
shader_param/border_corners = false
|
||||
|
||||
[sub_resource type="AtlasTexture" id=1]
|
||||
atlas = ExtResource( 1 )
|
||||
|
@ -19,7 +25,33 @@ animations = [ {
|
|||
"speed": 20.0
|
||||
} ]
|
||||
|
||||
[node name="RollingSaw" instance=ExtResource( 2 )]
|
||||
[sub_resource type="RectangleShape2D" id=8]
|
||||
extents = Vector2( 3.5, 3.5 )
|
||||
|
||||
[node name="AnimatedSprite" parent="." index="0"]
|
||||
[sub_resource type="RectangleShape2D" id=4]
|
||||
extents = Vector2( 4, 3.75 )
|
||||
|
||||
[node name="RollingSaw" type="Node2D" groups=["enemy"]]
|
||||
script = ExtResource( 3 )
|
||||
score_for_killing = 40
|
||||
move_speed = 50.0
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
material = SubResource( 5 )
|
||||
position = Vector2( 4, 4 )
|
||||
frames = SubResource( 3 )
|
||||
frame = 1
|
||||
playing = true
|
||||
|
||||
[node name="FloorTestShape" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( 4, 4 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="."]
|
||||
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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue