Enemy
made a basic enemy that can harm/kill the player.
This commit is contained in:
1 parent
2315add8ec
commit
bb9682cd16
6 files changed
+117
-4
No files matched your search
@@ -1,7 +1,7 @@
|
||||
[gd_scene format=3 uid="uid://d1xirc54wud0s"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cmtdq6tedv1mm" path="res://scenes/player.tscn" id="1_g7g4h"]
|
||||
[ext_resource type="Script" uid="uid://87oh2y0i2muf" path="res://scenes/rigid_body_2d.gd" id="2_nd71p"]
|
||||
[ext_resource type="PackedScene" uid="uid://bjk1cmuogswyd" path="res://scenes/enemy.tscn" id="2_j8ivh"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
|
||||
size = Vector2(1116.25, 73)
|
||||
@@ -19,8 +19,10 @@ position = Vector2(64, 386)
|
||||
|
||||
[node name="floor" type="StaticBody2D" parent="." unique_id=866269158]
|
||||
collision_layer = 2
|
||||
script = ExtResource("2_nd71p")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="floor" unique_id=1146724072]
|
||||
position = Vector2(561.125, 569)
|
||||
shape = SubResource("RectangleShape2D_aqe1g")
|
||||
|
||||
[node name="enemy" parent="floor" unique_id=1471932521 instance=ExtResource("2_j8ivh")]
|
||||
position = Vector2(527, 311)
|
||||
Reference in new issue
Block a user