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.

63 lines
1.9KB

  1. [gd_scene load_steps=9 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. resource_local_to_scene = true
  7. shader = ExtResource( 3 )
  8. shader_param/sprite_scale = Vector2( 2.96, 1 )
  9. shader_param/distortion = 16.265
  10. shader_param/liquid_color_main = Color( 0, 0, 0, 1 )
  11. shader_param/liquid_color_surface = Color( 0, 0, 0, 1 )
  12. shader_param/liquid_surface_thickness = 0.12
  13. shader_param/wave_amp = 0.25
  14. shader_param/wave_freq = 1.0
  15. shader_param/wave_scale = 1.0
  16. [sub_resource type="RectangleShape2D" id=2]
  17. extents = Vector2( 32, 31 )
  18. [sub_resource type="Curve" id=3]
  19. _data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 0.542553, 0 ), 0.0, 0.0, 0, 0 ]
  20. [sub_resource type="CurveTexture" id=4]
  21. curve = SubResource( 3 )
  22. [sub_resource type="ParticlesMaterial" id=5]
  23. emission_shape = 2
  24. emission_box_extents = Vector3( 2, 1, 1 )
  25. flag_disable_z = true
  26. direction = Vector3( 0, -1, 0 )
  27. spread = 86.0
  28. gravity = Vector3( 0, 98, 0 )
  29. initial_velocity = 80.0
  30. orbit_velocity = 0.0
  31. orbit_velocity_random = 0.0
  32. scale = 2.0
  33. scale_curve = SubResource( 4 )
  34. color = Color( 0.576471, 0.760784, 0.996078, 1 )
  35. [node name="Liquid" type="Sprite"]
  36. material = SubResource( 1 )
  37. texture = ExtResource( 2 )
  38. script = ExtResource( 1 )
  39. [node name="Trigger" type="Area2D" parent="."]
  40. collision_layer = 8
  41. [node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger"]
  42. visible = false
  43. position = Vector2( 0, 1 )
  44. shape = SubResource( 2 )
  45. [node name="Splash" type="Particles2D" parent="."]
  46. position = Vector2( 0, -26.9157 )
  47. emitting = false
  48. amount = 80
  49. one_shot = true
  50. explosiveness = 0.75
  51. process_material = SubResource( 5 )
  52. [connection signal="body_entered" from="Trigger" to="." method="_on_Trigger_body_entered"]