package elm_playground_gamekits

  1. Overview
  2. Docs
Genre kits for Playground games: platformers, racing, shoot 'em ups, fighting and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0

doc/elm_playground_gamekits.kit_racing/Road/index.html

Module RoadSource

Sourcetype section = {
  1. enter : int;
  2. hold : int;
  3. leave : int;
  4. curve : Playground.number;
  5. hill : Playground.number;
}
Sourceval straight : int -> section
Sourceval curve : int -> Playground.number -> section
Sourceval hill : int -> Playground.number -> section
Sourceval curve_hill : int -> Playground.number -> Playground.number -> section
Sourceval coast : section list
Sourcetype segment = {
  1. index : int;
  2. y1 : Playground.number;
  3. y2 : Playground.number;
  4. curve : Playground.number;
}
Sourcetype t = {
  1. segment_length : Playground.number;
  2. segments : segment array;
}
Sourceval build : Playground.number -> section list -> t
Sourceval length : t -> Playground.number
Sourceval segment_at : t -> Playground.number -> segment
Sourcetype point = {
  1. x : Playground.number;
  2. y : Playground.number;
  3. z : Playground.number;
  4. heading : Playground.number;
}
Sourceval centerline : Playground.number -> t -> point array