feat: add game scene and player scene

This commit is contained in:
2025-03-01 15:04:45 +01:00
parent 121f612c27
commit c921728f4c
5 changed files with 42 additions and 0 deletions

23
scenes/player.tscn Normal file
View File

@@ -0,0 +1,23 @@
[gd_scene load_steps=5 format=3 uid="uid://dy71gkll44btc"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_jlots"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_scfaw"]
size = Vector2(80, 124)
[sub_resource type="Gradient" id="Gradient_pnm6c"]
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_wyt1d"]
gradient = SubResource("Gradient_pnm6c")
[node name="Player" type="CharacterBody2D"]
motion_mode = 1
script = ExtResource("1_jlots")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_scfaw")
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.3125, 126)
texture = SubResource("GradientTexture1D_wyt1d")