From d572bc0a27b05c6632ba76bd630c7c4fd8f0ae5d Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 26 Dec 2024 11:29:04 +0100 Subject: initial commit --- item/assets/hurt.ogg | Bin 0 -> 5747 bytes item/assets/hurt.ogg.import | 19 +++++++++++++++++++ item/assets/item-crown.png | Bin 0 -> 305 bytes item/assets/item-crown.png.import | 34 ++++++++++++++++++++++++++++++++++ item/assets/item-shoe.png | Bin 0 -> 247 bytes item/assets/item-shoe.png.import | 34 ++++++++++++++++++++++++++++++++++ item/assets/item_pickup.flac | Bin 0 -> 19284 bytes item/assets/item_pickup.ogg | Bin 0 -> 7968 bytes item/assets/item_pickup.ogg.import | 19 +++++++++++++++++++ item/assets/sfx_-_success.ogg | Bin 0 -> 58364 bytes item/assets/sfx_-_success.ogg.import | 19 +++++++++++++++++++ item/crown.gd | 7 +++++++ item/crown.tscn | 11 +++++++++++ item/item-crown.kra | Bin 0 -> 31568 bytes item/item-shoe.kra | Bin 0 -> 31219 bytes item/item.gd | 6 ++++++ item/item.tscn | 22 ++++++++++++++++++++++ item/item_pickup.flac | Bin 0 -> 19284 bytes item/shoe.gd | 7 +++++++ item/shoe.tscn | 11 +++++++++++ 20 files changed, 189 insertions(+) create mode 100644 item/assets/hurt.ogg create mode 100644 item/assets/hurt.ogg.import create mode 100644 item/assets/item-crown.png create mode 100644 item/assets/item-crown.png.import create mode 100644 item/assets/item-shoe.png create mode 100644 item/assets/item-shoe.png.import create mode 100644 item/assets/item_pickup.flac create mode 100644 item/assets/item_pickup.ogg create mode 100644 item/assets/item_pickup.ogg.import create mode 100644 item/assets/sfx_-_success.ogg create mode 100644 item/assets/sfx_-_success.ogg.import create mode 100644 item/crown.gd create mode 100644 item/crown.tscn create mode 100644 item/item-crown.kra create mode 100644 item/item-shoe.kra create mode 100644 item/item.gd create mode 100644 item/item.tscn create mode 100644 item/item_pickup.flac create mode 100644 item/shoe.gd create mode 100644 item/shoe.tscn (limited to 'item') diff --git a/item/assets/hurt.ogg b/item/assets/hurt.ogg new file mode 100644 index 0000000..f824056 Binary files /dev/null and b/item/assets/hurt.ogg 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 Binary files /dev/null and b/item/assets/item-crown.png 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 Binary files /dev/null and b/item/assets/item-shoe.png 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 Binary files /dev/null and b/item/assets/item_pickup.flac differ diff --git a/item/assets/item_pickup.ogg b/item/assets/item_pickup.ogg new file mode 100644 index 0000000..a3b7efa Binary files /dev/null and b/item/assets/item_pickup.ogg 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 Binary files /dev/null and b/item/assets/sfx_-_success.ogg 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 Binary files /dev/null and b/item/item-crown.kra differ diff --git a/item/item-shoe.kra b/item/item-shoe.kra new file mode 100644 index 0000000..ad5d1a5 Binary files /dev/null and b/item/item-shoe.kra 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 Binary files /dev/null and b/item/item_pickup.flac 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") -- cgit v1.2.3