Flopsy/objects/characters/player.tscn

77 lines
2 KiB
Text
Raw Normal View History

2022-07-17 14:24:15 +02:00
[gd_scene load_steps=6 format=2]
[ext_resource path="res://objects/characters/flopsy/flopsy.tres" type="SpriteFrames" id=1]
[ext_resource path="res://objects/characters/player.gd" type="Script" id=11]
[sub_resource type="CapsuleShape2D" id=4]
2022-07-18 12:58:38 +02:00
radius = 164.75
2022-07-17 14:24:15 +02:00
height = 138.75
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 190.5, 100.625 )
[sub_resource type="CircleShape2D" id=5]
radius = 79.0
[node name="Player" type="KinematicBody2D"]
2022-07-18 12:58:38 +02:00
z_index = 10
2022-07-17 14:24:15 +02:00
collision_mask = 4
script = ExtResource( 11 )
[node name="Sprite" type="AnimatedSprite" parent="."]
frames = ExtResource( 1 )
animation = "idle"
2022-07-19 18:11:23 +02:00
frame = 6
2022-07-17 14:24:15 +02:00
playing = true
__meta__ = {
"_edit_lock_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -14.75, -7.875 )
shape = SubResource( 4 )
[node name="GroundCheck" type="Area2D" parent="."]
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="GroundCheck"]
position = Vector2( -22.5, 323.375 )
shape = SubResource( 3 )
[node name="Camera2D" type="Camera2D" parent="."]
current = true
limit_left = 0
limit_bottom = 1080
limit_smoothed = true
[node name="RayBottomLeft" type="RayCast2D" parent="."]
2022-07-18 03:28:10 +02:00
position = Vector2( -184, 0 )
2022-07-17 14:24:15 +02:00
enabled = true
2022-07-18 03:28:10 +02:00
cast_to = Vector2( 0, 400 )
2022-07-17 14:24:15 +02:00
collision_mask = 6
2022-07-18 03:28:10 +02:00
collide_with_areas = true
2022-07-17 14:24:15 +02:00
[node name="RayBottomRight" type="RayCast2D" parent="."]
2022-07-18 03:28:10 +02:00
position = Vector2( 154, 0 )
2022-07-17 14:24:15 +02:00
enabled = true
2022-07-18 03:28:10 +02:00
cast_to = Vector2( 0, 400 )
2022-07-17 14:24:15 +02:00
collision_mask = 6
2022-07-18 03:28:10 +02:00
collide_with_areas = true
2022-07-17 14:24:15 +02:00
2022-07-19 18:11:23 +02:00
[node name="RayBottomCenter" type="RayCast2D" parent="."]
position = Vector2( -14, 0 )
enabled = true
cast_to = Vector2( 0, 400 )
collision_mask = 6
collide_with_areas = true
2022-07-17 14:24:15 +02:00
[node name="EnemyBottomCheck" type="Area2D" parent="."]
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBottomCheck"]
position = Vector2( -13, 225 )
shape = SubResource( 5 )
[connection signal="body_entered" from="GroundCheck" to="." method="_on_GroundCheck_body_entered"]
[connection signal="body_entered" from="EnemyBottomCheck" to="." method="_on_Enemy_Entered"]