diff options
Diffstat (limited to 'src/entities/food/scenes')
-rw-r--r-- | src/entities/food/scenes/FoodManager.tscn | 4 | ||||
-rw-r--r-- | src/entities/food/scenes/FoodSpecial.tscn | 16 |
2 files changed, 19 insertions, 1 deletions
diff --git a/src/entities/food/scenes/FoodManager.tscn b/src/entities/food/scenes/FoodManager.tscn index e56b9de..73bde55 100644 --- a/src/entities/food/scenes/FoodManager.tscn +++ b/src/entities/food/scenes/FoodManager.tscn @@ -1,8 +1,10 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=4 format=2] [ext_resource path="res://entities/food/scenes/FoodBasic.tscn" type="PackedScene" id=1] [ext_resource path="res://entities/food/scripts/food_manager.gd" type="Script" id=2] +[ext_resource path="res://entities/food/scenes/FoodSpecial.tscn" type="PackedScene" id=3] [node name="FoodManager" type="Node2D"] script = ExtResource( 2 ) FOOD_BASIC = ExtResource( 1 ) +FOOD_SPECIAL = ExtResource( 3 ) diff --git a/src/entities/food/scenes/FoodSpecial.tscn b/src/entities/food/scenes/FoodSpecial.tscn new file mode 100644 index 0000000..1b8c4e6 --- /dev/null +++ b/src/entities/food/scenes/FoodSpecial.tscn @@ -0,0 +1,16 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://entities/food/scripts/food_special.gd" type="Script" id=2] + +[sub_resource type="CircleShape2D" id=1] +radius = 8.0 + +[node name="FoodSpecial" type="Area2D"] +collision_layer = 256 +collision_mask = 0 +script = ExtResource( 2 ) + +[node name="Sprite" type="Sprite" parent="."] + +[node name="Collision" type="CollisionShape2D" parent="."] +shape = SubResource( 1 ) |