You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.0 KiB
Plaintext

1 year ago
[gd_scene load_steps=7 format=2]
[ext_resource path="res://characters_packed.png" type="Texture" id=1]
[ext_resource path="res://Enemies/WalkingEnemy/WalkingEnemy.gd" type="Script" id=2]
[ext_resource path="res://Res/Hitbox.tscn" type="PackedScene" id=3]
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 144, 24, 24, 24 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 168, 24, 24, 24 )
[sub_resource type="SpriteFrames" id=3]
animations = [ {
"frames": [ SubResource( 1 ), SubResource( 2 ) ],
"loop": true,
"name": "Walking",
"speed": 5.0
} ]
[node name="KinematicBody2D" type="KinematicBody2D"]
collision_layer = 2
script = ExtResource( 2 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
position = Vector2( 0.5, -9 )
scale = Vector2( 0.75, 0.9 )
polygon = PoolVector2Array( 2, -10, 2, -8.88889, 3.33333, -8.88889, 3.33333, -6.66667, 4.66667, -6.66667, 4.66667, -3.33333, 7.33333, -3.33333, 7.33333, -2.22222, 8.66667, -2.22222, 8.66667, -1.11111, 10, -1.11111, 10, 8.88889, 7.33333, 10, -7.33333, 10, -10, 8.88889, -10, -1.11111, -8.66667, -1.11111, -8.66667, -2.22222, -7.33333, -2.22222, -7.33333, -3.33333, -4.66667, -3.33333, -4.66667, -6.66667, -3.33333, -6.66667, -3.33333, -8.88889, -2, -8.88889, -2, -10 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( 0, -12 )
frames = SubResource( 3 )
animation = "Walking"
flip_h = true
[node name="RightLedgeCheck" type="RayCast2D" parent="."]
position = Vector2( 8, 0 )
enabled = true
cast_to = Vector2( 0, 5 )
[node name="LeftLedgeCheck" type="RayCast2D" parent="."]
position = Vector2( -6, 0 )
enabled = true
cast_to = Vector2( 0, 5 )
[node name="Hitbox" parent="." instance=ExtResource( 3 )]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hitbox"]
polygon = PoolVector2Array( 1, -16, 2, -14, 2, -10, 5, -10, 6, -9, 6, -2, 4, -2, 4, -3, 0, -3, 0, -2, -2, -2, -2, -3, -5, -3, -5, -9, -4, -10, -1, -10, -1, -14, 0, -16 )