diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-06-04 03:17:22 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-06-04 03:17:22 -0600 |
commit | 36874a535a3d5f7f2955f33e34aa1a4768b6fec1 (patch) | |
tree | 8f4eaa57d5e82d962719a8a399cfc210ced672e6 /src/entities/food/scenes | |
parent | f922fe4669080d1633e0a345a3f8981867c9e841 (diff) |
added hud for snake size and grow progress
Diffstat (limited to 'src/entities/food/scenes')
-rw-r--r-- | src/entities/food/scenes/FoodBasic.tscn (renamed from src/entities/food/scenes/Food.tscn) | 6 | ||||
-rw-r--r-- | src/entities/food/scenes/FoodManager.tscn | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/entities/food/scenes/Food.tscn b/src/entities/food/scenes/FoodBasic.tscn index 7accbc6..5a4474e 100644 --- a/src/entities/food/scenes/Food.tscn +++ b/src/entities/food/scenes/FoodBasic.tscn @@ -1,14 +1,14 @@ [gd_scene load_steps=3 format=2] -[ext_resource path="res://entities/food/scripts/food.gd" type="Script" id=2] +[ext_resource path="res://entities/food/scripts/food_basic.gd" type="Script" id=1] [sub_resource type="CircleShape2D" id=1] radius = 4.0 -[node name="Food" type="Area2D"] +[node name="FoodBasic" type="Area2D"] collision_layer = 256 collision_mask = 0 -script = ExtResource( 2 ) +script = ExtResource( 1 ) [node name="Sprite" type="Sprite" parent="."] diff --git a/src/entities/food/scenes/FoodManager.tscn b/src/entities/food/scenes/FoodManager.tscn index 3287271..e56b9de 100644 --- a/src/entities/food/scenes/FoodManager.tscn +++ b/src/entities/food/scenes/FoodManager.tscn @@ -1,8 +1,8 @@ [gd_scene load_steps=3 format=2] -[ext_resource path="res://entities/food/scenes/Food.tscn" type="PackedScene" id=1] +[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] [node name="FoodManager" type="Node2D"] script = ExtResource( 2 ) -FOOD = ExtResource( 1 ) +FOOD_BASIC = ExtResource( 1 ) |