diff --git a/src/Menus/DragNDrop/DragNDropUI.tscn b/src/Menus/DragNDrop/DragNDropUI.tscn index 52f2bde..a8e07b1 100644 --- a/src/Menus/DragNDrop/DragNDropUI.tscn +++ b/src/Menus/DragNDrop/DragNDropUI.tscn @@ -1,13 +1,14 @@ -[gd_scene load_steps=9 format=2] +[gd_scene load_steps=10 format=2] [ext_resource path="res://Menus/DragNDrop/DragSource.tscn" type="PackedScene" id=1] [ext_resource path="res://Menus/DragNDrop/DragSink.tscn" type="PackedScene" id=2] [ext_resource path="res://Objects/Banana/Banana.tscn" type="PackedScene" id=3] -[ext_resource path="res://testSprites/bannane.png" type="Texture" id=4] +[ext_resource path="res://Objects/Banana/icon.png" type="Texture" id=4] [ext_resource path="res://Objects/Traps/Bear/bear.jpg" type="Texture" id=5] [ext_resource path="res://Objects/Traps/bear.tscn" type="PackedScene" id=6] [ext_resource path="res://Objects/Traps/Bear/Animation/0012.png" type="Texture" id=7] [ext_resource path="res://Menus/DragNDrop/DragNDropUI.gd" type="Script" id=8] +[ext_resource path="res://Objects/Banana/mouse_follow.png" type="Texture" id=9] [node name="DragNDropUI" type="Control"] anchor_right = 1.0 @@ -26,7 +27,7 @@ margin_right = 43.9239 margin_bottom = 252.793 texture = ExtResource( 4 ) Item = ExtResource( 3 ) -PreviewIcon = ExtResource( 4 ) +PreviewIcon = ExtResource( 9 ) [node name="GenericCard2" parent="." instance=ExtResource( 1 )] margin_left = 69.0145 diff --git a/src/Objects/Banana/Banana.gd b/src/Objects/Banana/Banana.gd new file mode 100644 index 0000000..3bfd32c --- /dev/null +++ b/src/Objects/Banana/Banana.gd @@ -0,0 +1,8 @@ +extends AnimatedSprite + +func _ready(): + play("place") + + +func _on_Hurtbox_area_entered(area): + queue_free() diff --git a/src/Objects/Banana/Banana.tscn b/src/Objects/Banana/Banana.tscn index 4e28045..ea62b8f 100644 --- a/src/Objects/Banana/Banana.tscn +++ b/src/Objects/Banana/Banana.tscn @@ -1,25 +1,83 @@ -[gd_scene load_steps=6 format=2] +[gd_scene load_steps=20 format=2] [ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=1] -[ext_resource path="res://Objects/Banana/Bannana.gd" type="Script" id=2] -[ext_resource path="res://testSprites/bannane.png" type="Texture" id=3] +[ext_resource path="res://Objects/Banana/Banana.gd" type="Script" id=2] +[ext_resource path="res://Objects/Banana/animation.png" type="Texture" id=3] [ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=4] +[sub_resource type="AtlasTexture" id=2] +atlas = ExtResource( 3 ) +region = Rect2( 0, 0, 40, 40 ) + +[sub_resource type="AtlasTexture" id=3] +atlas = ExtResource( 3 ) +region = Rect2( 40, 0, 40, 40 ) + +[sub_resource type="AtlasTexture" id=4] +atlas = ExtResource( 3 ) +region = Rect2( 80, 0, 40, 40 ) + +[sub_resource type="AtlasTexture" id=5] +atlas = ExtResource( 3 ) +region = Rect2( 120, 0, 40, 40 ) + +[sub_resource type="AtlasTexture" id=6] +atlas = ExtResource( 3 ) +region = Rect2( 160, 0, 40, 40 ) + +[sub_resource type="AtlasTexture" id=7] +atlas = ExtResource( 3 ) +region = Rect2( 200, 0, 40, 40 ) + +[sub_resource type="AtlasTexture" id=8] +atlas = ExtResource( 3 ) +region = Rect2( 240, 0, 40, 40 ) + +[sub_resource type="AtlasTexture" id=9] +atlas = ExtResource( 3 ) +region = Rect2( 280, 0, 40, 40 ) + +[sub_resource type="AtlasTexture" id=10] +atlas = ExtResource( 3 ) +region = Rect2( 320, 0, 40, 40 ) + +[sub_resource type="AtlasTexture" id=11] +atlas = ExtResource( 3 ) +region = Rect2( 360, 0, 40, 40 ) + +[sub_resource type="AtlasTexture" id=12] +atlas = ExtResource( 3 ) +region = Rect2( 400, 0, 40, 40 ) + +[sub_resource type="AtlasTexture" id=13] +atlas = ExtResource( 3 ) +region = Rect2( 440, 0, 40, 40 ) + +[sub_resource type="AtlasTexture" id=14] +atlas = ExtResource( 3 ) +region = Rect2( 480, 0, 40, 40 ) + +[sub_resource type="SpriteFrames" id=15] +animations = [ { +"frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ) ], +"loop": false, +"name": "place", +"speed": 60.0 +} ] + [sub_resource type="CapsuleShape2D" id=1] radius = 7.54726 height = 12.1493 -[node name="Banana" type="Node2D"] +[node name="Banana" type="AnimatedSprite"] +frames = SubResource( 15 ) +animation = "place" script = ExtResource( 2 ) [node name="Kind" parent="." instance=ExtResource( 4 )] general = 2 kind = 10 -[node name="Sprite" type="Sprite" parent="."] -position = Vector2( 1.54256, -4.73786 ) -texture = ExtResource( 3 ) - [node name="Hurtbox" parent="." instance=ExtResource( 1 )] position = Vector2( 1.54256, -4.73786 ) collision_layer = 32 diff --git a/src/Objects/Banana/Bannana.gd b/src/Objects/Banana/Bannana.gd deleted file mode 100644 index 92da9f6..0000000 --- a/src/Objects/Banana/Bannana.gd +++ /dev/null @@ -1,5 +0,0 @@ -extends Node2D - - -func _on_Hurtbox_area_entered(area): - queue_free() diff --git a/src/Objects/Banana/animation.png b/src/Objects/Banana/animation.png new file mode 100644 index 0000000..7a652e7 Binary files /dev/null and b/src/Objects/Banana/animation.png differ diff --git a/src/Objects/Banana/animation.png.import b/src/Objects/Banana/animation.png.import new file mode 100644 index 0000000..438ce94 --- /dev/null +++ b/src/Objects/Banana/animation.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/animation.png-1da805c2da35e7e6c661d9596a57f750.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Objects/Banana/animation.png" +dest_files=[ "res://.import/animation.png-1da805c2da35e7e6c661d9596a57f750.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/src/Objects/Banana/icon.png b/src/Objects/Banana/icon.png new file mode 100644 index 0000000..84912be Binary files /dev/null and b/src/Objects/Banana/icon.png differ diff --git a/src/Objects/Banana/icon.png.import b/src/Objects/Banana/icon.png.import new file mode 100644 index 0000000..7ef22b2 --- /dev/null +++ b/src/Objects/Banana/icon.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-9dc4caad05920b6cd30b7c767b233c2a.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Objects/Banana/icon.png" +dest_files=[ "res://.import/icon.png-9dc4caad05920b6cd30b7c767b233c2a.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/src/Objects/Banana/mouse_follow.png b/src/Objects/Banana/mouse_follow.png new file mode 100644 index 0000000..740f005 Binary files /dev/null and b/src/Objects/Banana/mouse_follow.png differ diff --git a/src/Objects/Banana/mouse_follow.png.import b/src/Objects/Banana/mouse_follow.png.import new file mode 100644 index 0000000..c784602 --- /dev/null +++ b/src/Objects/Banana/mouse_follow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/mouse_follow.png-999aae3065fa4a723899678a470caab4.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Objects/Banana/mouse_follow.png" +dest_files=[ "res://.import/mouse_follow.png-999aae3065fa4a723899678a470caab4.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/src/Objects/Traps/Spike.tscn b/src/Objects/Traps/Spike.tscn index 8991297..2ab999c 100644 --- a/src/Objects/Traps/Spike.tscn +++ b/src/Objects/Traps/Spike.tscn @@ -1,10 +1,11 @@ [gd_scene load_steps=6 format=2] [ext_resource path="res://Overlap/HurtHit_Box/Hitbox.tscn" type="PackedScene" id=1] -[ext_resource path="res://Objects/Banana/Bannana.gd" type="Script" id=2] +[ext_resource path="res://Objects/Banana/Banana.gd" type="Script" id=2] [ext_resource path="res://testSprites/Spike.png" type="Texture" id=3] [ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=4] + [sub_resource type="CapsuleShape2D" id=1] height = 6.36237 diff --git a/src/Objects/Traps/Sting.tscn b/src/Objects/Traps/Sting.tscn index f640195..a55bc66 100644 --- a/src/Objects/Traps/Sting.tscn +++ b/src/Objects/Traps/Sting.tscn @@ -1,10 +1,11 @@ [gd_scene load_steps=6 format=2] [ext_resource path="res://Overlap/HurtHit_Box/Hitbox.tscn" type="PackedScene" id=1] -[ext_resource path="res://Objects/Banana/Bannana.gd" type="Script" id=2] +[ext_resource path="res://Objects/Banana/Banana.gd" type="Script" id=2] [ext_resource path="res://testSprites/Sting.png" type="Texture" id=3] [ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=4] + [sub_resource type="CapsuleShape2D" id=1] radius = 6.77597 height = 6.36237