Added Gameplay Animations and Functionality

- Added clap animation for bear trap
- Added cards in menu bar
- Replaced old bear_trap icon with new one
This commit is contained in:
2020-04-20 00:19:06 +02:00
parent 02b56fb6f5
commit 32ccb24012
74 changed files with 1251 additions and 28 deletions

View File

@@ -1,11 +1,12 @@
[gd_scene load_steps=8 format=2]
[gd_scene load_steps=9 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://testSprites/falle.png" type="Texture" id=5]
[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]
[sub_resource type="GDScript" id=1]
script/source = "extends Control
@@ -23,27 +24,45 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="DragSourceBanana" parent="." instance=ExtResource( 1 )]
margin_left = 13.5128
margin_top = 238.668
margin_right = 45.5128
margin_bottom = 270.668
[node name="GenericCard1" parent="." instance=ExtResource( 1 )]
margin_left = 11.9239
margin_top = 220.793
margin_right = 43.9239
margin_bottom = 252.793
texture = ExtResource( 4 )
Item = ExtResource( 3 )
PreviewIcon = ExtResource( 4 )
[node name="DragSourceFalle" parent="." instance=ExtResource( 1 )]
margin_left = 45.5128
margin_top = 238.668
margin_right = 77.5128
margin_bottom = 270.668
[node name="GenericCard2" parent="." instance=ExtResource( 1 )]
margin_left = 69.0145
margin_top = 221.191
margin_right = 101.014
margin_bottom = 253.191
texture = ExtResource( 5 )
Item = ExtResource( 6 )
PreviewIcon = ExtResource( 5 )
PreviewIcon = ExtResource( 7 )
[node name="GenericCard3" parent="." instance=ExtResource( 1 )]
margin_left = 124.812
margin_top = 220.859
margin_right = 156.812
margin_bottom = 252.859
[node name="GenericCard4" parent="." instance=ExtResource( 1 )]
margin_left = 180.718
margin_top = 220.859
margin_right = 212.718
margin_bottom = 252.859
[node name="GenericCard5" parent="." instance=ExtResource( 1 )]
margin_left = 237.404
margin_top = 221.267
margin_right = 269.404
margin_bottom = 253.267
[node name="DragSink" parent="." instance=ExtResource( 2 )]
anchor_right = 1.002
anchor_bottom = 0.87
margin_left = 1.0
margin_right = 0.0399475
margin_bottom = 0.0999756
margin_left = 2.0
margin_right = 0.0400085
margin_bottom = -30.9

View File

@@ -9,10 +9,15 @@ script/source = "extends Container
func can_drop_data(_pos, data):
return typeof(data) == typeof(PackedScene)
func get_nearest_grid_pos(position):
return Vector2(floor(position.x / 32.0) * 32, floor(position.y / 32.0) * 32)
#what is to be done when data is dropped
func drop_data(_pos, data:PackedScene):
var child = data.instance()
child.position= _pos
child.position = get_nearest_grid_pos(_pos)
get_node(get_parent().ObjectParent).add_child(child)
"

View File

@@ -1,6 +1,7 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=4 format=2]
[ext_resource path="res://icon.png" type="Texture" id=1]
[ext_resource path="res://Objects/Card/card.png" type="Texture" id=2]
[sub_resource type="GDScript" id=1]
script/source = "extends TextureRect
@@ -53,3 +54,8 @@ __meta__ = {
"_edit_use_anchors_": false
}
PreviewIcon = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 16.0791, 16.0117 )
z_index = -1
texture = ExtResource( 2 )

