Gládio Cítrico

Ramu 0.7b doc

doc homeRamu

static Object Ramu.mousePosition

Keys

Description

Object with the mouse position on canvas.
Note: it may return wrong values if the canvas is distorced (like with css).

let obj = new GameObj();
obj.x = Ramu.mousePosition.X;
obj.y = Ramu.mousePosition.Y;

See also Ramu.clickedPosition.