diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-06-02 02:35:03 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-06-02 02:35:03 -0600 |
commit | 898877f09808691a5e5d45850d27ae85f270db16 (patch) | |
tree | e4f9005273815c35327b5bdf65026c93301cb593 /src/entities/actors/snake/scenes | |
parent | 2c5d588bc593929a96f0e58d7d1ab52f269add55 (diff) |
add food system
Diffstat (limited to 'src/entities/actors/snake/scenes')
-rw-r--r-- | src/entities/actors/snake/scenes/Body.tscn | 2 | ||||
-rw-r--r-- | src/entities/actors/snake/scenes/Head.tscn | 7 |
2 files changed, 4 insertions, 5 deletions
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="."] |