test_character_tilemap.tscn 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. [gd_scene load_steps=12 format=2]
  2. [ext_resource path="res://tests/functional/test_character_tilemap.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://assets/tileset/tileset.tres" type="TileSet" id=5]
  6. [ext_resource path="res://utils/rigidbody_controller.gd" type="Script" id=6]
  7. [ext_resource path="res://utils/kinematicbody_controller.gd" type="Script" id=7]
  8. [sub_resource type="PhysicsMaterial" id=1]
  9. friction = 0.0
  10. [sub_resource type="RectangleShape2D" id=2]
  11. extents = Vector2( 16, 31.9 )
  12. [sub_resource type="RectangleShape2D" id=3]
  13. extents = Vector2( 16, 24 )
  14. [sub_resource type="RayShape2D" id=4]
  15. length = 24.0
  16. [sub_resource type="CircleShape2D" id=5]
  17. radius = 16.0
  18. [node name="Test" type="Node2D"]
  19. script = ExtResource( 1 )
  20. [node name="LabelTestType" type="Label" parent="."]
  21. margin_left = 14.0
  22. margin_top = 79.0
  23. margin_right = 145.0
  24. margin_bottom = 93.0
  25. text = "Testing: "
  26. __meta__ = {
  27. "_edit_use_anchors_": false
  28. }
  29. [node name="Options" parent="." instance=ExtResource( 3 )]
  30. [node name="LabelFloor" type="Label" parent="."]
  31. margin_left = 14.0
  32. margin_top = 237.929
  33. margin_right = 145.0
  34. margin_bottom = 251.929
  35. text = "ON FLOOR"
  36. __meta__ = {
  37. "_edit_use_anchors_": false
  38. }
  39. [node name="LabelControls" type="Label" parent="."]
  40. margin_left = 14.0
  41. margin_top = 263.291
  42. margin_right = 145.0
  43. margin_bottom = 277.291
  44. text = "LEFT/RIGHT - MOVE
  45. UP - JUMP"
  46. __meta__ = {
  47. "_edit_use_anchors_": false
  48. }
  49. [node name="RigidBody2D" type="RigidBody2D" parent="."]
  50. position = Vector2( 250, 460 )
  51. collision_mask = 2147483649
  52. mode = 2
  53. physics_material_override = SubResource( 1 )
  54. contacts_reported = 4
  55. contact_monitor = true
  56. script = ExtResource( 6 )
  57. [node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
  58. shape = SubResource( 2 )
  59. [node name="KinematicBody2D" type="KinematicBody2D" parent="."]
  60. position = Vector2( 250, 460 )
  61. collision_mask = 2147483649
  62. script = ExtResource( 7 )
  63. [node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBody2D"]
  64. shape = SubResource( 2 )
  65. [node name="KinematicBodyRay2D" type="KinematicBody2D" parent="."]
  66. position = Vector2( 250, 460 )
  67. collision_mask = 2147483649
  68. script = ExtResource( 7 )
  69. [node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBodyRay2D"]
  70. position = Vector2( 0, -8 )
  71. shape = SubResource( 3 )
  72. [node name="CollisionShapeRay2D" type="CollisionShape2D" parent="KinematicBodyRay2D"]
  73. position = Vector2( 0, 8 )
  74. shape = SubResource( 4 )
  75. [node name="CollisionShapeRay2DLeft" type="CollisionShape2D" parent="KinematicBodyRay2D"]
  76. position = Vector2( -16, 8 )
  77. shape = SubResource( 4 )
  78. [node name="CollisionShapeRay2DRight" type="CollisionShape2D" parent="KinematicBodyRay2D"]
  79. position = Vector2( 16, 8 )
  80. shape = SubResource( 4 )
  81. [node name="JumpTargetArea2D" type="Area2D" parent="."]
  82. visible = false
  83. position = Vector2( 810, 390 )
  84. [node name="CollisionShape2D" type="CollisionShape2D" parent="JumpTargetArea2D"]
  85. shape = SubResource( 5 )
  86. disabled = true
  87. [node name="FallTargetArea2D" type="Area2D" parent="."]
  88. visible = false
  89. position = Vector2( 250, 480 )
  90. [node name="CollisionShape2D" type="CollisionShape2D" parent="FallTargetArea2D"]
  91. shape = SubResource( 5 )
  92. disabled = true
  93. [node name="StaticSceneFlat" parent="." instance=ExtResource( 4 )]
  94. position = Vector2( 0, 12 )
  95. [node name="TileMap" type="TileMap" parent="."]
  96. tile_set = ExtResource( 5 )
  97. cell_size = Vector2( 32, 32 )
  98. format = 1
  99. tile_data = PoolIntArray( 458764, 5, 0, 458765, 5, 0, 458766, 5, 0, 458767, 5, 0, 458768, 5, 0, 458769, 5, 0, 458770, 5, 0, 458771, 5, 0, 524300, 5, 0, 524301, 5, 0, 524302, 5, 0, 524303, 5, 0, 524304, 5, 0, 524305, 5, 0, 524306, 5, 0, 524307, 5, 0, 589836, 5, 0, 589837, 5, 0, 589838, 5, 0, 589839, 5, 0, 589840, 5, 0, 589841, 5, 0, 589842, 5, 0, 589843, 5, 0, 655372, 5, 0, 655373, 5, 0, 655374, 5, 0, 655375, 5, 0, 655376, 5, 0, 655377, 5, 0, 655378, 5, 0, 655379, 5, 0, 720908, 5, 0, 720909, 5, 0, 720910, 5, 0, 720911, 5, 0, 720912, 5, 0, 720913, 5, 0, 720914, 5, 0, 720915, 5, 0, 720922, 0, 0, 720923, 0, 0, 720924, 0, 0, 720925, 0, 0, 786438, 5, 0, 786439, 5, 0, 786440, 5, 0, 786441, 5, 0, 786444, 5, 0, 786445, 5, 0, 786446, 5, 0, 786447, 5, 0, 786448, 5, 0, 786449, 5, 0, 786450, 5, 0, 786451, 5, 0, 851980, 5, 0, 851981, 5, 0, 851982, 5, 0, 851983, 5, 0, 851984, 5, 0, 851985, 5, 0, 851986, 5, 0, 851987, 5, 0, 851992, 0, 0, 851993, 0, 0, 851994, 0, 0, 851995, 0, 0, 917516, 5, 0, 917517, 5, 0, 917518, 5, 0, 917519, 5, 0, 917520, 5, 0, 917521, 5, 0, 917522, 5, 0, 917523, 5, 0, 983052, 5, 0, 983053, 5, 0, 983054, 5, 0, 983055, 5, 0, 983056, 5, 0, 983057, 5, 0, 983058, 5, 0, 983059, 5, 0 )