From 898877f09808691a5e5d45850d27ae85f270db16 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Thu, 2 Jun 2022 02:35:03 -0600 Subject: add food system --- src/entities/actors/snake/scenes/Body.tscn | 2 +- src/entities/actors/snake/scenes/Head.tscn | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/entities/actors/snake/scenes') diff --git a/src/entities/actors/snake/scenes/Body.tscn b/src/entities/actors/snake/scenes/Body.tscn index 8e4a8a4..49694c0 100644 --- a/src/entities/actors/snake/scenes/Body.tscn +++ b/src/entities/actors/snake/scenes/Body.tscn @@ -4,7 +4,7 @@ [ext_resource path="res://entities/actors/snake/scripts/generic_segment.gd" type="Script" id=2] [sub_resource type="CapsuleShape2D" id=1] -radius = 5.99999 +radius = 4.99999 height = 4.00002 [node name="BodyPathFollow" type="PathFollow2D"] diff --git a/src/entities/actors/snake/scenes/Head.tscn b/src/entities/actors/snake/scenes/Head.tscn index 22aa7e6..d118fbf 100644 --- a/src/entities/actors/snake/scenes/Head.tscn +++ b/src/entities/actors/snake/scenes/Head.tscn @@ -3,12 +3,11 @@ [ext_resource path="res://entities/actors/snake/sprites/head.png" type="Texture" id=1] [ext_resource path="res://entities/actors/snake/scripts/head.gd" type="Script" id=2] -[sub_resource type="CircleShape2D" id=1] -radius = 5.0 +[sub_resource type="ConvexPolygonShape2D" id=1] +points = PoolVector2Array( -5, 0, 5, 0, 5, -3, 3, -4, 1, -5, -1, -5, -3, -4, -5, -3 ) [node name="Head" type="KinematicBody2D"] -position = Vector2( -1, 0 ) -collision_mask = 0 +collision_mask = 262 script = ExtResource( 2 ) [node name="Sprite" type="Sprite" parent="."] -- cgit v1.2.3-70-g09d2