BIN
src/Objects/Card/card.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/card.png-8a52ea3fcf2334957e1af908bdd85da3.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Card/card.png"
dest_files=[ "res://.import/card.png-8a52ea3fcf2334957e1af908bdd85da3.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0000.png-e5c5f98ec59a6fd31ffa2e1d60f9b1d1.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0000.png"
dest_files=[ "res://.import/0000.png-e5c5f98ec59a6fd31ffa2e1d60f9b1d1.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0001.png-9df81f407fe3c1b9eac508724033e047.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0001.png"
dest_files=[ "res://.import/0001.png-9df81f407fe3c1b9eac508724033e047.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0002.png-cdc077fcfefba2748cca713f9bd2d611.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0002.png"
dest_files=[ "res://.import/0002.png-cdc077fcfefba2748cca713f9bd2d611.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0003.png-c5202fe83ab1e0e183e79cf57b581217.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0003.png"
dest_files=[ "res://.import/0003.png-c5202fe83ab1e0e183e79cf57b581217.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0004.png-6f18a07b50945b6208cec35706e344d2.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0004.png"
dest_files=[ "res://.import/0004.png-6f18a07b50945b6208cec35706e344d2.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0005.png-aa9a9d018316b2589b474bd0cf29c5e8.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0005.png"
dest_files=[ "res://.import/0005.png-aa9a9d018316b2589b474bd0cf29c5e8.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0006.png-4bb618801f5290b92956a677da7ea797.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0006.png"
dest_files=[ "res://.import/0006.png-4bb618801f5290b92956a677da7ea797.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0007.png-d2fe9b929e010cc9785024ef9b453a34.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0007.png"
dest_files=[ "res://.import/0007.png-d2fe9b929e010cc9785024ef9b453a34.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0008.png-4338ecdb194e3f5f3414a4903fe6eadc.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0008.png"
dest_files=[ "res://.import/0008.png-4338ecdb194e3f5f3414a4903fe6eadc.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0009.png-fa8a4a997670106a5af208b30c868a60.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0009.png"
dest_files=[ "res://.import/0009.png-fa8a4a997670106a5af208b30c868a60.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0010.png-10fea65c7ececd4604497b6742b51211.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0010.png"
dest_files=[ "res://.import/0010.png-10fea65c7ececd4604497b6742b51211.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0011.png-4f301b1d8e7f1cae78ad0014938d0257.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0011.png"
dest_files=[ "res://.import/0011.png-4f301b1d8e7f1cae78ad0014938d0257.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0012.png-cfe58ded128267406038238dcc1e541a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0012.png"
dest_files=[ "res://.import/0012.png-cfe58ded128267406038238dcc1e541a.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0013.png-d3699fa27fdabac3d0a7804a7428bec8.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0013.png"
dest_files=[ "res://.import/0013.png-d3699fa27fdabac3d0a7804a7428bec8.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0014.png-541a7c3e5773ae752b4068c3b99ae1e0.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0014.png"
dest_files=[ "res://.import/0014.png-541a7c3e5773ae752b4068c3b99ae1e0.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0015.png-c08651a5c171112f6caac805eebd363e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0015.png"
dest_files=[ "res://.import/0015.png-c08651a5c171112f6caac805eebd363e.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0016.png-df1885e11c6b65ccce6f6a9cdb88a770.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0016.png"
dest_files=[ "res://.import/0016.png-df1885e11c6b65ccce6f6a9cdb88a770.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0017.png-b7103633dd74f0f98ec9079bda1499e5.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0017.png"
dest_files=[ "res://.import/0017.png-b7103633dd74f0f98ec9079bda1499e5.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0018.png-497a1dc89cce76fc2ab1c5e38fa63a6f.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0018.png"
dest_files=[ "res://.import/0018.png-497a1dc89cce76fc2ab1c5e38fa63a6f.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0019.png-a958411d1d57f3e0fca32b00dc7c434d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0019.png"
dest_files=[ "res://.import/0019.png-a958411d1d57f3e0fca32b00dc7c434d.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0020.png-44b80d2ae978e682d336c22a8bb0d750.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0020.png"
dest_files=[ "res://.import/0020.png-44b80d2ae978e682d336c22a8bb0d750.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0021.png-e08841c64cb425b62c2582e90be4f286.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0021.png"
dest_files=[ "res://.import/0021.png-e08841c64cb425b62c2582e90be4f286.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0022.png-081346af78894b7c24fd5cc4a1913399.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0022.png"
dest_files=[ "res://.import/0022.png-081346af78894b7c24fd5cc4a1913399.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0023.png-714da5afbd13b66250faa778354bd6e9.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0023.png"
dest_files=[ "res://.import/0023.png-714da5afbd13b66250faa778354bd6e9.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0024.png-359be9f452c15ae04c99661262cb4d9c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0024.png"
dest_files=[ "res://.import/0024.png-359be9f452c15ae04c99661262cb4d9c.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0025.png-d9f80f4d06ff0542efa80cc1a5d8688e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0025.png"
dest_files=[ "res://.import/0025.png-d9f80f4d06ff0542efa80cc1a5d8688e.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0026.png-da664a7593fa4f7f6ebe270457af1aed.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0026.png"
dest_files=[ "res://.import/0026.png-da664a7593fa4f7f6ebe270457af1aed.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0027.png-505e5ca0c70f6b100cda0c0fcf0d2e71.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0027.png"
dest_files=[ "res://.import/0027.png-505e5ca0c70f6b100cda0c0fcf0d2e71.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0028.png-8997a4898db8bac63554fcdd8ddb00ee.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0028.png"
dest_files=[ "res://.import/0028.png-8997a4898db8bac63554fcdd8ddb00ee.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0029.png-2b6ae212df2e8b5c3a95f4cd46a5535c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0029.png"
dest_files=[ "res://.import/0029.png-2b6ae212df2e8b5c3a95f4cd46a5535c.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/0030.png-1a67e5c745c6c9fd545daa4239837b61.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/Animation/0030.png"
dest_files=[ "res://.import/0030.png-1a67e5c745c6c9fd545daa4239837b61.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/bear.jpg-b29183748b9b212469789f175925d154.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Objects/Traps/Bear/bear.jpg"
dest_files=[ "res://.import/bear.jpg-b29183748b9b212469789f175925d154.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

View File

@@ -1,4 +1,15 @@
extends Node2D
func _on_Hurtbox_area_entered(area):
queue_free()
$AnimatedSprite.play("clap")
func _ready():
$AnimatedSprite.play("place")
func _on_AnimatedSprite_animation_finished():
if $AnimatedSprite.get_animation() == "place":
$AnimatedSprite.play("still")
elif $AnimatedSprite.get_animation() == "clap":
queue_free()

View File

@@ -1,33 +1,82 @@
[gd_scene load_steps=8 format=2]
[gd_scene load_steps=39 format=2]
[ext_resource path="res://Objects/Traps/Bear.gd" type="Script" id=1]
[ext_resource path="res://Overlap/HurtHit_Box/Hitbox.tscn" type="PackedScene" id=2]
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=3]
[ext_resource path="res://testSprites/falle.png" type="Texture" id=4]
[ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=5]
[ext_resource path="res://Objects/Traps/Bear/Animation/0018.png" type="Texture" id=6]
[ext_resource path="res://Objects/Traps/Bear/Animation/0001.png" type="Texture" id=7]
[ext_resource path="res://Objects/Traps/Bear/Animation/0025.png" type="Texture" id=8]
[ext_resource path="res://Objects/Traps/Bear/Animation/0005.png" type="Texture" id=9]
[ext_resource path="res://Objects/Traps/Bear/Animation/0014.png" type="Texture" id=10]
[ext_resource path="res://Objects/Traps/Bear/Animation/0003.png" type="Texture" id=11]
[ext_resource path="res://Objects/Traps/Bear/Animation/0000.png" type="Texture" id=12]
[ext_resource path="res://Objects/Traps/Bear/Animation/0010.png" type="Texture" id=13]
[ext_resource path="res://Objects/Traps/Bear/Animation/0004.png" type="Texture" id=14]
[ext_resource path="res://Objects/Traps/Bear/Animation/0008.png" type="Texture" id=15]
[ext_resource path="res://Objects/Traps/Bear/Animation/0023.png" type="Texture" id=16]
[ext_resource path="res://Objects/Traps/Bear/Animation/0026.png" type="Texture" id=17]
[ext_resource path="res://Objects/Traps/Bear/Animation/0027.png" type="Texture" id=18]
[ext_resource path="res://Objects/Traps/Bear/Animation/0020.png" type="Texture" id=19]
[ext_resource path="res://Objects/Traps/Bear/Animation/0028.png" type="Texture" id=20]
[ext_resource path="res://Objects/Traps/Bear/Animation/0024.png" type="Texture" id=21]
[ext_resource path="res://Objects/Traps/Bear/Animation/0011.png" type="Texture" id=22]
[ext_resource path="res://Objects/Traps/Bear/Animation/0015.png" type="Texture" id=23]
[ext_resource path="res://Objects/Traps/Bear/Animation/0007.png" type="Texture" id=24]
[ext_resource path="res://Objects/Traps/Bear/Animation/0019.png" type="Texture" id=25]
[ext_resource path="res://Objects/Traps/Bear/Animation/0021.png" type="Texture" id=26]
[ext_resource path="res://Objects/Traps/Bear/Animation/0016.png" type="Texture" id=27]
[ext_resource path="res://Objects/Traps/Bear/Animation/0002.png" type="Texture" id=28]
[ext_resource path="res://Objects/Traps/Bear/Animation/0006.png" type="Texture" id=29]
[ext_resource path="res://Objects/Traps/Bear/Animation/0013.png" type="Texture" id=30]
[ext_resource path="res://Objects/Traps/Bear/Animation/0017.png" type="Texture" id=31]
[ext_resource path="res://Objects/Traps/Bear/Animation/0022.png" type="Texture" id=32]
[ext_resource path="res://Objects/Traps/Bear/Animation/0029.png" type="Texture" id=33]
[ext_resource path="res://Objects/Traps/Bear/Animation/0030.png" type="Texture" id=34]
[ext_resource path="res://Objects/Traps/Bear/Animation/0009.png" type="Texture" id=35]
[ext_resource path="res://Objects/Traps/Bear/Animation/0012.png" type="Texture" id=36]
[sub_resource type="CapsuleShape2D" id=1]
height = 9.0
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 12 ), ExtResource( 7 ), ExtResource( 28 ), ExtResource( 11 ), ExtResource( 14 ), ExtResource( 9 ), ExtResource( 29 ), ExtResource( 24 ), ExtResource( 15 ), ExtResource( 35 ), ExtResource( 13 ), ExtResource( 22 ) ],
"loop": false,
"name": "place",
"speed": 60.0
}, {
"frames": [ ExtResource( 30 ), ExtResource( 10 ), ExtResource( 23 ), ExtResource( 27 ), ExtResource( 31 ), ExtResource( 6 ), ExtResource( 25 ), ExtResource( 19 ), ExtResource( 26 ), ExtResource( 32 ), ExtResource( 16 ), ExtResource( 21 ), ExtResource( 8 ), ExtResource( 17 ), ExtResource( 18 ), ExtResource( 20 ), ExtResource( 33 ), ExtResource( 34 ) ],
"loop": false,
"name": "clap",
"speed": 60.0
}, {
"frames": [ ExtResource( 36 ) ],
"loop": false,
"name": "still",
"speed": 60.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
height = 9.0
[sub_resource type="CapsuleShape2D" id=3]
height = 9.0
[node name="Bear_trap" type="Node2D"]
script = ExtResource( 1 )
[node name="Kind" parent="." instance=ExtResource( 3 )]
kind = 10
[node name="Sprite" type="Sprite" parent="."]
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( -7.62939e-06, 0 )
texture = ExtResource( 4 )
frames = SubResource( 1 )
animation = "used"
[node name="Hitbox" parent="." instance=ExtResource( 2 )]
collision_layer = 16
[node name="CollisionShape2D" parent="Hitbox" index="0"]
rotation = 1.5708
shape = SubResource( 1 )
shape = SubResource( 2 )
[node name="Hurtbox" parent="." instance=ExtResource( 5 )]
collision_layer = 32
@@ -35,7 +84,8 @@ collision_mask = 0
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
rotation = 1.5708
shape = SubResource( 2 )
shape = SubResource( 3 )
[connection signal="animation_finished" from="AnimatedSprite" to="." method="_on_AnimatedSprite_animation_finished"]
[connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]
[editable path="Hitbox"]

View File

@@ -0,0 +1 @@
extends Node

View File

@@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://Overlap/Mechanics/Mechanics.gd" type="Script" id=1]
[node name="Core" type="Node"]
script = ExtResource( 1 )

View File

@@ -24,7 +24,7 @@ position = Vector2( 16, 16 )
tile_set = ExtResource( 3 )
cell_size = Vector2( 32, 32 )
format = 1
tile_data = PoolIntArray( -131059, 47, 0, -131058, 47, 2, -1, 47, 4, -65536, 47, 196609, -65535, 47, 196609, -65534, 47, 196609, -65533, 47, 196609, -65532, 47, 196609, -65531, 47, 196609, -65530, 47, 8, -65529, 47, 196609, -65528, 47, 8, -65527, 47, 196609, -65526, 47, 196609, -65525, 47, 196609, -65524, 47, 196609, -65523, 47, 196614, -65522, 47, 196618, -65521, 47, 196610, 65535, 47, 65539, 6, 47, 131075, 8, 47, 131075, 14, 47, 65539, 131071, 47, 65539, 65541, 47, 196611, 65550, 47, 65539, 196607, 47, 65539, 131075, 47, 196608, 131076, 47, 196610, 131086, 47, 65539, 262143, 47, 65539, 196614, 47, 196611, 196622, 47, 65539, 327679, 47, 65539, 262147, 47, 196611, 262149, 47, 196611, 262158, 47, 65539, 393215, 47, 65539, 327684, 47, 196611, 327688, 47, 196611, 327694, 47, 65539, 458751, 47, 65539, 393221, 47, 3, 393225, 47, 3, 393230, 47, 65539, 524287, 47, 196612, 458752, 47, 196609, 458753, 47, 196609, 458754, 47, 196609, 458755, 47, 196609, 458756, 47, 196609, 458757, 47, 196616, 458758, 47, 196609, 458759, 47, 196609, 458760, 47, 196609, 458761, 47, 196616, 458762, 47, 196609, 458763, 47, 196609, 458764, 47, 196609, 458765, 47, 196609, 458766, 47, 196615 )
tile_data = PoolIntArray( -1, 47, 4, -65536, 47, 196609, -65535, 47, 196609, -65534, 47, 196609, -65533, 47, 196609, -65532, 47, 196609, -65531, 47, 196609, -65530, 47, 8, -65529, 47, 196609, -65528, 47, 8, -65527, 47, 196609, -65526, 47, 196609, -65525, 47, 196609, -65524, 47, 196609, -65523, 47, 196609, -65522, 47, 7, 65535, 47, 65539, 6, 47, 131075, 8, 47, 131075, 14, 47, 65539, 131071, 47, 65539, 65541, 47, 196611, 65550, 47, 65539, 196607, 47, 65539, 131075, 47, 196608, 131076, 47, 196610, 131086, 47, 65539, 262143, 47, 65539, 196614, 47, 196611, 196622, 47, 65539, 327679, 47, 65539, 262147, 47, 196611, 262149, 47, 196611, 262158, 47, 65539, 393215, 47, 65539, 327684, 47, 196611, 327688, 47, 196611, 327694, 47, 65539, 458751, 47, 65539, 393221, 47, 3, 393225, 47, 3, 393230, 47, 65539, 524287, 47, 196612, 458752, 47, 196609, 458753, 47, 196609, 458754, 47, 196609, 458755, 47, 196609, 458756, 47, 196609, 458757, 47, 196616, 458758, 47, 196609, 458759, 47, 196609, 458760, 47, 196609, 458761, 47, 196616, 458762, 47, 196609, 458763, 47, 196609, 458764, 47, 196609, 458765, 47, 196609, 458766, 47, 196615 )
__meta__ = {
"_edit_group_": true,
"_edit_lock_": true
@@ -39,6 +39,7 @@ position = Vector2( 264, -24 )
[node name="Player" parent="YSort" instance=ExtResource( 1 )]
position = Vector2( 240, 72 )
scale = Vector2( 2, 2 )
debug = true
ROLL_SPEED = 140
FRICTION = 200
@@ -54,6 +55,8 @@ debug = true
visible = false
[node name="DragNDropUI" parent="CanvasLayer" instance=ExtResource( 5 )]
margin_top = -0.735092
margin_bottom = -0.735107
ObjectParent = NodePath("../..")
[editable path="YSort/Bonfire"]