Player.tscn 712 B

123456789101112131415161718192021222324252627
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://Player.gd" type="Script" id=1]
  3. [ext_resource path="res://player.png" type="Texture" id=2]
  4. [ext_resource path="res://CharTween.gd" type="Script" id=3]
  5. [sub_resource type="RectangleShape2D" id=1]
  6. extents = Vector2( 16, 16 )
  7. [node name="Player" type="Area2D"]
  8. script = ExtResource( 1 )
  9. [node name="Sprite" type="Sprite" parent="."]
  10. texture = ExtResource( 2 )
  11. __meta__ = {
  12. "_edit_lock_": true
  13. }
  14. [node name="HitBox" type="CollisionShape2D" parent="."]
  15. shape = SubResource( 1 )
  16. __meta__ = {
  17. "_edit_lock_": true
  18. }
  19. [node name="Tween" type="Tween" parent="."]
  20. script = ExtResource( 3 )
  21. [connection signal="body_entered" from="." to="." method="_on_crash"]