smaller map, eating apples, death
This commit is contained in:
parent
8c0860a840
commit
2c512d5764
12 changed files with 152 additions and 13 deletions
32
test.tscn
32
test.tscn
|
|
@ -1,22 +1,24 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://daqqurdrnk61h"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://daqqurdrnk61h"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bue4xxejdsmqh" path="res://snakeManager.gd" id="1_6uqi0"]
|
||||
[ext_resource type="PackedScene" uid="uid://bwoeu7ask0fck" path="res://prefabs/snake_segment.tscn" id="1_8uh7m"]
|
||||
[ext_resource type="Texture2D" uid="uid://byibhn8fi6ve0" path="res://assets/bg.png" id="1_ppyta"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1sese4p8sck3" path="res://assets/smallMap.png" id="1_vbegm"]
|
||||
[ext_resource type="PackedScene" uid="uid://cusdydgg4b1bo" path="res://prefabs/braincell.tscn" id="2_6uqi0"]
|
||||
[ext_resource type="Script" uid="uid://b0djy8fmq4qjq" path="res://camera_2d.gd" id="5_ykrsh"]
|
||||
[ext_resource type="PackedScene" uid="uid://qpjwodeafyno" path="res://prefabs/apple.tscn" id="6_g14j6"]
|
||||
[ext_resource type="PackedScene" uid="uid://bl5py87o1qbgr" path="res://prefabs/wall.tscn" id="7_vbegm"]
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
position = Vector2(-160, -160)
|
||||
scale = Vector2(320, 320)
|
||||
texture = ExtResource("1_ppyta")
|
||||
texture = ExtResource("1_vbegm")
|
||||
|
||||
[node name="Snake" type="Node2D" parent="." node_paths=PackedStringArray("segements_holder", "snake_line", "player")]
|
||||
script = ExtResource("1_6uqi0")
|
||||
segements_holder = NodePath("SegementHolder")
|
||||
SNAKE_SPEED = 0.3
|
||||
SNAKE_SPEED = 0.6
|
||||
snake_line = NodePath("Line2D")
|
||||
player = NodePath("SegementHolder/SnakeSegment/Braincell")
|
||||
|
||||
|
|
@ -43,7 +45,27 @@ begin_cap_mode = 2
|
|||
end_cap_mode = 2
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="." node_paths=PackedStringArray("snake_line", "player")]
|
||||
zoom = Vector2(0.05, 0.05)
|
||||
zoom = Vector2(0.1, 0.1)
|
||||
script = ExtResource("5_ykrsh")
|
||||
snake_line = NodePath("../Snake/Line2D")
|
||||
player = NodePath("../Snake/SegementHolder/SnakeSegment/Braincell")
|
||||
|
||||
[node name="Apple" parent="." instance=ExtResource("6_g14j6")]
|
||||
position = Vector2(1276, -954)
|
||||
|
||||
[node name="Apple2" parent="." instance=ExtResource("6_g14j6")]
|
||||
position = Vector2(960, 1280)
|
||||
|
||||
[node name="Wall" parent="." instance=ExtResource("7_vbegm")]
|
||||
position = Vector2(-160, -1920)
|
||||
|
||||
[node name="Wall2" parent="." instance=ExtResource("7_vbegm")]
|
||||
position = Vector2(-160, 1600)
|
||||
|
||||
[node name="Wall3" parent="." instance=ExtResource("7_vbegm")]
|
||||
position = Vector2(-1920, -160)
|
||||
rotation = 1.5708
|
||||
|
||||
[node name="Wall4" parent="." instance=ExtResource("7_vbegm")]
|
||||
position = Vector2(1600, -160)
|
||||
rotation = 1.5708
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue