feature/enemies #28

Merged
cromer merged 21 commits from feature/enemies into develop 2022-08-07 18:54:15 -04:00
7 changed files with 17 additions and 19 deletions
Showing only changes of commit 4196f4d9e9 - Show all commits

View File

@ -1,7 +1,6 @@
[gd_scene load_steps=9 format=2] [gd_scene load_steps=7 format=2]
[ext_resource path="res://assets/characters/characters.png" type="Texture" id=1] [ext_resource path="res://assets/characters/characters.png" type="Texture" id=1]
[ext_resource path="res://characters/enemies/blightwing/Blightwing.gd" type="Script" id=2]
[sub_resource type="AtlasTexture" id=1] [sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 ) atlas = ExtResource( 1 )
@ -26,29 +25,17 @@ animations = [ {
[sub_resource type="RectangleShape2D" id=5] [sub_resource type="RectangleShape2D" id=5]
extents = Vector2( 5, 5 ) extents = Vector2( 5, 5 )
[sub_resource type="RectangleShape2D" id=6]
extents = Vector2( 6, 5 )
[node name="Blightwing" type="KinematicBody2D"] [node name="Blightwing" type="KinematicBody2D"]
collision_layer = 4 collision_layer = 8
collision_mask = 3 collision_mask = 11
script = ExtResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."] [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 4 ) frames = SubResource( 4 )
animation = "fly" animation = "fly"
frame = 3 frame = 1
playing = true playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 3.47893e-06, 0.999998 ) position = Vector2( 3.47893e-06, 0.999998 )
rotation = 1.5708 rotation = 1.5708
shape = SubResource( 5 ) shape = SubResource( 5 )
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( 0, 2 )
shape = SubResource( 6 )
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]

View File

@ -27,6 +27,8 @@ animations = [ {
extents = Vector2( 9, 9 ) extents = Vector2( 9, 9 )
[node name="Blockface" type="KinematicBody2D"] [node name="Blockface" type="KinematicBody2D"]
collision_layer = 8
collision_mask = 11
[node name="AnimatedSprite" type="AnimatedSprite" parent="."] [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 3 ) frames = SubResource( 3 )

View File

@ -31,11 +31,12 @@ animations = [ {
extents = Vector2( 7.5, 8.5 ) extents = Vector2( 7.5, 8.5 )
[node name="Dreadtooth" type="KinematicBody2D"] [node name="Dreadtooth" type="KinematicBody2D"]
collision_layer = 8
collision_mask = 11
[node name="AnimatedSprite" type="AnimatedSprite" parent="."] [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 4 ) frames = SubResource( 4 )
animation = "walk" animation = "walk"
frame = 1
playing = true playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]

View File

@ -22,10 +22,11 @@ animations = [ {
extents = Vector2( 5.5, 7.5 ) extents = Vector2( 5.5, 7.5 )
[node name="Gravevine" type="KinematicBody2D"] [node name="Gravevine" type="KinematicBody2D"]
collision_layer = 8
collision_mask = 11
[node name="AnimatedSprite" type="AnimatedSprite" parent="."] [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 3 ) frames = SubResource( 3 )
frame = 1
playing = true playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]

View File

@ -31,6 +31,8 @@ animations = [ {
extents = Vector2( 7.5, 7 ) extents = Vector2( 7.5, 7 )
[node name="Shelly" type="KinematicBody2D"] [node name="Shelly" type="KinematicBody2D"]
collision_layer = 8
collision_mask = 11
[node name="AnimatedSprite" type="AnimatedSprite" parent="."] [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 4 ) frames = SubResource( 4 )

View File

@ -18,6 +18,8 @@ animations = [ {
radius = 9.05539 radius = 9.05539
[node name="Spikeball" type="KinematicBody2D"] [node name="Spikeball" type="KinematicBody2D"]
collision_layer = 8
collision_mask = 11
[node name="AnimatedSprite" type="AnimatedSprite" parent="."] [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 2 ) frames = SubResource( 2 )

View File

@ -31,10 +31,13 @@ animations = [ {
extents = Vector2( 12, 11 ) extents = Vector2( 12, 11 )
[node name="SuperShelly" type="KinematicBody2D"] [node name="SuperShelly" type="KinematicBody2D"]
collision_layer = 8
collision_mask = 11
[node name="AnimatedSprite" type="AnimatedSprite" parent="."] [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 4 ) frames = SubResource( 4 )
animation = "walk" animation = "walk"
frame = 1
playing = true playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]