jumper.tscn 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [gd_scene load_steps=11 format=3 uid="uid://ckph60svia3xr"]
  2. [ext_resource type="Script" path="res://component/entity/jumper/jumper.gd" id="1_smoki"]
  3. [ext_resource type="Texture2D" uid="uid://cojbjngjjhoe0" path="res://component/entity/jumper/green_astronaut.png" id="2_xm8at"]
  4. [ext_resource type="Script" path="res://component/entity/jumper/jumper_input.gd" id="3_trrhr"]
  5. [ext_resource type="Texture2D" uid="uid://mk8mv84rjsu" path="res://component/entity/jumper/blue_astronaut.png" id="3_wegaa"]
  6. [ext_resource type="Texture2D" uid="uid://c07f5mop1rm1m" path="res://component/entity/jumper/pink_astronaut.png" id="4_v2rk1"]
  7. [ext_resource type="Texture2D" uid="uid://b0fdcrrluprxp" path="res://component/entity/jumper/yellow_astronaut.png" id="5_04xut"]
  8. [sub_resource type="PhysicsMaterial" id="PhysicsMaterial_vgl4i"]
  9. friction = 0.5
  10. [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_raoy1"]
  11. radius = 18.0
  12. height = 50.0
  13. [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_wnop5"]
  14. properties/0/path = NodePath(".:position")
  15. properties/0/spawn = true
  16. properties/0/sync = true
  17. properties/0/watch = false
  18. properties/1/path = NodePath(".:player")
  19. properties/1/spawn = true
  20. properties/1/sync = false
  21. properties/1/watch = false
  22. [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_74ldf"]
  23. properties/0/path = NodePath("JumperInput:direction")
  24. properties/0/spawn = false
  25. properties/0/sync = true
  26. properties/0/watch = false
  27. [node name="Jumper" type="RigidBody2D"]
  28. physics_material_override = SubResource("PhysicsMaterial_vgl4i")
  29. lock_rotation = true
  30. linear_damp = 1.0
  31. script = ExtResource("1_smoki")
  32. skins = Array[Texture2D]([ExtResource("2_xm8at"), ExtResource("3_wegaa"), ExtResource("4_v2rk1"), ExtResource("5_04xut")])
  33. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  34. position = Vector2(0, -2)
  35. shape = SubResource("CapsuleShape2D_raoy1")
  36. [node name="Sprite2D" type="Sprite2D" parent="."]
  37. texture = ExtResource("2_xm8at")
  38. [node name="ServerSynchronizer" type="MultiplayerSynchronizer" parent="."]
  39. replication_config = SubResource("SceneReplicationConfig_wnop5")
  40. [node name="JumperInput" type="MultiplayerSynchronizer" parent="."]
  41. replication_config = SubResource("SceneReplicationConfig_74ldf")
  42. script = ExtResource("3_trrhr")