player.tscn 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [gd_scene load_steps=6 format=3 uid="uid://1s4asqpay67m"]
  2. [ext_resource type="Script" path="res://player/player.gd" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://d3f34krqfgdjd" path="res://world/textures/texture_sheet.png" id="2"]
  4. [sub_resource type="CylinderShape3D" id="1"]
  5. height = 1.75
  6. radius = 0.375
  7. [sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_jyixh"]
  8. [sub_resource type="AtlasTexture" id="2"]
  9. atlas = ExtResource("2")
  10. region = Rect2(0, 0, 64, 64)
  11. [node name="Player" type="CharacterBody3D"]
  12. collision_layer = 0
  13. script = ExtResource("1")
  14. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  15. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.875, 0)
  16. shape = SubResource("1")
  17. [node name="Head" type="Node3D" parent="."]
  18. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6, 0)
  19. [node name="Camera3D" type="Camera3D" parent="Head"]
  20. attributes = SubResource("CameraAttributesPractical_jyixh")
  21. fov = 74.0
  22. near = 0.02
  23. far = 1000.0
  24. [node name="RayCast3D" type="RayCast3D" parent="Head"]
  25. target_position = Vector3(0, 0, -4)
  26. [node name="SelectedBlock" type="TextureRect" parent="."]
  27. texture_filter = 1
  28. anchors_preset = 3
  29. anchor_left = 1.0
  30. anchor_top = 1.0
  31. anchor_right = 1.0
  32. anchor_bottom = 1.0
  33. offset_left = -127.0
  34. offset_top = -127.0
  35. offset_right = 1.0
  36. offset_bottom = 1.0
  37. grow_horizontal = 0
  38. grow_vertical = 0
  39. texture = SubResource("2")
  40. ignore_texture_size = true