cubio.tscn 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [gd_scene load_steps=6 format=3 uid="uid://c1j6vfe3s2bq8"]
  2. [ext_resource type="Script" path="res://player/cubio.gd" id="1"]
  3. [ext_resource type="ArrayMesh" uid="uid://ba7dqpj07mlsy" path="res://models/cube.mesh" id="2"]
  4. [ext_resource type="Script" path="res://player/follow_camera.gd" id="3"]
  5. [ext_resource type="Material" uid="uid://betphk8l40sig" path="res://models/white_cube_material.tres" id="4"]
  6. [sub_resource type="BoxShape3D" id="1"]
  7. margin = 0.001
  8. size = Vector3(0.9, 0.9, 0.9)
  9. [node name="Cubio" type="CharacterBody3D"]
  10. script = ExtResource("1")
  11. [node name="BoxMesh" type="MeshInstance3D" parent="."]
  12. _import_path = NodePath("cube-col")
  13. transform = Transform3D(0.9, 0, 0, 0, 0.9, 0, 0, 0, 0.9, 0, 0, 0)
  14. mesh = ExtResource("2")
  15. surface_material_override/0 = ExtResource("4")
  16. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  17. shape = SubResource("1")
  18. [node name="Target" type="Node3D" parent="."]
  19. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
  20. [node name="Camera3D" type="Camera3D" parent="Target"]
  21. transform = Transform3D(0.34202, -0.321394, 0.883022, 0, 0.939693, 0.34202, -0.939693, -0.116978, 0.321394, 2, 0.5, 0.913381)
  22. fov = 74.0
  23. near = 0.1
  24. far = 50.0
  25. script = ExtResource("3")
  26. [node name="WinText" type="CenterContainer" parent="."]
  27. visible = false
  28. anchors_preset = 10
  29. anchor_right = 1.0
  30. offset_bottom = 100.0
  31. grow_horizontal = 2
  32. [node name="Holder" type="Control" parent="WinText"]
  33. layout_mode = 3
  34. anchors_preset = 0
  35. offset_left = 576.0
  36. offset_top = 50.0
  37. offset_right = 576.0
  38. offset_bottom = 50.0
  39. [node name="TextLabel" type="Label" parent="WinText/Holder"]
  40. offset_left = -354.0
  41. offset_right = 354.0
  42. offset_bottom = 50.0
  43. theme_override_font_sizes/font_size = 20
  44. text = "Thank You, Cubio! But the Princess is in Another Demo!"
  45. horizontal_alignment = 1
  46. vertical_alignment = 1