package elm_playground_gamekits

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

Module CarSource

Sourcetype t = {
  1. position : Playground.number;
  2. x : Playground.number;
  3. speed : Playground.number;
  4. steer : Playground.number;
}
Sourceval start : t
Sourcetype params = {
  1. max_speed : Playground.number;
  2. accel : Playground.number;
  3. brake : Playground.number;
  4. decel : Playground.number;
  5. off_road_decel : Playground.number;
  6. off_road_limit : Playground.number;
  7. centrifugal : Playground.number;
}
Sourceval params : Playground.number -> params
Sourceval drive : params -> Road.t -> Playground.keyboard -> t -> t