player and snake movement
This commit is contained in:
parent
4576c62e4a
commit
50e2dad3e7
7 changed files with 113 additions and 23 deletions
17
prefabs/braincell.tscn
Normal file
17
prefabs/braincell.tscn
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://cusdydgg4b1bo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b48mlxrnte625" path="res://braincell.gd" id="1_q1ksn"]
|
||||
[ext_resource type="Texture2D" uid="uid://qyd5e7lb2esx" path="res://assets/braincell.png" id="2_wv6rk"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_g14j6"]
|
||||
radius = 16.0
|
||||
|
||||
[node name="Braincell" type="CharacterBody2D"]
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_q1ksn")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_wv6rk")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_g14j6")
|
||||
Loading…
Add table
Add a link
Reference in a new issue