add some enemy behavior prototypes

This commit is contained in:
2022-07-21 00:05:08 -04:00
parent 31003a2863
commit 948f4ce911
20 changed files with 268 additions and 34 deletions

View File

@@ -0,0 +1 @@
extends "res://characters/enemies/WalkingEnemy.gd"

View File

@@ -1,6 +1,7 @@
[gd_scene load_steps=7 format=2]
[gd_scene load_steps=8 format=2]
[ext_resource path="res://assets/characters/characters.png" type="Texture" id=1]
[ext_resource path="res://characters/enemies/shelly/Shelly.gd" type="Script" id=2]
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
@@ -28,11 +29,12 @@ animations = [ {
} ]
[sub_resource type="RectangleShape2D" id=5]
extents = Vector2( 7.5, 7 )
extents = Vector2( 7.5, 6.5 )
[node name="Shelly" type="KinematicBody2D"]
[node name="Shelly" type="KinematicBody2D" groups=["enemy", "squashable"]]
collision_layer = 8
collision_mask = 11
script = ExtResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 4 )
@@ -40,5 +42,10 @@ animation = "walk"
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 1, 5 )
position = Vector2( 1, 5.5 )
shape = SubResource( 5 )
[node name="FloorChecker" type="RayCast2D" parent="."]
enabled = true
cast_to = Vector2( 0, 20 )
collision_mask = 10