clean up enemy stuff a tiny bit
This commit is contained in:
parent
86ee9b12fa
commit
da03fddf2d
3 changed files with 9 additions and 17 deletions
|
@ -1,6 +1,5 @@
|
|||
[gd_scene load_steps=10 format=2]
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://objects/enemy/enemy.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://graphics/enemy/roller_fiend.png" type="Texture" id=2]
|
||||
[ext_resource path="res://objects/enemy/rolling_fiend.gd" type="Script" id=3]
|
||||
[ext_resource path="res://scripts/1px_border.gdshader" type="Shader" id=4]
|
||||
|
@ -29,35 +28,34 @@ animations = [ {
|
|||
[sub_resource type="RectangleShape2D" id=4]
|
||||
extents = Vector2( 4.0094, 4.0094 )
|
||||
|
||||
[node name="RollingFiend" instance=ExtResource( 1 )]
|
||||
[node name="RollingFiend" type="Node2D" groups=["enemy"]]
|
||||
script = ExtResource( 3 )
|
||||
score_for_killing = 40
|
||||
move_speed = 50.0
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="." index="0"]
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
material = SubResource( 5 )
|
||||
position = Vector2( 0, 1 )
|
||||
frames = SubResource( 3 )
|
||||
playing = true
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="." index="1"]
|
||||
[node name="Hitbox" type="Area2D" parent="."]
|
||||
position = Vector2( 0, 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" index="0"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
position = Vector2( -0.010025, 0.0104442 )
|
||||
rotation = -0.020475
|
||||
scale = Vector2( 1, 1 )
|
||||
shape = SubResource( 4 )
|
||||
|
||||
[node name="Raycasts" type="Node2D" parent="." index="2"]
|
||||
[node name="Raycasts" type="Node2D" parent="."]
|
||||
position = Vector2( 0, 1 )
|
||||
|
||||
[node name="WallCast" type="RayCast2D" parent="Raycasts" index="0"]
|
||||
[node name="WallCast" type="RayCast2D" parent="Raycasts"]
|
||||
position = Vector2( -7, 7 )
|
||||
enabled = true
|
||||
cast_to = Vector2( 0, -10 )
|
||||
|
||||
[node name="FloorCast" type="RayCast2D" parent="Raycasts" index="1"]
|
||||
[node name="FloorCast" type="RayCast2D" parent="Raycasts"]
|
||||
position = Vector2( -7, 8 )
|
||||
enabled = true
|
||||
cast_to = Vector2( 10, 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue