basic map / player movement

This commit is contained in:
2024-02-10 08:00:06 -06:00
commit 0758d3663b
11 changed files with 277 additions and 0 deletions

89
scene/maze_1.tscn Normal file

File diff suppressed because one or more lines are too long

25
scene/player.tscn Normal file
View File

@@ -0,0 +1,25 @@
[gd_scene load_steps=5 format=3 uid="uid://cd57rr2jffwqu"]
[ext_resource type="Script" path="res://player.gd" id="1_yhpqp"]
[ext_resource type="Texture2D" uid="uid://bsrmtons1ov7x" path="res://assets/maze.png" id="2_1jodf"]
[sub_resource type="AtlasTexture" id="AtlasTexture_75d0y"]
atlas = ExtResource("2_1jodf")
region = Rect2(48, 0, 16, 16)
[sub_resource type="CircleShape2D" id="CircleShape2D_c7wcn"]
radius = 6.0
[node name="Player" type="CharacterBody2D"]
script = ExtResource("1_yhpqp")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_75d0y")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_c7wcn")
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2(6, 6)
position_smoothing_enabled = true
position_smoothing_speed = 16.0