test_character_slopes.tscn 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. [gd_scene load_steps=11 format=2]
  2. [ext_resource path="res://tests/functional/test_character.gd" type="Script" id=1]
  3. [ext_resource path="res://tests/test_options.tscn" type="PackedScene" id=3]
  4. [ext_resource path="res://tests/static_scene_flat.tscn" type="PackedScene" id=4]
  5. [ext_resource path="res://utils/rigidbody_controller.gd" type="Script" id=6]
  6. [ext_resource path="res://utils/kinematicbody_controller.gd" type="Script" id=7]
  7. [sub_resource type="PhysicsMaterial" id=1]
  8. friction = 0.0
  9. [sub_resource type="CapsuleShape2D" id=2]
  10. radius = 32.0
  11. height = 32.0
  12. [sub_resource type="CapsuleShape2D" id=3]
  13. radius = 32.0
  14. height = 32.0
  15. [sub_resource type="CircleShape2D" id=4]
  16. radius = 32.0
  17. [sub_resource type="RayShape2D" id=5]
  18. length = 64.0
  19. [node name="Test" type="Node2D"]
  20. script = ExtResource( 1 )
  21. _snap_distance = 32.0
  22. [node name="LabelTestType" type="Label" parent="."]
  23. margin_left = 14.0
  24. margin_top = 79.0
  25. margin_right = 145.0
  26. margin_bottom = 93.0
  27. text = "Testing: "
  28. __meta__ = {
  29. "_edit_use_anchors_": false
  30. }
  31. [node name="Options" parent="." instance=ExtResource( 3 )]
  32. [node name="LabelFloor" type="Label" parent="."]
  33. margin_left = 14.0
  34. margin_top = 237.929
  35. margin_right = 145.0
  36. margin_bottom = 251.929
  37. text = "ON FLOOR"
  38. __meta__ = {
  39. "_edit_use_anchors_": false
  40. }
  41. [node name="LabelControls" type="Label" parent="."]
  42. margin_left = 14.0
  43. margin_top = 263.291
  44. margin_right = 145.0
  45. margin_bottom = 294.291
  46. text = "LEFT/RIGHT - MOVE
  47. UP - JUMP"
  48. __meta__ = {
  49. "_edit_use_anchors_": false
  50. }
  51. [node name="RigidBody2D" type="RigidBody2D" parent="."]
  52. position = Vector2( 100, 450 )
  53. collision_mask = 2147483649
  54. mode = 2
  55. physics_material_override = SubResource( 1 )
  56. contacts_reported = 4
  57. contact_monitor = true
  58. script = ExtResource( 6 )
  59. [node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
  60. shape = SubResource( 2 )
  61. [node name="KinematicBody2D" type="KinematicBody2D" parent="."]
  62. position = Vector2( 100, 450 )
  63. collision_mask = 2147483649
  64. script = ExtResource( 7 )
  65. [node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBody2D"]
  66. shape = SubResource( 3 )
  67. [node name="KinematicBodyRay2D" type="KinematicBody2D" parent="."]
  68. position = Vector2( 100, 450 )
  69. collision_mask = 2147483649
  70. script = ExtResource( 7 )
  71. [node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBodyRay2D"]
  72. position = Vector2( 0, -16 )
  73. shape = SubResource( 4 )
  74. [node name="CollisionShapeRay2D" type="CollisionShape2D" parent="KinematicBodyRay2D"]
  75. position = Vector2( 0, -16 )
  76. shape = SubResource( 5 )
  77. [node name="StaticSceneFlat" parent="." instance=ExtResource( 4 )]
  78. position = Vector2( 0, 12 )
  79. [node name="StaticBody2D" type="StaticBody2D" parent="."]
  80. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="StaticBody2D"]
  81. polygon = PoolVector2Array( 171.04, 529.248, 379.275, 294.316, 506.084, 429.135, 648.26, 322.058, 868.746, 322.058, 985.282, 36.6919, 1242.91, 531.917 )