mirror of
https://github.com/DerTyp7/TopDownShooter-Godot.git
synced 2025-10-29 21:02:13 +01:00
Add enemies and let them be shot
This commit is contained in:
14
Bullet.tscn
14
Bullet.tscn
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user