From 36874a535a3d5f7f2955f33e34aa1a4768b6fec1 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 4 Jun 2022 03:17:22 -0600 Subject: added hud for snake size and grow progress --- src/entities/food/scenes/Food.tscn | 16 ---------------- src/entities/food/scenes/FoodBasic.tscn | 16 ++++++++++++++++ src/entities/food/scenes/FoodManager.tscn | 4 ++-- 3 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 src/entities/food/scenes/Food.tscn create mode 100644 src/entities/food/scenes/FoodBasic.tscn (limited to 'src/entities/food/scenes') diff --git a/src/entities/food/scenes/Food.tscn b/src/entities/food/scenes/Food.tscn deleted file mode 100644 index 7accbc6..0000000 --- a/src/entities/food/scenes/Food.tscn +++ /dev/null @@ -1,16 +0,0 @@ -[gd_scene load_steps=3 format=2] - -[ext_resource path="res://entities/food/scripts/food.gd" type="Script" id=2] - -[sub_resource type="CircleShape2D" id=1] -radius = 4.0 - -[node name="Food" 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 ) diff --git a/src/entities/food/scenes/FoodBasic.tscn b/src/entities/food/scenes/FoodBasic.tscn new file mode 100644 index 0000000..5a4474e --- /dev/null +++ b/src/entities/food/scenes/FoodBasic.tscn @@ -0,0 +1,16 @@ +[gd_scene load_steps=3 format=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="FoodBasic" type="Area2D"] +collision_layer = 256 +collision_mask = 0 +script = ExtResource( 1 ) + +[node name="Sprite" type="Sprite" parent="."] + +[node name="Collision" type="CollisionShape2D" parent="."] +shape = SubResource( 1 ) 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 ) -- cgit v1.2.3-70-g09d2