Flopsy/objects/characters/monsters/01/monster_01.tscn

100 lines
3.8 KiB
Text
Raw Permalink Normal View History

2022-07-17 14:24:15 +02:00
[gd_scene load_steps=19 format=2]
[ext_resource path="res://objects/characters/monsters/01/assets/idle/frame-8.png" type="Texture" id=1]
[ext_resource path="res://objects/characters/monsters/01/monster_01.gd" type="Script" id=2]
[ext_resource path="res://objects/characters/monsters/01/assets/idle/frame-7.png" type="Texture" id=3]
[ext_resource path="res://objects/characters/monsters/01/assets/idle/frame-6.png" type="Texture" id=4]
[ext_resource path="res://objects/characters/monsters/01/assets/idle/frame-10.png" type="Texture" id=5]
[ext_resource path="res://objects/characters/monsters/01/assets/idle/frame-5.png" type="Texture" id=6]
[ext_resource path="res://objects/characters/monsters/01/assets/idle/frame-4.png" type="Texture" id=7]
[ext_resource path="res://objects/characters/monsters/01/assets/idle/frame-3.png" type="Texture" id=8]
[ext_resource path="res://objects/characters/monsters/01/assets/idle/frame-2.png" type="Texture" id=9]
[ext_resource path="res://objects/characters/monsters/01/assets/idle/frame-1.png" type="Texture" id=10]
[ext_resource path="res://objects/characters/monsters/01/assets/stomped/frame-4.png" type="Texture" id=11]
[ext_resource path="res://objects/characters/monsters/01/assets/idle/frame-9.png" type="Texture" id=12]
[ext_resource path="res://objects/characters/monsters/01/assets/stomped/frame-3.png" type="Texture" id=13]
[ext_resource path="res://objects/characters/monsters/01/assets/stomped/frame-1.png" type="Texture" id=14]
[ext_resource path="res://objects/characters/monsters/01/assets/stomped/frame-2.png" type="Texture" id=15]
2022-07-17 17:08:39 +02:00
[ext_resource path="res://common/soundeffects/stamped01.wav" type="AudioStream" id=16]
2022-07-17 14:24:15 +02:00
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 10 ), ExtResource( 9 ), ExtResource( 8 ), ExtResource( 7 ), ExtResource( 6 ), ExtResource( 4 ), ExtResource( 3 ), ExtResource( 1 ), ExtResource( 12 ), ExtResource( 5 ) ],
"loop": true,
"name": "idle",
"speed": 15.0
}, {
"frames": [ ExtResource( 14 ), ExtResource( 15 ), ExtResource( 13 ), ExtResource( 11 ) ],
"loop": false,
"name": "stomped",
"speed": 30.0
} ]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 38.5, 20.5 )
[node name="monster_01" type="KinematicBody2D"]
z_index = 10
collision_layer = 2
collision_mask = 4
script = ExtResource( 2 )
[node name="Sprite" type="AnimatedSprite" parent="."]
scale = Vector2( 0.2, 0.2 )
frames = SubResource( 1 )
animation = "idle"
2022-07-19 22:22:16 +02:00
frame = 8
2022-07-17 14:24:15 +02:00
playing = true
[node name="Collision" type="CollisionShape2D" parent="."]
position = Vector2( 0.5, 2.5 )
shape = SubResource( 2 )
[node name="RayBottomLeft" type="RayCast2D" parent="."]
position = Vector2( -38, 23 )
enabled = true
cast_to = Vector2( 0, 5 )
collision_mask = 4
2022-07-19 22:22:16 +02:00
[node name="RayLeft" type="RayCast2D" parent="."]
position = Vector2( -38, 23 )
enabled = true
cast_to = Vector2( -5, 0 )
collision_mask = 4
2022-07-17 14:24:15 +02:00
[node name="RayBottomRight" type="RayCast2D" parent="."]
position = Vector2( 39, 23 )
enabled = true
cast_to = Vector2( 0, 5 )
collision_mask = 4
2022-07-19 22:22:16 +02:00
[node name="RayRight" type="RayCast2D" parent="."]
position = Vector2( 39, 23 )
enabled = true
cast_to = Vector2( 5, 0 )
collision_mask = 4
2022-07-17 14:24:15 +02:00
[node name="RayPlayerLeft" type="RayCast2D" parent="."]
position = Vector2( -38, 21 )
enabled = true
cast_to = Vector2( -10, 0 )
[node name="RayPlayerRight" type="RayCast2D" parent="."]
position = Vector2( 39, 21 )
enabled = true
cast_to = Vector2( 10, 0 )
[node name="StampedSound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 16 )
2022-07-18 03:28:10 +02:00
volume_db = 10.0
2022-07-19 18:11:23 +02:00
[node name="PlayerCollision" type="Area2D" parent="."]
collision_layer = 0
[node name="Collision" type="CollisionShape2D" parent="PlayerCollision"]
position = Vector2( 0.5, 2.5 )
scale = Vector2( 1.2, 1.2 )
shape = SubResource( 2 )
[connection signal="body_entered" from="PlayerCollision" to="." method="_on_PlayerCollision"]