A game created for the Godot Wild Jam #21
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HalfDoor.tscn 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. [gd_scene load_steps=7 format=2]
  2. [ext_resource path="res://Data/Scripts/HalfDoor.gd" type="Script" id=1]
  3. [ext_resource path="res://Data/Shaders/Glowdot.shader" type="Shader" id=3]
  4. [ext_resource path="res://Data/Objects/Glowdot.tscn" type="PackedScene" id=5]
  5. [ext_resource path="res://Data/Graphics/Tileset.png" type="Texture" id=6]
  6. [sub_resource type="ShaderMaterial" id=1]
  7. resource_local_to_scene = true
  8. shader = ExtResource( 3 )
  9. shader_param/primary_color = Color( 0, 0, 0, 1 )
  10. shader_param/fade_offset = 0.14
  11. [sub_resource type="RectangleShape2D" id=2]
  12. extents = Vector2( 24, 7 )
  13. [node name="HalfDoor" type="StaticBody2D"]
  14. position = Vector2( 0.440125, -0.440125 )
  15. collision_layer = 2
  16. script = ExtResource( 1 )
  17. [node name="Backplane" type="Node2D" parent="."]
  18. position = Vector2( -32, 0 )
  19. [node name="Backplane_Top" type="Sprite" parent="Backplane"]
  20. position = Vector2( 0, -8 )
  21. scale = Vector2( 1, -1 )
  22. texture = ExtResource( 6 )
  23. region_enabled = true
  24. region_rect = Rect2( 0, 528, 32, 16 )
  25. [node name="Backplane_Bottom" type="Sprite" parent="Backplane"]
  26. position = Vector2( 0, 8 )
  27. texture = ExtResource( 6 )
  28. region_enabled = true
  29. region_rect = Rect2( 0, 528, 32, 16 )
  30. [node name="Doorway" type="KinematicBody2D" parent="."]
  31. position = Vector2( -6, 0 )
  32. collision_layer = 2
  33. [node name="Sprite" type="Sprite" parent="Doorway"]
  34. texture = ExtResource( 6 )
  35. region_enabled = true
  36. region_rect = Rect2( 32, 512, 48, 16 )
  37. [node name="Glow" parent="Doorway" instance=ExtResource( 5 )]
  38. material = SubResource( 1 )
  39. position = Vector2( 14.989, -0.323532 )
  40. scale = Vector2( 0.25, 0.25 )
  41. pulse_in_time = 0.2
  42. pulse_offset = 0.1
  43. [node name="CollisionShape2D" type="CollisionShape2D" parent="Doorway"]
  44. shape = SubResource( 2 )
  45. [node name="Frontplane" type="Node2D" parent="."]
  46. position = Vector2( -32, 0 )
  47. [node name="Front_Top" type="Sprite" parent="Frontplane"]
  48. position = Vector2( 0, -8 )
  49. scale = Vector2( 1, -1 )
  50. texture = ExtResource( 6 )
  51. region_enabled = true
  52. region_rect = Rect2( 0, 512, 32, 16 )
  53. [node name="Front_Bottom" type="Sprite" parent="Frontplane"]
  54. position = Vector2( 0, 8 )
  55. texture = ExtResource( 6 )
  56. region_enabled = true
  57. region_rect = Rect2( 0, 512, 32, 16 )
  58. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
  59. polygon = PoolVector2Array( -47.9044, -15.9911, -30.1666, -15.9101, -18.8273, -9.9975, -19.0703, -8.86357, -21.0952, -7.08169, -27.0888, -5.13782, -29.9236, -1.97902, -29.8426, 1.74673, -27.0888, 5.06752, -21.0952, 7.09238, -18.9893, 9.03626, -18.9893, 10.0892, -30.0855, 15.8398, -47.9854, 15.9208 )
  60. [node name="Tween" type="Tween" parent="."]
  61. [editable path="Doorway/Glow"]