Added Ruby Sprites and Implemented them

This commit is contained in:
Jan Schuffenhauer
2020-04-20 19:46:50 +02:00
parent ebad05009a
commit 94badfb27a
16 changed files with 214 additions and 17 deletions

View File

@@ -2,12 +2,12 @@
[ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Objects/Rubies/Rubies.gd" type="Script" id=2]
[ext_resource path="res://testSprites/blue_Rubi.png" type="Texture" id=3]
[ext_resource path="res://Objects/Rubies/rubin_blue.png" type="Texture" id=3]
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=4]
[sub_resource type="CapsuleShape2D" id=1]
radius = 7.43707
height = 2.89399
radius = 9.5
height = 1.0
[node name="Blue" type="Node2D"]
script = ExtResource( 2 )
@@ -21,14 +21,11 @@ position = Vector2( 0.22036, -4.18694 )
texture = ExtResource( 3 )
[node name="Hurtbox" parent="." instance=ExtResource( 1 )]
position = Vector2( 1.54256, -4.73786 )
collision_layer = 32
collision_mask = 0
currency_value = 5
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
position = Vector2( -1.54256, 4.73785 )
rotation = 1.5708
shape = SubResource( 1 )
[connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]

View File

@@ -2,12 +2,12 @@
[ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Objects/Rubies/Rubies.gd" type="Script" id=2]
[ext_resource path="res://testSprites/green_Rubi.png" type="Texture" id=3]
[ext_resource path="res://Objects/Rubies/rubin_green.png" type="Texture" id=3]
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=4]
[sub_resource type="CapsuleShape2D" id=1]
radius = 7.43707
height = 2.89399
radius = 9.5
height = 1.0
[node name="Green" type="Node2D"]
script = ExtResource( 2 )
@@ -28,7 +28,6 @@ currency_value = 1
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
position = Vector2( -1.54256, 4.73785 )
rotation = 1.5708
shape = SubResource( 1 )
[connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]

View File

@@ -2,12 +2,12 @@
[ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Objects/Rubies/Rubies.gd" type="Script" id=2]
[ext_resource path="res://testSprites/red_Rubi.png" type="Texture" id=3]
[ext_resource path="res://Objects/Rubies/rubin_red.png" type="Texture" id=3]
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=4]
[sub_resource type="CapsuleShape2D" id=1]
radius = 7.43707
height = 2.89399
radius = 9.5
height = 1.0
[node name="Red" type="Node2D"]
script = ExtResource( 2 )
@@ -21,14 +21,11 @@ position = Vector2( 0.22036, -4.18694 )
texture = ExtResource( 3 )
[node name="Hurtbox" parent="." instance=ExtResource( 1 )]
position = Vector2( 1.54256, -4.73786 )
collision_layer = 32
collision_mask = 0
currency_value = 20
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
position = Vector2( -1.54256, 4.73785 )
rotation = 1.5708
shape = SubResource( 1 )
[connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

@@ -23,7 +23,7 @@ HeroTemplate = ExtResource( 1 )
[node name="Background" parent="." instance=ExtResource( 7 )]
pause_mode = 1
frame = 8
frame = 58
[node name="FloorTileMap" type="TileMap" parent="."]
pause_mode = 1