Player.tscn 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://Player/PlayerAnimation.tscn" type="PackedScene" id=1]
  3. [ext_resource path="res://Player/Player.gd" type="Script" id=2]
  4. [ext_resource path="res://GFX/Background/bg_layer1.png" type="Texture" id=3]
  5. [ext_resource path="res://GFX/Background/bg_layer2.png" type="Texture" id=4]
  6. [ext_resource path="res://GFX/Background/bg_layer3.png" type="Texture" id=5]
  7. [ext_resource path="res://GFX/Background/bg_layer4.png" type="Texture" id=6]
  8. [sub_resource type="CapsuleShape2D" id=1]
  9. radius = 60.5974
  10. height = 78.4273
  11. [node name="Player" type="KinematicBody2D"]
  12. position = Vector2( 476.649, 250.27 )
  13. script = ExtResource( 2 )
  14. __meta__ = {
  15. "_edit_group_": true
  16. }
  17. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  18. visible = false
  19. shape = SubResource( 1 )
  20. [node name="PlayerAnimation" parent="." instance=ExtResource( 1 )]
  21. [node name="Camera2D" type="Camera2D" parent="."]
  22. position = Vector2( 1000, 0 )
  23. current = true
  24. zoom = Vector2( 4, 4 )
  25. smoothing_enabled = true
  26. [node name="ParallaxBackground" type="ParallaxBackground" parent="Camera2D"]
  27. scroll_base_offset = Vector2( 0, -750 )
  28. scroll_ignore_camera_zoom = true
  29. [node name="ParallaxLayer" type="ParallaxLayer" parent="Camera2D/ParallaxBackground"]
  30. motion_mirroring = Vector2( 2048, 2048 )
  31. [node name="TextureRect" type="TextureRect" parent="Camera2D/ParallaxBackground/ParallaxLayer"]
  32. margin_right = 40.0
  33. margin_bottom = 40.0
  34. texture = ExtResource( 3 )
  35. __meta__ = {
  36. "_edit_use_anchors_": false
  37. }
  38. [node name="ParallaxLayer2" type="ParallaxLayer" parent="Camera2D/ParallaxBackground"]
  39. motion_scale = Vector2( 0.25, 1 )
  40. motion_mirroring = Vector2( 2048, 0 )
  41. [node name="TextureRect" type="TextureRect" parent="Camera2D/ParallaxBackground/ParallaxLayer2"]
  42. margin_right = 40.0
  43. margin_bottom = 40.0
  44. texture = ExtResource( 4 )
  45. __meta__ = {
  46. "_edit_use_anchors_": false
  47. }
  48. [node name="ParallaxLayer3" type="ParallaxLayer" parent="Camera2D/ParallaxBackground"]
  49. motion_scale = Vector2( 0.5, 1 )
  50. motion_mirroring = Vector2( 2048, 0 )
  51. [node name="TextureRect" type="TextureRect" parent="Camera2D/ParallaxBackground/ParallaxLayer3"]
  52. margin_right = 40.0
  53. margin_bottom = 40.0
  54. texture = ExtResource( 5 )
  55. __meta__ = {
  56. "_edit_use_anchors_": false
  57. }
  58. [node name="ParallaxLayer4" type="ParallaxLayer" parent="Camera2D/ParallaxBackground"]
  59. motion_scale = Vector2( 0.75, 1 )
  60. motion_mirroring = Vector2( 2048, 0 )
  61. [node name="TextureRect" type="TextureRect" parent="Camera2D/ParallaxBackground/ParallaxLayer4"]
  62. margin_right = 40.0
  63. margin_bottom = 40.0
  64. texture = ExtResource( 6 )
  65. __meta__ = {
  66. "_edit_use_anchors_": false
  67. }
  68. [connection signal="animate" from="." to="PlayerAnimation" method="_on_Player_animate"]