Add enemies and let them be shot

This commit is contained in:
DerTyp7
2023-09-19 16:53:38 +02:00
parent f8b11b590b
commit 12cf356951
6 changed files with 84 additions and 32 deletions

View File

@@ -1,15 +1,12 @@
[gd_scene load_steps=5 format=3 uid="uid://day7or3kp8x5u"]
[gd_scene load_steps=4 format=3 uid="uid://day7or3kp8x5u"]
[ext_resource type="Script" path="res://Bullet.gd" id="1_0l6ar"]
[ext_resource type="Texture2D" uid="uid://dafsi3dqavgnb" path="res://Untitled.png" id="1_cjg2r"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_suj8m"]
size = Vector2(4, 4)
size = Vector2(8, 8)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_lfity"]
size = Vector2(4, 4)
[node name="RigidBody2D" type="RigidBody2D"]
[node name="Bullet" type="RigidBody2D"]
gravity_scale = 0.0
script = ExtResource("1_0l6ar")
@@ -20,8 +17,3 @@ shape = SubResource("RectangleShape2D_suj8m")
position = Vector2(-2.38419e-07, -2.38419e-07)
scale = Vector2(0.4, 0.4)
texture = ExtResource("1_cjg2r")
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("RectangleShape2D_lfity")