package elm_playground_gamekits

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

Module TopdownSource

Sourcetype t = {
  1. x : Playground.number;
  2. y : Playground.number;
  3. vx : Playground.number;
  4. vy : Playground.number;
  5. heading : Playground.number;
  6. speed : Playground.number;
  7. next : int;
}
Sourcetype params = {
  1. accel : Playground.number;
  2. friction : Playground.number;
  3. grip : Playground.number;
  4. steering : Playground.number;
  5. steering_speed : Playground.number;
}
Sourceval toy : params
Sourceval drive : params -> Playground.number -> Playground.number -> Playground.number -> t -> t
Sourceval bounce : (Playground.number -> Playground.number -> bool) -> t -> t -> t
Sourceval push : Playground.number -> t -> t -> t * t
Sourcetype track = {
  1. points : (Playground.number * Playground.number) array;
  2. reach : Playground.number;
  3. corner : Playground.number;
}
Sourceval point : track -> int -> Playground.number * Playground.number
Sourceval start : track -> int -> Playground.number -> t
Sourceval follow : track -> t -> t
Sourceval lap : track -> t -> int
Sourceval distance : track -> Playground.number -> Playground.number -> Playground.number
Sourceval distance_from : track -> int -> int -> Playground.number -> Playground.number -> Playground.number
Sourceval ribbon : Playground.color -> Playground.number -> track -> Playground.shape
Sourceval progress : track -> t -> Playground.number
Sourceval computer : track -> t -> Playground.number * Playground.number