End of lesson 26
This commit is contained in:
15
scenes/game/maps/entities/map_entity.tscn
Normal file
15
scenes/game/maps/entities/map_entity.tscn
Normal file
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://b1x2qqok7xafr"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dypu0r4iadf8u" path="res://scripts/game/maps/entities/map_entity.gd" id="1_4euqm"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_agn4j"]
|
||||
size = Vector2(4, 4)
|
||||
|
||||
[node name="MapEntity" type="Area2D"]
|
||||
script = ExtResource("1_4euqm")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(8, 8)
|
||||
shape = SubResource("RectangleShape2D_agn4j")
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
Reference in New Issue
Block a user