Player.tscn 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. [gd_scene load_steps=13 format=2]
  2. [ext_resource path="res://Player.cs" type="Script" id=1]
  3. [ext_resource path="res://art/playerGrey_walk1.png" type="Texture2D" id=2]
  4. [ext_resource path="res://art/playerGrey_walk2.png" type="Texture2D" id=3]
  5. [ext_resource path="res://art/playerGrey_up1.png" type="Texture2D" id=4]
  6. [ext_resource path="res://art/playerGrey_up2.png" type="Texture2D" id=5]
  7. [sub_resource type="SpriteFrames" id=1]
  8. animations = [{
  9. "frames": [ExtResource( 2 ), ExtResource( 3 )],
  10. "loop": true,
  11. "name": "right",
  12. "speed": 5.0
  13. }, {
  14. "frames": [ExtResource( 4 ), ExtResource( 5 )],
  15. "loop": true,
  16. "name": "up",
  17. "speed": 5.0
  18. }]
  19. [sub_resource type="CapsuleShape2D" id=2]
  20. radius = 27.3777
  21. height = 14.0303
  22. [sub_resource type="Gradient" id=3]
  23. colors = PackedColorArray(1, 1, 1, 0.501961, 1, 1, 1, 0)
  24. [sub_resource type="GradientTexture" id=4]
  25. gradient = SubResource( 3 )
  26. [sub_resource type="Curve" id=5]
  27. _data = [Vector2(0.00451484, 0.5176), 0.0, 0.0, 0, 0, Vector2(0.98702, 0.3152), 0.0, 0.0, 0, 0]
  28. [sub_resource type="CurveTexture" id=6]
  29. curve = SubResource( 5 )
  30. [sub_resource type="ParticlesMaterial" id=7]
  31. flag_disable_z = true
  32. gravity = Vector3(0, 0, 0)
  33. initial_velocity = 1.0
  34. orbit_velocity = 0.0
  35. orbit_velocity_random = 0.0
  36. scale = 0.75
  37. scale_curve = SubResource( 6 )
  38. color_ramp = SubResource( 4 )
  39. [node name="Player" type="Area2D"]
  40. z_index = 10
  41. script = ExtResource( 1 )
  42. __meta__ = {
  43. "_edit_group_": true
  44. }
  45. [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
  46. scale = Vector2(0.5, 0.5)
  47. frames = SubResource( 1 )
  48. animation = "right"
  49. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  50. shape = SubResource( 2 )
  51. [node name="Trail" type="GPUParticles2D" parent="."]
  52. show_behind_parent = true
  53. z_index = -1
  54. amount = 10
  55. speed_scale = 2.0
  56. local_coords = false
  57. process_material = SubResource( 7 )
  58. texture = ExtResource( 2 )
  59. [connection signal="body_entered" from="." to="." method="OnPlayerBodyEntered"]