scene2.tscn 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. [gd_scene load_steps=14 format=2]
  2. [ext_resource path="res://Camera.gd" type="Script" id=1]
  3. [ext_resource path="res://2d_shape.gd" type="Script" id=2]
  4. [ext_resource path="res://textures/text.png" type="Texture" id=3]
  5. [ext_resource path="res://textures/obstacle.png" type="Texture" id=4]
  6. [ext_resource path="res://dynamic.tscn" type="PackedScene" id=5]
  7. [ext_resource path="res://static.tscn" type="PackedScene" id=6]
  8. [sub_resource type="SpatialMaterial" id=1]
  9. flags_unshaded = true
  10. params_billboard_mode = 1
  11. albedo_color = Color( 0.862745, 0.305882, 0.305882, 1 )
  12. [sub_resource type="QuadMesh" id=2]
  13. size = Vector2( 0.4, 0.4 )
  14. [sub_resource type="SphereShape" id=3]
  15. radius = 0.2
  16. [sub_resource type="NavigationPolygon" id=4]
  17. vertices = PoolVector2Array( 64, 64, 0, 64, 0, 0, 64, 0 )
  18. polygons = [ PoolIntArray( 0, 1, 2, 3 ) ]
  19. [sub_resource type="OccluderPolygon2D" id=5]
  20. polygon = PoolVector2Array( 64, 64, 0, 64, 0, 0, 64, 0 )
  21. [sub_resource type="ConvexPolygonShape2D" id=6]
  22. points = PoolVector2Array( 64, 64, 0, 64, 0, 0, 64, 0 )
  23. [sub_resource type="TileSet" id=7]
  24. 0/name = "obstacle.png 0"
  25. 0/texture = ExtResource( 4 )
  26. 0/tex_offset = Vector2( 0, 0 )
  27. 0/modulate = Color( 1, 1, 1, 1 )
  28. 0/region = Rect2( 0, 0, 64, 64 )
  29. 0/tile_mode = 0
  30. 0/occluder_offset = Vector2( 0, 0 )
  31. 0/occluder = SubResource( 5 )
  32. 0/navigation_offset = Vector2( 0, 0 )
  33. 0/navigation = SubResource( 4 )
  34. 0/shape_offset = Vector2( 0, 0 )
  35. 0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
  36. 0/shape = SubResource( 6 )
  37. 0/shape_one_way = false
  38. 0/shape_one_way_margin = 1.0
  39. 0/shapes = [ {
  40. "autotile_coord": Vector2( 0, 0 ),
  41. "one_way": false,
  42. "one_way_margin": 1.0,
  43. "shape": SubResource( 6 ),
  44. "shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
  45. } ]
  46. 0/z_index = 0
  47. [node name="scene" type="Spatial"]
  48. [node name="static" parent="." instance=ExtResource( 6 )]
  49. [node name="dynamic" parent="." instance=ExtResource( 5 )]
  50. [node name="Camera" type="Camera" parent="."]
  51. transform = Transform( -0.446733, 0.263963, -0.854841, -0.0103223, 0.9539, 0.299946, 0.894608, 0.14282, -0.423414, -2.67987, 7.52546, -5.02293 )
  52. script = ExtResource( 1 )
  53. sensitivity = 0.25
  54. max_speed = Vector3( 5, 5, 5 )
  55. [node name="2d_shape" type="Position3D" parent="."]
  56. transform = Transform( 0.913503, 0, -0.406832, 0, 1, 0, 0.406832, 0, 0.913503, 8.15652, 7.48366, -7.65973 )
  57. script = ExtResource( 2 )
  58. shape_size = 0.4
  59. sec_to_record = 8
  60. box_size = 20
  61. [node name="body" type="Spatial" parent="2d_shape"]
  62. [node name="RigidBody" type="RigidBody" parent="2d_shape/body"]
  63. [node name="MeshInstance" type="MeshInstance" parent="2d_shape/body/RigidBody"]
  64. material_override = SubResource( 1 )
  65. mesh = SubResource( 2 )
  66. material/0 = null
  67. [node name="CollisionShape" type="CollisionShape" parent="2d_shape/body/RigidBody"]
  68. shape = SubResource( 3 )
  69. [node name="spawn" type="Spatial" parent="2d_shape"]
  70. [node name="2d" type="Control" parent="2d_shape"]
  71. margin_right = 40.0
  72. margin_bottom = 40.0
  73. __meta__ = {
  74. "_edit_use_anchors_": false
  75. }
  76. [node name="Sprite" type="Sprite" parent="2d_shape/2d"]
  77. position = Vector2( 315.883, 61.2725 )
  78. scale = Vector2( 0.965065, 0.804221 )
  79. texture = ExtResource( 3 )
  80. [node name="TileMap" type="TileMap" parent="2d_shape/2d"]
  81. scale = Vector2( 0.2, 0.2 )
  82. tile_set = SubResource( 7 )
  83. format = 1
  84. tile_data = PoolIntArray( 131073, 0, 0, 131076, 0, 0, 131078, 0, 0, 131079, 0, 0, 131080, 0, 0, 131082, 0, 0, 131086, 0, 0, 131091, 0, 0, 131092, 0, 0, 131097, 0, 0, 131101, 0, 0, 131105, 0, 0, 131106, 0, 0, 131109, 0, 0, 131110, 0, 0, 131111, 0, 0, 131114, 0, 0, 131118, 0, 0, 131119, 0, 0, 131120, 0, 0, 196609, 0, 0, 196612, 0, 0, 196614, 0, 0, 196618, 0, 0, 196622, 0, 0, 196626, 0, 0, 196629, 0, 0, 196633, 0, 0, 196635, 0, 0, 196637, 0, 0, 196640, 0, 0, 196643, 0, 0, 196645, 0, 0, 196648, 0, 0, 196650, 0, 0, 196654, 0, 0, 196657, 0, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 262148, 0, 0, 262150, 0, 0, 262151, 0, 0, 262152, 0, 0, 262154, 0, 0, 262158, 0, 0, 262162, 0, 0, 262165, 0, 0, 262169, 0, 0, 262171, 0, 0, 262173, 0, 0, 262176, 0, 0, 262179, 0, 0, 262181, 0, 0, 262182, 0, 0, 262183, 0, 0, 262186, 0, 0, 262190, 0, 0, 262193, 0, 0, 327681, 0, 0, 327684, 0, 0, 327686, 0, 0, 327690, 0, 0, 327694, 0, 0, 327698, 0, 0, 327701, 0, 0, 327706, 0, 0, 327708, 0, 0, 327712, 0, 0, 327715, 0, 0, 327717, 0, 0, 327719, 0, 0, 327722, 0, 0, 327726, 0, 0, 327729, 0, 0, 393217, 0, 0, 393220, 0, 0, 393222, 0, 0, 393223, 0, 0, 393224, 0, 0, 393226, 0, 0, 393227, 0, 0, 393228, 0, 0, 393230, 0, 0, 393231, 0, 0, 393232, 0, 0, 393235, 0, 0, 393236, 0, 0, 393242, 0, 0, 393244, 0, 0, 393249, 0, 0, 393250, 0, 0, 393253, 0, 0, 393256, 0, 0, 393258, 0, 0, 393259, 0, 0, 393260, 0, 0, 393262, 0, 0, 393263, 0, 0, 393264, 0, 0 )
  85. [node name="UI" type="Control" parent="."]
  86. anchor_right = 1.0
  87. anchor_bottom = 1.0
  88. __meta__ = {
  89. "_edit_use_anchors_": false
  90. }
  91. [node name="timer" type="Label" parent="UI"]
  92. anchor_left = 1.0
  93. anchor_right = 1.0
  94. margin_left = -500.046
  95. margin_top = 16.1515
  96. margin_right = -345.046
  97. margin_bottom = 30.1515
  98. rect_scale = Vector2( 3, 3 )
  99. text = "animation progress: 000%"
  100. __meta__ = {
  101. "_edit_use_anchors_": false
  102. }
  103. [node name="saved" type="Label" parent="UI"]
  104. visible = false
  105. anchor_left = 1.0
  106. anchor_right = 1.0
  107. margin_left = -229.87
  108. margin_top = 51.8819
  109. margin_right = -117.87
  110. margin_bottom = 65.8819
  111. rect_scale = Vector2( 3, 3 )
  112. text = "Saved!"
  113. __meta__ = {
  114. "_edit_use_anchors_": false
  115. }