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.

18 lines
333B

  1. extends Sprite
  2. func _ready():
  3. material.set_shader_param("sprite_scale", scale)
  4. set_process(true)
  5. func _process(delta):
  6. pass
  7. func _on_Trigger_body_entered(body):
  8. if (body.has_method("set_colors")):
  9. body.set_colors(
  10. material.get_shader_param("liquid_color_main"),
  11. material.get_shader_param("liquid_color_surface")
  12. )