Skip to content

Commit

Permalink
Animações de movimento feitas
Browse files Browse the repository at this point in the history
  • Loading branch information
batataazul committed Aug 29, 2020
1 parent d0b49a6 commit 01447ce
Show file tree
Hide file tree
Showing 13 changed files with 532 additions and 60 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="8ce2efe254e148856fd27a3288733b54"
dest_md5="55cbc11dd1f61f6dbfa0d396c6796ac9"

Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions pwojeto/Assets/icone/raposa_espada_final_eyeless.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/raposa_espada_final_eyeless.png-453dd7b4a86ecb613de4b03953125c19.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://Assets/icone/raposa_espada_final_eyeless.png"
dest_files=[ "res://.import/raposa_espada_final_eyeless.png-453dd7b4a86ecb613de4b03953125c19.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=true
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=true
svg/scale=1.0
Binary file not shown.
64 changes: 45 additions & 19 deletions pwojeto/Scenes/actors/enemies/Bat.tscn
Original file line number Diff line number Diff line change
@@ -1,37 +1,58 @@
[gd_scene load_steps=6 format=2]
[gd_scene load_steps=7 format=2]

[ext_resource path="res://Scripts/Morcego.gd" type="Script" id=1]
[ext_resource path="res://icon.png" type="Texture" id=2]
[ext_resource path="res://Assets/Morcego/batspritesheet.png" type="Texture" id=2]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 61.4362, 60.6278 )

[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 2 ) ],
"loop": true,
"name": "default",
"speed": 5.0
}, {
"frames": [ ],
"loop": true,
"name": "New Anim",
"speed": 5.0
} ]
extents = Vector2( 67.8006, 66.8752 )

[sub_resource type="CircleShape2D" id=3]
radius = 655.591

[sub_resource type="Animation" id=4]
resource_name = "parado"
step = 1.0
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 0 ]
}

[sub_resource type="Animation" id=5]
resource_name = "voando"
loop = true
step = 0.125
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3, 4, 5, 6, 7, 0 ]
}

[node name="Bat" type="KinematicBody2D"]
script = ExtResource( 1 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )

[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 2, 2 )
frames = SubResource( 2 )
playing = true
texture = ExtResource( 2 )
vframes = 2
hframes = 4

[node name="Range" type="Area2D" parent="."]

Expand All @@ -43,5 +64,10 @@ shape = SubResource( 3 )
[node name="KnockbackTimer" type="Timer" parent="."]
wait_time = 0.1
one_shot = true

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "parado"
anims/parado = SubResource( 4 )
anims/voando = SubResource( 5 )
[connection signal="body_entered" from="Range" to="." method="_on_Area2D_body_entered"]
[connection signal="body_exited" from="Range" to="." method="_on_Range_body_exited"]
Loading

0 comments on commit 01447ce

Please sign in to comment.