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.

68 lines
2.0KB

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