Files
wgj26/scenes/test_scene.tscn
sam bb9682cd16 Enemy
made a basic enemy that can harm/kill the player.
2026-10-02 21:10:47 -06:00

29 lines
1.0 KiB
Plaintext

[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="PackedScene" uid="uid://bjk1cmuogswyd" path="res://scenes/enemy.tscn" id="2_j8ivh"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
size = Vector2(1116.25, 73)
[node name="test_scene" type="Node2D" unique_id=1970054744]
[node name="ColorRect" type="ColorRect" parent="." unique_id=1255479846]
offset_left = 2.0
offset_top = 530.0
offset_right = 1121.0
offset_bottom = 606.0
[node name="player" parent="." unique_id=1596338883 instance=ExtResource("1_g7g4h")]
position = Vector2(64, 386)
[node name="floor" type="StaticBody2D" parent="." unique_id=866269158]
collision_layer = 2
[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)