new player hierarchy + hat setup

This commit is contained in:
Lucas 2024-07-22 17:35:46 +02:00
parent d124fa594b
commit 65b3c4a34b
4 changed files with 45 additions and 5 deletions

View file

@ -2,7 +2,7 @@
[ext_resource type="Script" path="res://player.gd" id="1_0pgv8"]
[ext_resource type="Texture2D" uid="uid://5pmqr3y62guu" path="res://player/currentCloth.tres" id="2_45h8h"]
[ext_resource type="Texture2D" uid="uid://hc35pmqglb14" path="res://extracted/Texture2D/Whitch Hat.png" id="3_bsp0f"]
[ext_resource type="Texture2D" uid="uid://5qixrbrclydr" path="res://player/currentHat.tres" id="3_qyf3b"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_kapu3"]
size = Vector2(192, 256)
@ -153,8 +153,8 @@ region_enabled = true
region_rect = Rect2(0, 0, 512, 640)
[node name="Hat" type="Sprite2D" parent="Head"]
position = Vector2(80, -24)
scale = Vector2(0.531579, 0.531579)
texture = ExtResource("3_bsp0f")
position = Vector2(66, 66)
scale = Vector2(0.6, 0.6)
texture = ExtResource("3_qyf3b")
region_enabled = true
region_rect = Rect2(18, 179, 1139, 665)
region_rect = Rect2(0, 0, 1152, 1136)

6
player/currentHat.tres Normal file
View file

@ -0,0 +1,6 @@
[gd_resource type="CanvasTexture" load_steps=2 format=3 uid="uid://5qixrbrclydr"]
[ext_resource type="Texture2D" uid="uid://pkf86c0n3xig" path="res://extracted/Texture2D/Whitch Hat #62998.png" id="1_7652k"]
[resource]
diffuse_texture = ExtResource("1_7652k")

BIN
player/hat-layout.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://4uytb8rfy2su"
path="res://.godot/imported/hat-layout.jpg-ebdfb0401e800b34d514cfcf52d1d4a6.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://player/hat-layout.jpg"
dest_files=["res://.godot/imported/hat-layout.jpg-ebdfb0401e800b34d514cfcf52d1d4a6.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1