diff options
Diffstat (limited to 'Hazard.tscn')
| -rw-r--r-- | Hazard.tscn | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Hazard.tscn b/Hazard.tscn new file mode 100644 index 0000000..fe3db5c --- /dev/null +++ b/Hazard.tscn @@ -0,0 +1,22 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://Hazard.gd" type="Script" id=1] + +[sub_resource type="RectangleShape2D" id=1] +extents = Vector2( 24, 24 ) + +[node name="Hazard" type="Area2D"] +script = ExtResource( 1 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2( 24, 24 ) +shape = SubResource( 1 ) + +[node name="ColorRect" type="ColorRect" parent="."] +margin_right = 48.0 +margin_bottom = 48.0 +color = Color( 1, 0, 0, 1 ) +__meta__ = { +"_edit_use_anchors_": false +} +[connection signal="body_entered" from="." to="." method="_on_Hazard_body_entered"] |
