player_25d.tscn 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. [gd_scene load_steps=7 format=2]
  2. [ext_resource path="res://addons/node25d/node_25d.gd" type="Script" id=1]
  3. [ext_resource path="res://addons/node25d/icons/node_25d_icon.png" type="Texture2D" id=2]
  4. [ext_resource path="res://assets/player/player_math_25d.gd" type="Script" id=3]
  5. [ext_resource path="res://assets/player/textures/jump.png" type="Texture2D" id=4]
  6. [ext_resource path="res://assets/player/player_sprite.gd" type="Script" id=5]
  7. [sub_resource type="BoxShape3D" id=1]
  8. extents = Vector3(0.5, 1, 0.5)
  9. [node name="Player25D" type="Node2D"]
  10. position = Vector2(0, -226.274)
  11. z_index = 100
  12. script = ExtResource( 1 )
  13. __meta__ = {
  14. "_editor_icon": ExtResource( 2 )
  15. }
  16. spatial_position = Vector3(0, 10, 0)
  17. [node name="PlayerMath25D" type="CharacterBody3D" parent="."]
  18. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10, 0)
  19. script = ExtResource( 3 )
  20. [node name="CollisionShape3D" type="CollisionShape3D" parent="PlayerMath25D"]
  21. shape = SubResource( 1 )
  22. __meta__ = {
  23. "_edit_lock_": true
  24. }
  25. [node name="PlayerSprite" type="Sprite2D" parent="."]
  26. scale = Vector2(1, 0.75)
  27. z_index = 1
  28. texture = ExtResource( 4 )
  29. offset = Vector2(0, 4)
  30. hframes = 2
  31. vframes = 5
  32. script = ExtResource( 5 )
  33. [node name="PlayerCamera" type="Camera2D" parent="PlayerSprite"]
  34. current = true