3d.tscn 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [gd_scene load_steps=6 format=2]
  2. [ext_resource path="res://lib/3dPlayer.tscn" type="PackedScene" id=1]
  3. [ext_resource path="res://3d.gd" type="Script" id=3]
  4. [sub_resource type="SpatialMaterial" id=1]
  5. albedo_color = Color( 0.192157, 0.368627, 0.172549, 1 )
  6. [sub_resource type="PlaneMesh" id=2]
  7. material = SubResource( 1 )
  8. size = Vector2( 200, 200 )
  9. [sub_resource type="ConvexPolygonShape" id=3]
  10. points = PoolVector3Array( 100, 0, 100, -100, 0, 100, 100, 0, -100, -100, 0, -100 )
  11. [node name="Spatial" type="Spatial"]
  12. script = ExtResource( 3 )
  13. [node name="Ground" type="StaticBody" parent="."]
  14. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.05587, 0 )
  15. [node name="MeshInstance" type="MeshInstance" parent="Ground"]
  16. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.181427, -12.2064, 0.0101433 )
  17. mesh = SubResource( 2 )
  18. material/0 = null
  19. [node name="CollisionShape" type="CollisionShape" parent="Ground"]
  20. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -11.4289, 0 )
  21. shape = SubResource( 3 )
  22. [node name="Player" parent="." instance=ExtResource( 1 )]
  23. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4.62673, -10.5914, 1.16536 )
  24. [node name="RemotePlayers" type="Spatial" parent="."]
  25. [node name="MultiplayerButton" type="Button" parent="."]
  26. visible = false
  27. margin_right = 20.0
  28. margin_bottom = 21.0
  29. text = "Multiplayer"
  30. __meta__ = {
  31. "_edit_use_anchors_": false
  32. }
  33. [connection signal="pressed" from="MultiplayerButton" to="." method="_on_Multiplayer_pressed"]