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.

33 lines
1.1KB

  1. [gd_scene load_steps=6 format=2]
  2. [ext_resource path="res://Data/Scripts/Liquid.gd" type="Script" id=1]
  3. [ext_resource path="res://Data/Graphics/placeholder.png" type="Texture" id=2]
  4. [ext_resource path="res://Data/Shaders/Liquid.shader" type="Shader" id=3]
  5. [sub_resource type="ShaderMaterial" id=1]
  6. shader = ExtResource( 3 )
  7. shader_param/sprite_scale = Vector2( 1, 1 )
  8. shader_param/distortion = 16.265
  9. shader_param/liquid_color_main = Color( 0, 0.0862745, 0.603922, 1 )
  10. shader_param/liquid_color_surface = Color( 0.517647, 0.572549, 1, 1 )
  11. shader_param/liquid_surface_thickness = 0.12
  12. shader_param/wave_amp = 0.25
  13. shader_param/wave_freq = 1.0
  14. shader_param/wave_scale = 1.0
  15. [sub_resource type="RectangleShape2D" id=2]
  16. extents = Vector2( 32, 32 )
  17. [node name="Liquid" type="Sprite"]
  18. material = SubResource( 1 )
  19. texture = ExtResource( 2 )
  20. script = ExtResource( 1 )
  21. [node name="Trigger" type="Area2D" parent="."]
  22. collision_layer = 8
  23. [node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger"]
  24. visible = false
  25. shape = SubResource( 2 )
  26. [connection signal="body_entered" from="Trigger" to="." method="_on_Trigger_body_entered"]