package elm_playground_gamekits

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Free_ballSource

Sourcetype t = {
  1. x : Playground.number;
  2. y : Playground.number;
  3. vx : Playground.number;
  4. vy : Playground.number;
}
Sourceval still : Playground.number -> Playground.number -> t
Sourceval roll : friction:Playground.number -> ?push:(Playground.number * Playground.number) -> t -> t
Sourceval touch : glued:bool -> speed:Playground.number -> reach:Playground.number -> hold:Playground.number -> (Playground.number * Playground.number) -> (Playground.number * Playground.number) -> t -> t option
Sourceval bounce_in : half_w:Playground.number -> half_h:Playground.number -> keep:Playground.number -> t -> t
Sourceval speed : t -> Playground.number
Sourceval near : Playground.number -> (Playground.number * Playground.number) -> t -> bool