Player.tscn 763 B

123456789101112131415161718192021222324252627282930
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://Player.gd" type="Script" id=1]
  3. [ext_resource path="res://Resources/Images/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" groups=[
  8. "players",
  9. ]]
  10. script = ExtResource( 1 )
  11. [node name="Sprite" type="Sprite" parent="."]
  12. z_index = 1
  13. texture = ExtResource( 2 )
  14. __meta__ = {
  15. "_edit_lock_": true
  16. }
  17. [node name="HitBox" type="CollisionShape2D" parent="."]
  18. shape = SubResource( 1 )
  19. __meta__ = {
  20. "_edit_lock_": true
  21. }
  22. [node name="Tween" type="Tween" parent="."]
  23. script = ExtResource( 3 )
  24. [connection signal="body_entered" from="." to="." method="_on_crash"]