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/Topdown/index.html

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