basic map / player movement
This commit is contained in:
25
scene/player.tscn
Normal file
25
scene/player.tscn
Normal 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
|
||||
Reference in New Issue
Block a user