Block.tscn 773 B

1234567891011121314151617181920212223242526272829303132
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://shaders/block_shader.shader" type="Shader" id=1]
  3. [ext_resource path="res://scripts/Block.gd" type="Script" id=2]
  4. [sub_resource type="ShaderMaterial" id=1]
  5. shader = ExtResource( 1 )
  6. shader_param/color = Color( 1, 0, 0, 1 )
  7. shader_param/margin = 0.1
  8. [sub_resource type="ImageTexture" id=2]
  9. flags = 23
  10. flags = 23
  11. size = Vector2( 100, 100 )
  12. [node name="Block" type="Node2D"]
  13. script = ExtResource( 2 )
  14. [node name="TextureRect" type="TextureRect" parent="."]
  15. material = SubResource( 1 )
  16. margin_left = -50.0
  17. margin_top = -50.0
  18. margin_right = 50.0
  19. margin_bottom = 50.0
  20. rect_pivot_offset = Vector2( 50, 50 )
  21. size_flags_horizontal = 3
  22. texture = SubResource( 2 )
  23. expand = true
  24. __meta__ = {
  25. "_edit_use_anchors_": false
  26. }