Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface Feedback.Sink

Receives what a reaction plays.

Methods

public abstract void sound(String name, double x, double y)Plays a named sound.
public abstract void burst(double x, double y, int count, int color)Bursts particles.

Method details

sound

public abstract void sound(String name, double x, double y)
Plays a named sound.

Parameters

name String
the reaction’s sound name
x double
where in the world, pixels
y double
where in the world, pixels

burst

public abstract void burst(double x, double y, int count, int color)
Bursts particles.

Parameters

x double
where in the world, pixels
y double
where in the world, pixels
count int
how many
color int
ARGB