Adds spritesheet for enemy_1
|
|
@ -6,7 +6,7 @@ var vertical
|
|||
export var velocity = 350
|
||||
var v = Vector2(-velocity, 0)
|
||||
|
||||
onready var sprite = get_node("Sprite")
|
||||
onready var sprite = get_node("sprite")
|
||||
onready var area_head = get_node("area_head")
|
||||
|
||||
onready var hit_single = get_node("hit_ray_particle")
|
||||
|
|
|
|||
|
|
@ -1,19 +1,8 @@
|
|||
[gd_scene load_steps=22 format=1]
|
||||
[gd_scene load_steps=13 format=1]
|
||||
|
||||
[ext_resource path="res://Scenes/Events/enemy_1.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk1.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk10.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk2.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk3.png" type="Texture" id=5]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk4.png" type="Texture" id=6]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk5.png" type="Texture" id=7]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk6.png" type="Texture" id=8]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk7.png" type="Texture" id=9]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk8.png" type="Texture" id=10]
|
||||
[ext_resource path="res://Sprites/Charasets/Enemy_1/enemy_walk9.png" type="Texture" id=11]
|
||||
[ext_resource path="res://Sprites/Effects/sangre.png" type="Texture" id=12]
|
||||
|
||||
|
||||
[ext_resource path="res://Sprites/Charasets/enemy_1.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Sprites/Effects/sangre.png" type="Texture" id=3]
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||
|
||||
|
|
@ -50,16 +39,24 @@ points = Vector2Array( 2.63889, -0.899147, 8.90625, -8.09232, 26.7188, 8.39203,
|
|||
custom_solver_bias = 0.0
|
||||
points = Vector2Array( -3.29861, -5.99431, 2.63889, -0.899147, 0.989584, 8.09231, -7.91667, 2.09801, -8.24653, -3.59659 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=8]
|
||||
[sub_resource type="Animation" id=8]
|
||||
|
||||
animations = [ {
|
||||
"frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ), ExtResource( 11 ) ],
|
||||
"loop": true,
|
||||
"name": "walking",
|
||||
"speed": 24.0
|
||||
} ]
|
||||
resource/name = "walk"
|
||||
length = 0.4
|
||||
loop = true
|
||||
step = 0.04
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath(".:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/imported = false
|
||||
tracks/0/keys = {
|
||||
"times": FloatArray( 0, 0.04, 0.08, 0.12, 0.16, 0.2, 0.24, 0.28, 0.32, 0.36 ),
|
||||
"transitions": FloatArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
|
||||
"update": 1,
|
||||
"values": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
|
||||
}
|
||||
|
||||
[sub_resource type="ColorRamp" id=9]
|
||||
[sub_resource type="ColorRamp" id=10]
|
||||
|
||||
offsets = FloatArray( 0, 1 )
|
||||
colors = ColorArray( 0.773438, 0.773438, 0.773438, 1, 0.1875, 0.1875, 0.1875, 1 )
|
||||
|
|
@ -154,13 +151,24 @@ polygon = Vector2Array( 8.57639, -19.4815, 8.90625, -8.09232, 2.63889, -0.899147
|
|||
shape_range = Vector2( 0, 2 )
|
||||
trigger = true
|
||||
|
||||
[node name="Sprite" type="AnimatedSprite" parent="."]
|
||||
[node name="sprite" type="Sprite" parent="."]
|
||||
|
||||
transform/pos = Vector2( 3.8147e-06, 0 )
|
||||
frames = SubResource( 8 )
|
||||
animation = "walking"
|
||||
frame = 8
|
||||
playing = true
|
||||
transform/pos = Vector2( 7.90835, 7.78536 )
|
||||
texture = ExtResource( 2 )
|
||||
vframes = 6
|
||||
hframes = 6
|
||||
frame = 5
|
||||
|
||||
[node name="animation" type="AnimationPlayer" parent="sprite"]
|
||||
|
||||
playback/process_mode = 1
|
||||
playback/default_blend_time = 0.0
|
||||
root/root = NodePath("..")
|
||||
anims/walk = SubResource( 8 )
|
||||
playback/active = true
|
||||
playback/speed = 1.0
|
||||
blend_times = [ ]
|
||||
autoplay = "walk"
|
||||
|
||||
[node name="hit_ray_particle" type="Particles2D" parent="."]
|
||||
|
||||
|
|
@ -174,7 +182,7 @@ config/process_mode = 1
|
|||
config/half_extents = Vector2( 40, 40 )
|
||||
config/local_space = false
|
||||
config/explosiveness = 0.5
|
||||
config/texture = ExtResource( 12 )
|
||||
config/texture = ExtResource( 3 )
|
||||
params/direction = 88.89
|
||||
params/spread = 180.0
|
||||
params/linear_velocity = 200.0
|
||||
|
|
@ -194,7 +202,7 @@ params/anim_initial_pos = 0.0
|
|||
randomness/direction = 0.29
|
||||
randomness/spread = 0.8
|
||||
randomness/linear_velocity = 0.45
|
||||
color/color_ramp = SubResource( 9 )
|
||||
color/color_ramp = SubResource( 10 )
|
||||
|
||||
[connection signal="body_enter" from="area_head" to="." method="_on_area_head_body_enter"]
|
||||
|
||||
|
|
|
|||
|
|
@ -3,9 +3,10 @@
|
|||
[ext_resource path="res://Scenes/Events/player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/Events/shooter.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Scenes/Events/ray_milk.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Sprites/Charasets/Player/cow.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Sprites/Charasets/cow.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Scenes/Events/player_animations.tres" type="Animation" id=5]
|
||||
|
||||
|
||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 27 KiB |
BIN
Sprites/Charasets/cow.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
Sprites/Charasets/cow.png~
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
Sprites/Charasets/enemy_1.png
Normal file
|
After Width: | Height: | Size: 23 KiB |