summaryrefslogtreecommitdiff
path: root/item
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-12-26 11:29:04 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-12-26 11:29:04 +0100
commitd572bc0a27b05c6632ba76bd630c7c4fd8f0ae5d (patch)
tree8bffeb9f025dc1c77bc53b65caf10d9b1fab5f2c /item
initial commit
Diffstat (limited to 'item')
-rw-r--r--item/assets/hurt.oggbin0 -> 5747 bytes
-rw-r--r--item/assets/hurt.ogg.import19
-rw-r--r--item/assets/item-crown.pngbin0 -> 305 bytes
-rw-r--r--item/assets/item-crown.png.import34
-rw-r--r--item/assets/item-shoe.pngbin0 -> 247 bytes
-rw-r--r--item/assets/item-shoe.png.import34
-rw-r--r--item/assets/item_pickup.flacbin0 -> 19284 bytes
-rw-r--r--item/assets/item_pickup.oggbin0 -> 7968 bytes
-rw-r--r--item/assets/item_pickup.ogg.import19
-rw-r--r--item/assets/sfx_-_success.oggbin0 -> 58364 bytes
-rw-r--r--item/assets/sfx_-_success.ogg.import19
-rw-r--r--item/crown.gd7
-rw-r--r--item/crown.tscn11
-rw-r--r--item/item-crown.krabin0 -> 31568 bytes
-rw-r--r--item/item-shoe.krabin0 -> 31219 bytes
-rw-r--r--item/item.gd6
-rw-r--r--item/item.tscn22
-rw-r--r--item/item_pickup.flacbin0 -> 19284 bytes
-rw-r--r--item/shoe.gd7
-rw-r--r--item/shoe.tscn11
20 files changed, 189 insertions, 0 deletions
diff --git a/item/assets/hurt.ogg b/item/assets/hurt.ogg
new file mode 100644
index 0000000..f824056
--- /dev/null
+++ b/item/assets/hurt.ogg
Binary files differ
diff --git a/item/assets/hurt.ogg.import b/item/assets/hurt.ogg.import
new file mode 100644
index 0000000..e9875fc
--- /dev/null
+++ b/item/assets/hurt.ogg.import
@@ -0,0 +1,19 @@
+[remap]
+
+importer="oggvorbisstr"
+type="AudioStreamOggVorbis"
+uid="uid://dt7j663brwu3k"
+path="res://.godot/imported/hurt.ogg-70ee6cc8b521e110664ed33e18f38ac7.oggvorbisstr"
+
+[deps]
+
+source_file="res://item/assets/hurt.ogg"
+dest_files=["res://.godot/imported/hurt.ogg-70ee6cc8b521e110664ed33e18f38ac7.oggvorbisstr"]
+
+[params]
+
+loop=false
+loop_offset=0
+bpm=0
+beat_count=0
+bar_beats=4
diff --git a/item/assets/item-crown.png b/item/assets/item-crown.png
new file mode 100644
index 0000000..56efa7a
--- /dev/null
+++ b/item/assets/item-crown.png
Binary files differ
diff --git a/item/assets/item-crown.png.import b/item/assets/item-crown.png.import
new file mode 100644
index 0000000..6f3c73c
--- /dev/null
+++ b/item/assets/item-crown.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://wp7r2fnlaty5"
+path="res://.godot/imported/item-crown.png-ec868573b1dc0cd10108d94b8a454b1b.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://item/assets/item-crown.png"
+dest_files=["res://.godot/imported/item-crown.png-ec868573b1dc0cd10108d94b8a454b1b.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
diff --git a/item/assets/item-shoe.png b/item/assets/item-shoe.png
new file mode 100644
index 0000000..fa2a6ae
--- /dev/null
+++ b/item/assets/item-shoe.png
Binary files differ
diff --git a/item/assets/item-shoe.png.import b/item/assets/item-shoe.png.import
new file mode 100644
index 0000000..8f43447
--- /dev/null
+++ b/item/assets/item-shoe.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://d12cln2og1pon"
+path="res://.godot/imported/item-shoe.png-e12e4c5ea27054908dc8103fd004bc0e.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://item/assets/item-shoe.png"
+dest_files=["res://.godot/imported/item-shoe.png-e12e4c5ea27054908dc8103fd004bc0e.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
diff --git a/item/assets/item_pickup.flac b/item/assets/item_pickup.flac
new file mode 100644
index 0000000..7af81d8
--- /dev/null
+++ b/item/assets/item_pickup.flac
Binary files differ
diff --git a/item/assets/item_pickup.ogg b/item/assets/item_pickup.ogg
new file mode 100644
index 0000000..a3b7efa
--- /dev/null
+++ b/item/assets/item_pickup.ogg
Binary files differ
diff --git a/item/assets/item_pickup.ogg.import b/item/assets/item_pickup.ogg.import
new file mode 100644
index 0000000..248be74
--- /dev/null
+++ b/item/assets/item_pickup.ogg.import
@@ -0,0 +1,19 @@
+[remap]
+
+importer="oggvorbisstr"
+type="AudioStreamOggVorbis"
+uid="uid://c3pvnjmmcmyor"
+path="res://.godot/imported/item_pickup.ogg-bbbc329c8dfb09e723abd2fbea1c1417.oggvorbisstr"
+
+[deps]
+
+source_file="res://item/assets/item_pickup.ogg"
+dest_files=["res://.godot/imported/item_pickup.ogg-bbbc329c8dfb09e723abd2fbea1c1417.oggvorbisstr"]
+
+[params]
+
+loop=false
+loop_offset=0
+bpm=0
+beat_count=0
+bar_beats=4
diff --git a/item/assets/sfx_-_success.ogg b/item/assets/sfx_-_success.ogg
new file mode 100644
index 0000000..761468a
--- /dev/null
+++ b/item/assets/sfx_-_success.ogg
Binary files differ
diff --git a/item/assets/sfx_-_success.ogg.import b/item/assets/sfx_-_success.ogg.import
new file mode 100644
index 0000000..aade728
--- /dev/null
+++ b/item/assets/sfx_-_success.ogg.import
@@ -0,0 +1,19 @@
+[remap]
+
+importer="oggvorbisstr"
+type="AudioStreamOggVorbis"
+uid="uid://b7ijltkkhtl0"
+path="res://.godot/imported/sfx_-_success.ogg-83f02af82e030026e9833067c3de9acd.oggvorbisstr"
+
+[deps]
+
+source_file="res://item/assets/sfx_-_success.ogg"
+dest_files=["res://.godot/imported/sfx_-_success.ogg-83f02af82e030026e9833067c3de9acd.oggvorbisstr"]
+
+[params]
+
+loop=false
+loop_offset=0
+bpm=0
+beat_count=0
+bar_beats=4
diff --git a/item/crown.gd b/item/crown.gd
new file mode 100644
index 0000000..3ff1c84
--- /dev/null
+++ b/item/crown.gd
@@ -0,0 +1,7 @@
+extends Item
+
+
+func apply(player: Player):
+ SoundManager.get_node("ItemPickUpCrown").play()
+ player.change_type_random()
+ queue_free()
diff --git a/item/crown.tscn b/item/crown.tscn
new file mode 100644
index 0000000..0d38cb9
--- /dev/null
+++ b/item/crown.tscn
@@ -0,0 +1,11 @@
+[gd_scene load_steps=4 format=3 uid="uid://05jcjn7fw7iu"]
+
+[ext_resource type="PackedScene" uid="uid://36cam5oaj8p5" path="res://item/item.tscn" id="1_4htir"]
+[ext_resource type="Script" path="res://item/crown.gd" id="2_74yne"]
+[ext_resource type="Texture2D" uid="uid://wp7r2fnlaty5" path="res://item/assets/item-crown.png" id="3_ejtdy"]
+
+[node name="Crown" instance=ExtResource("1_4htir")]
+script = ExtResource("2_74yne")
+
+[node name="Sprite2D" parent="." index="0"]
+texture = ExtResource("3_ejtdy")
diff --git a/item/item-crown.kra b/item/item-crown.kra
new file mode 100644
index 0000000..d558a50
--- /dev/null
+++ b/item/item-crown.kra
Binary files differ
diff --git a/item/item-shoe.kra b/item/item-shoe.kra
new file mode 100644
index 0000000..ad5d1a5
--- /dev/null
+++ b/item/item-shoe.kra
Binary files differ
diff --git a/item/item.gd b/item/item.gd
new file mode 100644
index 0000000..4f99999
--- /dev/null
+++ b/item/item.gd
@@ -0,0 +1,6 @@
+class_name Item
+extends Node2D
+
+
+func apply(_player: Player):
+ pass
diff --git a/item/item.tscn b/item/item.tscn
new file mode 100644
index 0000000..ee13cda
--- /dev/null
+++ b/item/item.tscn
@@ -0,0 +1,22 @@
+[gd_scene load_steps=3 format=3 uid="uid://36cam5oaj8p5"]
+
+[ext_resource type="Script" path="res://item/item.gd" id="1_xhv56"]
+
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_23apt"]
+size = Vector2(16, 16)
+
+[node name="Item" type="Node2D"]
+script = ExtResource("1_xhv56")
+
+[node name="Sprite2D" type="Sprite2D" parent="."]
+texture_filter = 1
+position = Vector2(-8, -8)
+centered = false
+
+[node name="Area2D" type="Area2D" parent="." groups=["item"]]
+visible = false
+collision_layer = 16
+collision_mask = 0
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
+shape = SubResource("RectangleShape2D_23apt")
diff --git a/item/item_pickup.flac b/item/item_pickup.flac
new file mode 100644
index 0000000..7af81d8
--- /dev/null
+++ b/item/item_pickup.flac
Binary files differ
diff --git a/item/shoe.gd b/item/shoe.gd
new file mode 100644
index 0000000..821af95
--- /dev/null
+++ b/item/shoe.gd
@@ -0,0 +1,7 @@
+extends Item
+
+
+func apply(player: Player):
+ SoundManager.get_node("ItemPickUpShoe").play()
+ player.speed_modifier = min(player.speed_modifier + 0.5, 2.0)
+ queue_free()
diff --git a/item/shoe.tscn b/item/shoe.tscn
new file mode 100644
index 0000000..c35facd
--- /dev/null
+++ b/item/shoe.tscn
@@ -0,0 +1,11 @@
+[gd_scene load_steps=4 format=3 uid="uid://bpl6aiic6muas"]
+
+[ext_resource type="PackedScene" uid="uid://36cam5oaj8p5" path="res://item/item.tscn" id="1_1i4gm"]
+[ext_resource type="Script" path="res://item/shoe.gd" id="2_byls7"]
+[ext_resource type="Texture2D" uid="uid://d12cln2og1pon" path="res://item/assets/item-shoe.png" id="3_n8grx"]
+
+[node name="Shoe" instance=ExtResource("1_1i4gm")]
+script = ExtResource("2_byls7")
+
+[node name="Sprite2D" parent="." index="0"]
+texture = ExtResource("3_n8grx")