Animation
Star animation & map boundary
This commit is contained in:
@@ -7,124 +7,109 @@
|
|||||||
[ext_resource path="res://Sprites/Enemies/Hell_Hound_Jump.png" type="Texture" id=5]
|
[ext_resource path="res://Sprites/Enemies/Hell_Hound_Jump.png" type="Texture" id=5]
|
||||||
[ext_resource path="res://Sprites/Enemies/Hell_Hound_Run.png" type="Texture" id=6]
|
[ext_resource path="res://Sprites/Enemies/Hell_Hound_Run.png" type="Texture" id=6]
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=9]
|
[sub_resource type="AtlasTexture" id=1]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 3 )
|
atlas = ExtResource( 3 )
|
||||||
region = Rect2( 0, 0, 64, 32 )
|
region = Rect2( 0, 0, 64, 32 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=10]
|
[sub_resource type="AtlasTexture" id=2]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 3 )
|
atlas = ExtResource( 3 )
|
||||||
region = Rect2( 64, 0, 64, 32 )
|
region = Rect2( 64, 0, 64, 32 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=11]
|
[sub_resource type="AtlasTexture" id=3]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 3 )
|
atlas = ExtResource( 3 )
|
||||||
region = Rect2( 128, 0, 64, 32 )
|
region = Rect2( 128, 0, 64, 32 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=12]
|
[sub_resource type="AtlasTexture" id=4]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 3 )
|
atlas = ExtResource( 3 )
|
||||||
region = Rect2( 192, 0, 64, 32 )
|
region = Rect2( 192, 0, 64, 32 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=13]
|
[sub_resource type="AtlasTexture" id=5]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 3 )
|
atlas = ExtResource( 3 )
|
||||||
region = Rect2( 256, 0, 64, 32 )
|
region = Rect2( 256, 0, 64, 32 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=14]
|
[sub_resource type="AtlasTexture" id=6]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 3 )
|
atlas = ExtResource( 3 )
|
||||||
region = Rect2( 320, 0, 64, 32 )
|
region = Rect2( 320, 0, 64, 32 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=3]
|
[sub_resource type="AtlasTexture" id=7]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 5 )
|
atlas = ExtResource( 5 )
|
||||||
region = Rect2( 0, 0, 65, 48 )
|
region = Rect2( 0, 0, 65, 48 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=4]
|
[sub_resource type="AtlasTexture" id=8]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 5 )
|
atlas = ExtResource( 5 )
|
||||||
region = Rect2( 65, 0, 65, 48 )
|
region = Rect2( 65, 0, 65, 48 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=5]
|
[sub_resource type="AtlasTexture" id=9]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 5 )
|
atlas = ExtResource( 5 )
|
||||||
region = Rect2( 130, 0, 65, 48 )
|
region = Rect2( 130, 0, 65, 48 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=6]
|
[sub_resource type="AtlasTexture" id=10]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 5 )
|
atlas = ExtResource( 5 )
|
||||||
region = Rect2( 195, 0, 65, 48 )
|
region = Rect2( 195, 0, 65, 48 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=7]
|
[sub_resource type="AtlasTexture" id=11]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 5 )
|
atlas = ExtResource( 5 )
|
||||||
region = Rect2( 260, 0, 65, 48 )
|
region = Rect2( 260, 0, 65, 48 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=8]
|
[sub_resource type="AtlasTexture" id=12]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 5 )
|
atlas = ExtResource( 5 )
|
||||||
region = Rect2( 325, 0, 65, 48 )
|
region = Rect2( 325, 0, 65, 48 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=15]
|
[sub_resource type="AtlasTexture" id=13]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 6 )
|
atlas = ExtResource( 6 )
|
||||||
region = Rect2( 0, 0, 67, 32 )
|
region = Rect2( 0, 0, 67, 32 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=16]
|
[sub_resource type="AtlasTexture" id=14]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 6 )
|
atlas = ExtResource( 6 )
|
||||||
region = Rect2( 67, 0, 67, 32 )
|
region = Rect2( 67, 0, 67, 32 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=17]
|
[sub_resource type="AtlasTexture" id=15]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 6 )
|
atlas = ExtResource( 6 )
|
||||||
region = Rect2( 134, 0, 67, 32 )
|
region = Rect2( 134, 0, 67, 32 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=18]
|
[sub_resource type="AtlasTexture" id=16]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 6 )
|
atlas = ExtResource( 6 )
|
||||||
region = Rect2( 201, 0, 67, 32 )
|
region = Rect2( 201, 0, 67, 32 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=19]
|
[sub_resource type="AtlasTexture" id=17]
|
||||||
flags = 4
|
|
||||||
atlas = ExtResource( 6 )
|
atlas = ExtResource( 6 )
|
||||||
region = Rect2( 268, 0, 67, 32 )
|
region = Rect2( 268, 0, 67, 32 )
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id=20]
|
[sub_resource type="SpriteFrames" id=18]
|
||||||
animations = [ {
|
animations = [ {
|
||||||
"frames": [ SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ) ],
|
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "Idle",
|
"name": "Idle",
|
||||||
"speed": 3.0
|
"speed": 3.0
|
||||||
}, {
|
}, {
|
||||||
"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ) ],
|
"frames": [ SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "Jump",
|
"name": "Jump",
|
||||||
"speed": 8.0
|
"speed": 8.0
|
||||||
}, {
|
}, {
|
||||||
"frames": [ SubResource( 15 ), SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ) ],
|
"frames": [ SubResource( 13 ), SubResource( 14 ), SubResource( 15 ), SubResource( 16 ), SubResource( 17 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "Running",
|
"name": "Running",
|
||||||
"speed": 5.0
|
"speed": 5.0
|
||||||
} ]
|
} ]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id=1]
|
[sub_resource type="CapsuleShape2D" id=19]
|
||||||
radius = 3.0
|
radius = 3.0
|
||||||
height = 2.0
|
height = 2.0
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id=2]
|
[sub_resource type="CircleShape2D" id=20]
|
||||||
radius = 50.0
|
radius = 50.0
|
||||||
|
|
||||||
[node name="Hellhound" type="KinematicBody2D" groups=["enemies"]]
|
[node name="Hellhound" type="KinematicBody2D" groups=[
|
||||||
|
"enemies",
|
||||||
|
]]
|
||||||
collision_layer = 2
|
collision_layer = 2
|
||||||
script = ExtResource( 4 )
|
script = ExtResource( 4 )
|
||||||
|
|
||||||
[node name="AnimatedSprite1" type="AnimatedSprite" parent="."]
|
[node name="AnimatedSprite1" type="AnimatedSprite" parent="."]
|
||||||
position = Vector2( 1, -3 )
|
position = Vector2( 1, -3 )
|
||||||
scale = Vector2( 0.5625, 0.5625 )
|
scale = Vector2( 0.5625, 0.5625 )
|
||||||
frames = SubResource( 20 )
|
frames = SubResource( 18 )
|
||||||
animation = "Idle"
|
animation = "Idle"
|
||||||
frame = 5
|
frame = 5
|
||||||
playing = true
|
playing = true
|
||||||
@@ -132,30 +117,30 @@ playing = true
|
|||||||
[node name="Hitbox" type="CollisionShape2D" parent="."]
|
[node name="Hitbox" type="CollisionShape2D" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
position = Vector2( 0, -3 )
|
position = Vector2( 0, -3 )
|
||||||
shape = SubResource( 1 )
|
shape = SubResource( 19 )
|
||||||
|
|
||||||
[node name="Player Detector" type="Area2D" parent="."]
|
[node name="Player Detector" type="Area2D" parent="."]
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 2
|
|
||||||
input_pickable = false
|
input_pickable = false
|
||||||
monitorable = false
|
monitorable = false
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 2
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector"]
|
||||||
visible = false
|
visible = false
|
||||||
scale = Vector2( 1.5, 1.5 )
|
scale = Vector2( 1.5, 1.5 )
|
||||||
shape = SubResource( 2 )
|
shape = SubResource( 20 )
|
||||||
|
|
||||||
[node name="Player Attack" type="Area2D" parent="."]
|
[node name="Player Attack" type="Area2D" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 2
|
|
||||||
input_pickable = false
|
input_pickable = false
|
||||||
monitorable = false
|
monitorable = false
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 2
|
||||||
|
|
||||||
[node name="Attack" type="CollisionShape2D" parent="Player Attack"]
|
[node name="Attack" type="CollisionShape2D" parent="Player Attack"]
|
||||||
visible = false
|
visible = false
|
||||||
scale = Vector2( 0.5, 0.5 )
|
scale = Vector2( 0.5, 0.5 )
|
||||||
shape = SubResource( 2 )
|
shape = SubResource( 20 )
|
||||||
|
|
||||||
[node name="Light2D" type="Light2D" parent="."]
|
[node name="Light2D" type="Light2D" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
|
@@ -1,10 +1,27 @@
|
|||||||
[gd_scene load_steps=3 format=2]
|
[gd_scene load_steps=4 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://Sprites/Assets/blue_star.png" type="Texture" id=1]
|
[ext_resource path="res://Sprites/Assets/bule_star_sprite_spread.png" type="Texture" id=1]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
extents = Vector2( 7.95021, 8.07351 )
|
extents = Vector2( 7.95021, 8.07351 )
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id=2]
|
||||||
|
resource_name = "Sparkle"
|
||||||
|
length = 2.0
|
||||||
|
loop = true
|
||||||
|
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.5, 1, 1.5 ),
|
||||||
|
"transitions": PoolRealArray( 1, 1, 1, 1 ),
|
||||||
|
"update": 1,
|
||||||
|
"values": [ 0, 1, 2, 3 ]
|
||||||
|
}
|
||||||
|
|
||||||
[node name="Star" type="RigidBody2D"]
|
[node name="Star" type="RigidBody2D"]
|
||||||
collision_layer = 4
|
collision_layer = 4
|
||||||
collision_mask = 0
|
collision_mask = 0
|
||||||
@@ -15,3 +32,10 @@ shape = SubResource( 1 )
|
|||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="Sprite" type="Sprite" parent="."]
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 1 )
|
||||||
|
hframes = 4
|
||||||
|
frame = 2
|
||||||
|
|
||||||
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||||
|
autoplay = "Sparkle"
|
||||||
|
method_call_mode = 1
|
||||||
|
anims/Sparkle = SubResource( 2 )
|
||||||
|
@@ -64,3 +64,12 @@ position = Vector2( 323.666, 161.038 )
|
|||||||
[node name="HUD" parent="." instance=ExtResource( 2 )]
|
[node name="HUD" parent="." instance=ExtResource( 2 )]
|
||||||
|
|
||||||
[node name="Pause Screen" parent="." instance=ExtResource( 3 )]
|
[node name="Pause Screen" parent="." instance=ExtResource( 3 )]
|
||||||
|
|
||||||
|
[node name="Map_boundary" type="RigidBody2D" parent="."]
|
||||||
|
collision_layer = 7
|
||||||
|
collision_mask = 7
|
||||||
|
mode = 1
|
||||||
|
|
||||||
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Map_boundary"]
|
||||||
|
build_mode = 1
|
||||||
|
polygon = PoolVector2Array( 0.762451, -22.0982, 427.859, -18.7308, 425.053, 245.609, -22.248, 248.976, -21.1256, -22.6594, -0.589813, -21.9661, -0.589806, 225.272, 400.359, 224.843, 399.969, -0.312477, 0.455406, -0.154987 )
|
||||||
|
BIN
Sprites/Assets/blue_star_225.png
Normal file
BIN
Sprites/Assets/blue_star_225.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 389 B |
34
Sprites/Assets/blue_star_225.png.import
Normal file
34
Sprites/Assets/blue_star_225.png.import
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/blue_star_225.png-5b00146bb430703346fdaaa520f40253.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Sprites/Assets/blue_star_225.png"
|
||||||
|
dest_files=[ "res://.import/blue_star_225.png-5b00146bb430703346fdaaa520f40253.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
|
BIN
Sprites/Assets/blue_star_45.png
Normal file
BIN
Sprites/Assets/blue_star_45.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 339 B |
34
Sprites/Assets/blue_star_45.png.import
Normal file
34
Sprites/Assets/blue_star_45.png.import
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/blue_star_45.png-3d076c408f8cdbf88a33f4a91f0e7375.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Sprites/Assets/blue_star_45.png"
|
||||||
|
dest_files=[ "res://.import/blue_star_45.png-3d076c408f8cdbf88a33f4a91f0e7375.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
|
BIN
Sprites/Assets/bule_star_sprite_spread.png
Normal file
BIN
Sprites/Assets/bule_star_sprite_spread.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 746 B |
34
Sprites/Assets/bule_star_sprite_spread.png.import
Normal file
34
Sprites/Assets/bule_star_sprite_spread.png.import
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/bule_star_sprite_spread.png-38c7879008f2591d865215d456421085.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Sprites/Assets/bule_star_sprite_spread.png"
|
||||||
|
dest_files=[ "res://.import/bule_star_sprite_spread.png-38c7879008f2591d865215d456421085.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=true
|
||||||
|
svg/scale=1.0
|
Reference in New Issue
Block a user