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]
|
|
|
|
radius = 166.75
|
|
|
|
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"]
|
|
|
|
collision_mask = 4
|
|
|
|
script = ExtResource( 11 )
|
|
|
|
|
|
|
|
[node name="Sprite" type="AnimatedSprite" parent="."]
|
|
|
|
frames = ExtResource( 1 )
|
|
|
|
animation = "idle"
|
2022-07-17 17:08:39 +02:00
|
|
|
frame = 8
|
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
|
|
|
|
smoothing_enabled = true
|
|
|
|
|
|
|
|
[node name="RayBottomLeft" type="RayCast2D" parent="."]
|
|
|
|
position = Vector2( -184, 212 )
|
|
|
|
enabled = true
|
|
|
|
cast_to = Vector2( 0, 60 )
|
|
|
|
collision_mask = 6
|
|
|
|
|
|
|
|
[node name="RayBottomRight" type="RayCast2D" parent="."]
|
|
|
|
position = Vector2( 138, 212 )
|
|
|
|
enabled = true
|
|
|
|
cast_to = Vector2( 0, 60 )
|
|
|
|
collision_mask = 6
|
|
|
|
|
|
|
|
[node name="EnemyBottomCheck" type="Area2D" parent="."]
|
|
|
|
collision_mask = 2
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBottomCheck"]
|
|
|
|
position = Vector2( -13, 225 )
|
|
|
|
shape = SubResource( 5 )
|
|
|
|
|
|
|
|
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
|
|
|
|
position = Vector2( -15, -13.5 )
|
|
|
|
scale = Vector2( 16.9, 23.25 )
|
|
|
|
|
|
|
|
[connection signal="body_entered" from="GroundCheck" to="." method="_on_GroundCheck_body_entered"]
|
|
|
|
[connection signal="body_entered" from="EnemyBottomCheck" to="." method="_on_Enemy_Entered"]
|
|
|
|
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_screen_exited"]
|