freettrpg/testing/test/player.tscn
Patrick_Pluto 21bcce37fa Version: 0.0.3
Slight code fixups and changed some map stuff, Also added a stat viewer for the current player in the game itself.
2024-06-16 19:32:19 +02:00

31 lines
950 B
Text

[gd_scene load_steps=4 format=3 uid="uid://dv67vdgb4h44q"]
[ext_resource type="Texture2D" uid="uid://dheqglouhkis6" path="res://testing/testAssets/player.png" id="1_cujcj"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_oik63"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_kf6qt"]
size = Vector2(20, 18)
[node name="player" type="CharacterBody2D"]
script = ExtResource("1_oik63")
[node name="sprite" type="Sprite2D" parent="."]
texture = ExtResource("1_cujcj")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_kf6qt")
[node name="camera" type="Camera2D" parent="."]
enabled = false
[node name="stats" type="Button" parent="."]
visible = false
offset_left = 112.0
offset_top = 152.0
offset_right = 238.0
offset_bottom = 187.0
scale = Vector2(2, 2)
disabled = true
text = "Stats"
[connection signal="pressed" from="stats" to="." method="_on_stats_pressed"]