diff --git a/art/hats/pickup_sprite.png b/art/hats/pickup_sprite.png new file mode 100644 index 0000000..79b020a Binary files /dev/null and b/art/hats/pickup_sprite.png differ diff --git a/art/hats/pickup_sprite.png.import b/art/hats/pickup_sprite.png.import new file mode 100644 index 0000000..a7b4fcc --- /dev/null +++ b/art/hats/pickup_sprite.png.import @@ -0,0 +1,43 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://qm5i00us5qaf" +path="res://.godot/imported/pickup_sprite.png-9ccf730289cc3dabf540e4bf37dff84b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://art/hats/pickup_sprite.png" +dest_files=["res://.godot/imported/pickup_sprite.png-9ccf730289cc3dabf540e4bf37dff84b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/high_quality_mode=0 +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +mipmaps/preserve_alpha_test_coverage=false +mipmaps/alpha_test_threshold=0.5 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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 diff --git a/hat_pickup.gd b/hat_pickup.gd index b72a452..fc1dfb2 100644 --- a/hat_pickup.gd +++ b/hat_pickup.gd @@ -1,11 +1,11 @@ extends Node2D -@export var hat_type:= "dunce1" +@export var hat_type:= "" var hat_texture = load("res://art/hats/" + str(hat_type) + ".png") func _ready() -> void: - pass + hat_texture = load("res://art/hats/" + str(hat_type) + ".png") func _process(delta: float) -> void: pass diff --git a/hat_pickup.tscn b/hat_pickup.tscn index 50e37a4..acc1cbe 100644 --- a/hat_pickup.tscn +++ b/hat_pickup.tscn @@ -1,7 +1,7 @@ [gd_scene format=3 uid="uid://bnuiagw3bblfh"] [ext_resource type="Script" uid="uid://47y55iry2pd6" path="res://hat_pickup.gd" id="1_fs7cl"] -[ext_resource type="Texture2D" uid="uid://ba4kjeulthw1g" path="res://art/hats/dunce1.png" id="2_fs7cl"] +[ext_resource type="Texture2D" uid="uid://qm5i00us5qaf" path="res://art/hats/pickup_sprite.png" id="2_fs7cl"] [sub_resource type="CircleShape2D" id="CircleShape2D_y0cpo"] diff --git a/world.tscn b/world.tscn index 67e871a..ff8b762 100644 --- a/world.tscn +++ b/world.tscn @@ -2669,7 +2669,9 @@ position = Vector2(8321, -1772.382) position = Vector2(8520, -1950.6049) [node name="HatPickup" parent="." unique_id=812970241 instance=ExtResource("38_yx0jh")] -position = Vector2(-4677, 352.50708) +position = Vector2(-4924, 220.5631) +rotation = 0.014323293 +hat_type = "dunce1" [node name="DebugPortals" type="Node2D" parent="." unique_id=1727548024 groups=["Debug Mode Only"]] @@ -2753,9 +2755,11 @@ position = Vector2(-4150, 460.8193) [node name="HatPickup2" parent="." unique_id=307172210 instance=ExtResource("38_yx0jh")] position = Vector2(9596, -1253.4679) +hat_type = "pope1" [node name="HatPickup3" parent="." unique_id=875650398 instance=ExtResource("38_yx0jh")] position = Vector2(7700, 929.51587) +hat_type = "cap1" [node name="HatPickup4" parent="." unique_id=1755769172 instance=ExtResource("38_yx0jh")] position = Vector2(8510, -958.0709)